PhysicsEngineCreateConvexHullGeometryByDecomposition Method |
Decomposes the provided mesh into a number of convex-hulls.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.01.00
Syntaxpublic PhysicsCompoundGeometry CreateConvexHullGeometryByDecomposition(
IMesh mesh,
double margin,
ConvexHullDecompositionProperties props = null
)
Parameters
- mesh IMesh
- The mesh from which to create the convex-hull geometry.
- margin Double
- The collision margin for the convex-hulls.
- props ConvexHullDecompositionProperties (Optional)
- The properties to use when performing convex-hull decomposition.
Return Value
PhysicsCompoundGeometryThe created compound physics geometry, containing convex-hulls.
Remarks
This method first computes the convex-hull decomposition for the specified
mesh. The convex-hull decomposition is then cached so that we only
perform the computationally expensive operations required to generate the convex-hull
decomposition once. The convex-hull decomposition is then used to create the compound of
physics convex-hull geometry.
See Also