Skip to main content

draft_tangent_faces

Function draft_tangent_faces 

Source
pub fn draft_tangent_faces(
    solid: &BrepSolid,
    seeds: &[u64],
    pull_direction: Vec3,
) -> Vec<u64>
Expand description

The faces a draft of seeds reaches by TANGENT PROPAGATION: the seeds and every face joined to one of them, through a chain of faces that each qualify for the pull (draft_face_qualifies), across edges where the two faces meet smoothly (their outward normals agree at the edge’s midpoint). Pick one wall of a box with rounded vertical corners and the walls and the corner rounds all come back. A face that does not qualify stops the chain: it is never added, so the result is always a selection the draft can take face by face. Sorted, seeds included.