warp.geometry.SweptVolumeSignMode#

class warp.geometry.SweptVolumeSignMode(*values)[source]#

Method used to classify inside/outside when evaluating the per-mesh SDF.

IntEnum members are integers, so a value can be passed straight into a kernel and compared against.

Attributes

NORMAL = 0#

Sign from warp.mesh_query_point_sign_normal().

WINDING_NUMBER = 1#

Sign from warp.mesh_query_point_sign_winding_number(). Requires every input mesh to be built with support_winding_number=True.

PARITY = 2#

Sign from warp.mesh_query_point_sign_parity().

NO_SIGN = 3#

Unsigned distance, from warp.mesh_query_point_no_sign(). The field is then positive everywhere, so it is only correct for extracting an threshold > 0 isosurface of swept volume of a transforming thin shell. If the input is a solid then this may result in erroneous interior surfaces in the output.