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.

Methods

conjugate

Returns 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

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

NORMAL

Sign from warp.mesh_query_point_sign_normal().

WINDING_NUMBER

Sign from warp.mesh_query_point_sign_winding_number().

PARITY

Sign from warp.mesh_query_point_sign_parity().

NO_SIGN

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 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.