warp.geometry.OBBMeasureType#

class warp.geometry.OBBMeasureType[source]#

Objective minimized when searching for an oriented bounding box.

IntEnum members are integers, so a value can be passed straight into a kernel launch (Warp kernels cannot take a str parameter).

Attributes

VOLUME

Minimize the volume of the bounding box.

SURFACE_AREA

Minimize the surface area of the bounding box.

MEAN_WIDTH

Minimize the mean width of the bounding box, which is half the sum of its side lengths.

VOLUME = 0#

Minimize the volume of the bounding box.

SURFACE_AREA = 1#

Minimize the surface area of the bounding box.

MEAN_WIDTH = 2#

Minimize the mean width of the bounding box, which is half the sum of its side lengths.