Package vhacd4
Class Vhacd4
java.lang.Object
vhacd4.Vhacd4
Utility class to perform Volumetric-Hierarchical Approximate Convex
 Decomposition on an indexed mesh.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddProgressListener(VHACDProgressListener listener) Register the specified progress listener.static List<Vhacd4Hull> compute(float[] positions, int[] indices, Vhacd4Parameters params) Generate convex hulls to approximate the specified mesh.static voidremoveProgressListener(VHACDProgressListener listener) De-register the specified progress listener.
- 
Field Details- 
loggermessage logger for this class
 
- 
- 
Method Details- 
addProgressListenerRegister the specified progress listener.- Parameters:
- listener- the listener to register (not null, alias created)
 
- 
computeGenerate convex hulls to approximate the specified mesh.- Parameters:
- positions- the positions of all mesh vertices (not null, length a multiple of 3, unaffected)
- indices- the vertex indices of all mesh triangles (not null, length a multiple of 3, unaffected)
- params- the tuning parameters to use (not null, unaffected)
- Returns:
- a new list of hulls, or an empty list if the algorithm failed
 
- 
removeProgressListenerDe-register the specified progress listener.- Parameters:
- listener- the listener to de-register (not null, unaffected)
 
 
-