#include <convexdecomposition.h>
◆ MAXON_INTERFACE()
◆ Init()
Initialize the convex decomposition library.
- Parameters
-
levelOfDetail | desired level of detail to retail in the decomposition. Allowed values are between 0 and 1. Recommended 0.5. |
maxVoxelCount | Maximum number of voxels used to decompose the bounding box |
- Returns
- This @CLASS (to allow method chaining).
◆ GetSettings()
◆ IsReady()
Get the current status of the decomposition job.
- Returns
- true if the decomposition is complete
◆ GetProgress()
Get the current progress of the decomposition job.
- Returns
- percentage completed
◆ Compute()
Compute convex decomposition. By default this is done asynchronously. To be called after Init().
- Parameters
-
geometryObject | geometry object to decompose |
◆ FetchResults()
Fetch results of the decomposition. In case the decomposition job is not done, wait for the results to be available. To be called after Compute().
- Returns
- An array of geometry objects where each entry represents one of the convex hulls the original object was decomposed into.
◆ Cancel()
Cancel the decomposition job.
◆ Clear()