Method TriangulateSurface
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TriangulateSurface()
Breaks the region into triangles fanned from its centre, as many as ToPolygon() has edges, using the default tolerance.
public GeoTriangle2[] TriangulateSurface()
Returns
- GeoTriangle2[]
The triangles, counter-clockwise.
TriangulateSurface(Tolerance)
Breaks the region into triangles fanned from its centre, as many as ToPolygon() has edges, within a tolerance.
public GeoTriangle2[] TriangulateSurface(Tolerance tolerance)
Parameters
toleranceToleranceThe tolerance deciding what counts as no area.
Returns
- GeoTriangle2[]
The triangles, counter-clockwise; none when the minor radius is no more than the point tolerance.
TriangulateSurface(double)
Breaks the region into triangles fanned from its centre, the rim cut so that it strays from the ellipse no further than a chord tolerance, using the default tolerance.
public GeoTriangle2[] TriangulateSurface(double chordTolerance)
Parameters
chordTolerancedoubleThe largest gap allowed between a chord and the rim, in drawing units. Zero picks the automatic share of the minor radius.
Returns
- GeoTriangle2[]
The triangles, counter-clockwise.
TriangulateSurface(double, Tolerance)
Breaks the region into triangles fanned from its centre, the rim cut so that it strays from the ellipse no further than a chord tolerance, within a tolerance.
public GeoTriangle2[] TriangulateSurface(double chordTolerance, Tolerance tolerance)
Parameters
chordTolerancedoubleThe largest gap allowed between a chord and the rim, in drawing units. Zero picks the automatic share of the minor radius.
toleranceToleranceThe tolerance deciding what counts as no area.
Returns
- GeoTriangle2[]
The triangles, counter-clockwise; none when the minor radius is no more than the point tolerance.
Remarks
Fanned from the centre, as a circle is: the rim's polygon is convex, so every triangle is whole, and the triangles cover the polygon ToPolygonByChordTolerance(double) gives, which lies within the ellipse.