warp.mesh_query_point_sign_winding_number#
- warp.mesh_query_point_sign_winding_number( ) MeshQueryPoint#
Kernel
Differentiable
Computes the closest point on the
warp.Meshwith identifieridto the given point in space.Identifies the sign using the winding number of the mesh relative to the query point. This method of sign determination is robust for poorly conditioned meshes and provides a smooth approximation to sign even when the mesh is not watertight. This method is the most robust and accurate of the sign determination meshes but also the most expensive.
Note
The
warp.Meshobject must be constructed withsupport_winding_number=Truefor this method to return correct results.- param id:
The mesh identifier
- param point:
The point in space to query
- param max_dist:
Mesh faces above this distance will not be considered by the query
- param accuracy:
Accuracy for computing the winding number with fast winding number method utilizing second-order dipole approximation, default 2.0
- param threshold:
The threshold of the winding number to be considered inside, default 0.5