Skip to main content

sdf_point_query

Function sdf_point_query 

Source
pub fn sdf_point_query<S: Sdf>(
    sdf: &S,
    p: [f64; 3],
    eps: f64,
) -> Option<SdfCollisionResult>
Expand description

Test whether point p is inside the SDF and return contact data.

Returns Some(result) if the point is inside (dist < 0), else None.