My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
TriangleNet.Tools.Statistic Class Reference

Gather mesh statistics. More...

Public Member Functions

void Update (TriangleNetMesh triangleNetMesh, int sampleDegrees)
 Update statistics about the quality of the mesh.
 

Static Public Member Functions

static void ComputeAngles (ITriangle triangle, float[] data)
 Compute angle information for given triangle.
 

Static Public Attributes

static long InCircleCount = 0
 Number of incircle tests performed.
 
static long InCircleAdaptCount = 0
 
static long CounterClockwiseCount = 0
 Number of counterclockwise tests performed.
 
static long CounterClockwiseAdaptCount = 0
 
static long Orient3dCount = 0
 Number of 3D orientation tests performed.
 
static long HyperbolaCount = 0
 Number of right-of-hyperbola tests performed.
 
static long CircumcenterCount = 0
 // Number of circumcenter calculations performed.
 
static long CircleTopCount = 0
 Number of circle top calculations performed.
 
static long RelocationCount = 0
 Number of vertex relocations.
 

Properties

float ShortestEdge [get]
 Gets the shortest edge.
 
float LongestEdge [get]
 Gets the longest edge.
 
float ShortestAltitude [get]
 Gets the shortest altitude.
 
float LargestAspectRatio [get]
 Gets the largest aspect ratio.
 
float SmallestArea [get]
 Gets the smallest area.
 
float LargestArea [get]
 Gets the largest area.
 
float SmallestAngle [get]
 Gets the smallest angle.
 
float LargestAngle [get]
 Gets the largest angle.
 
int[] AngleHistogram [get]
 Gets the angle histogram.
 
int[] MinAngleHistogram [get]
 Gets the min angles histogram.
 
int[] MaxAngleHistogram [get]
 Gets the max angles histogram.
 

Detailed Description

Gather mesh statistics.

Member Function Documentation

◆ ComputeAngles()

static void TriangleNet.Tools.Statistic.ComputeAngles ( ITriangle  triangle,
float[]  data 
)
inlinestatic

Compute angle information for given triangle.

Parameters
triangleThe triangle to check.
dataArray of floats (length 6).

On return, the squared cosines of the minimum and maximum angle will be stored at position data[0] and data[1] respectively. If the triangle was obtuse, data[2] will be set to -1 and maximum angle is computed as (pi - acos(sqrt(data[1]))).

◆ Update()

void TriangleNet.Tools.Statistic.Update ( TriangleNetMesh  triangleNetMesh,
int  sampleDegrees 
)
inline

Update statistics about the quality of the mesh.

Parameters
triangleNetMesh

The documentation for this class was generated from the following file: