Skip to main content

shell_face_at

Function shell_face_at 

Source
pub fn shell_face_at(
    model: &Model,
    shell_id: ShellId,
    point: &Vector3,
    max_nodes: usize,
    epsilon: Scalar,
    seed: u64,
) -> GeopResult<Option<(FaceId, Scalar, Scalar)>>
Expand description

The face of shell_id that point lies on, if any, and where on its surface: the first, in the shell’s order.

Proximity to a face’s untrimmed surface is not membership (see AGENTS.md): a face’s surface generally extends well past its own trim loop (two faces split from one larger one still share that surface), so a point can sit squarely on the surface nowhere near the face. The face has to contain the point within its trim, or on it.