warp.geometry.SweptVolumeSignMode#
- class warp.geometry.SweptVolumeSignMode(*values)[source]#
Method used to classify inside/outside when evaluating the per-mesh SDF.
IntEnummembers are integers, so a value can be passed straight into a kernel and compared against.Methods
conjugateReturns self, the complex conjugate of any int.
bit_length()Number of bits necessary to represent self in binary.
bit_count()Number of ones in the binary representation of the absolute value of self.
to_bytes([length, byteorder, signed])Return an array of bytes representing an integer.
from_bytes(bytes[, byteorder, signed])as_integer_ratio()Return a pair of integers, whose ratio is equal to the original int.
is_integer()Returns True.
Attributes
realthe real part of a complex number
imagthe imaginary part of a complex number
numeratorthe numerator of a rational number in lowest terms
denominatorthe denominator of a rational number in lowest terms
Sign from
warp.mesh_query_point_sign_normal().Sign from
warp.mesh_query_point_sign_winding_number().Sign from
warp.mesh_query_point_sign_parity().Unsigned distance, from
warp.mesh_query_point_no_sign().- 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 withsupport_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 anthreshold > 0isosurface 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.