Click or drag to resize
DigitalRuneShapeOnGetMesh 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 abstract 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

Notes to Inheritors: The parameters are guaranteed to be in a valid range - no parameter validation necessary.

If an exact mesh can be returned, this mesh should be generated. If the shape can only be approximated, the absolute distance error should be less than absoluteDistanceThreshold or at max iterationLimit iterations should be performed for iterative mesh generation algorithms.

See Also