Table of Contents

Method IsDegenerate

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

IsDegenerate()

Checks whether the triangle has no area, using the default tolerance.

public bool IsDegenerate()

Returns

bool

IsDegenerate(Tolerance)

Checks whether the triangle has no area, within a tolerance.

public bool IsDegenerate(Tolerance tolerance)

Parameters

tolerance Tolerance

Returns

bool

Remarks

A triangle has no area when its height over its longest side is within the point tolerance, so that it lies within the tolerance of that side, a segment; or when its corners lie on one line to rounding, so that it has no normal. The test is a length against a length: a triangle 0.002 by 0.002 is a triangle at the default tolerance, and a sliver 1 000 long and 0.0004 high is not, where twice the area read against the vector tolerance called the first nothing and the second a triangle. The queries of a triangle, CollidesWith, GetIntersections and Locate among them, read no area by this too: the triangle 0.003 by 0.003 is a triangle to them, holding its centroid and crossed by a segment through its middle, and a triangle with none is the segment it has collapsed to, touching what comes within the point tolerance of it and crossed where its sides are.