Click or drag to resize
DigitalRuneConvexShapeOnGetMesh Method
Called when a mesh should be generated for the shape.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
protected override TriangleMesh OnGetMesh(
	float absoluteDistanceThreshold,
	int iterationLimit
)

Parameters

absoluteDistanceThreshold
Type: SystemSingle
The absolute distance threshold.
iterationLimit
Type: SystemInt32
The iteration limit.

Return Value

Type: TriangleMesh
The triangle mesh for this shape.
Remarks

ConvexShape provides a base implementation for OnGetMesh(Single, Int32) that samples the support mapping and automatically generates a mesh. But derived classes should override OnGetMesh(Single, Int32) if they can provide a more efficient implementation.

See Also