Click or drag to resize

PhysicsEngineCreateConvexHullGeometry Method (IMesh, Double)

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: 15.0.2.11458
Syntax
C#
public PhysicsConvexHullGeometry CreateConvexHullGeometry(
	IMesh mesh,
	double margin
)

Parameters

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

Return Value

Type: 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