Click or drag to resize

PhysicsEngineCreateConvexHullGeometry(IMesh, Double) Method

Creates a convex-hull geometry that tightly wraps the vertices that form the provided mesh.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public PhysicsConvexHullGeometry CreateConvexHullGeometry(
	IMesh mesh,
	double margin
)

Parameters

mesh  IMesh
The mesh from which to create the convex-hull geometry.
margin  Double
The collision margin for the convex-hull.

Return Value

PhysicsConvexHullGeometry
The created convex-hull geometry.
Remarks
This method first computes the convex-hull for the specified mesh and margin. That convex-hull is then cached so that we only perform the computationally expensive operations required to generate the convex-hull once. The convex-hull is then used to create the physics convex-hull geometry.
See Also