Method TriangulateSurface
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TriangulateSurface()
Breaks the disc into triangles fanned from its center, as many as ToPolygon() has edges, using the default tolerance.
public GeoTriangle2[] TriangulateSurface()
Returns
- GeoTriangle2[]
The triangles, counter-clockwise; none when the radius is nought.
TriangulateSurface(Tolerance)
Breaks the disc into triangles fanned from its center, 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 disc has no area within the tolerance.
TriangulateSurface(double)
Breaks the disc into triangles fanned from its center, the rim cut so that it strays from the circle 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 circle, in drawing units. Zero picks the automatic share of the radius.
Returns
- GeoTriangle2[]
The triangles, counter-clockwise; none when the radius is nought.
TriangulateSurface(double, Tolerance)
Breaks the disc into triangles fanned from its center, the rim cut so that it strays from the circle 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 circle, in drawing units. Zero picks the automatic share of the radius.
toleranceToleranceThe tolerance deciding what counts as no area.
Returns
- GeoTriangle2[]
The triangles, counter-clockwise; none when the disc has no area within the tolerance.
Remarks
Fanned from the center, every triangle is the same narrow isosceles one, which clipping the rim's polygon from its own corners does not give: it fans the rim from one corner of it into slivers of every width. The rim's corners are those of ToPolygonByChordTolerance(double), so the triangles cover the polygon it gives, which lies within the circle.