| ShapeOnGetMesh Method |
Called when a mesh should be generated for the shape.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax protected abstract TriangleMesh OnGetMesh(
float absoluteDistanceThreshold,
int iterationLimit
)
Protected MustOverride Function OnGetMesh (
absoluteDistanceThreshold As Single,
iterationLimit As Integer
) As TriangleMesh
protected:
virtual TriangleMesh^ OnGetMesh(
float absoluteDistanceThreshold,
int iterationLimit
) abstract
abstract OnGetMesh :
absoluteDistanceThreshold : float32 *
iterationLimit : int -> TriangleMesh
Parameters
- absoluteDistanceThreshold
- Type: SystemSingle
The absolute distance threshold. - iterationLimit
- Type: SystemInt32
The iteration limit.
Return Value
Type:
TriangleMeshThe 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