Table of Contents

Method TriangulateSurface

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TriangulateSurface(double)

Breaks the surface of the ball into triangles, none of them further from the sphere than a chord tolerance.

public GeoTriangle3[] TriangulateSurface(double chordTolerance)

Parameters

chordTolerance double

The largest gap allowed between a triangle and the sphere, in drawing units. Zero picks 0.2 % of the radius.

Returns

GeoTriangle3[]

The triangles of ToSolid(double), counter-clockwise seen from outside, in a fixed order.

Exceptions

ArgumentException

Thrown when the ball is not valid, as a default one is.

InvalidOperationException

Thrown when the centre of the ball has a coordinate that is not a finite number.

ArgumentOutOfRangeException

Thrown when the tolerance is negative or not a finite number, or needs more than 1 048 576 triangles.