Class Statistic
Gather mesh statistics.
Inheritance
Inherited Members
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Tools
Syntax
public class Statistic
Fields
CircleTopCount
Number of circle top calculations performed.
Declaration
public static long CircleTopCount
Field Value
Type | Description |
---|---|
System.Int64 |
CircumcenterCount
// Number of circumcenter calculations performed.
Declaration
public static long CircumcenterCount
Field Value
Type | Description |
---|---|
System.Int64 |
CounterClockwiseAdaptCount
Declaration
public static long CounterClockwiseAdaptCount
Field Value
Type | Description |
---|---|
System.Int64 |
CounterClockwiseCount
Number of counterclockwise tests performed.
Declaration
public static long CounterClockwiseCount
Field Value
Type | Description |
---|---|
System.Int64 |
HyperbolaCount
Number of right-of-hyperbola tests performed.
Declaration
public static long HyperbolaCount
Field Value
Type | Description |
---|---|
System.Int64 |
InCircleAdaptCount
Declaration
public static long InCircleAdaptCount
Field Value
Type | Description |
---|---|
System.Int64 |
InCircleCount
Number of incircle tests performed.
Declaration
public static long InCircleCount
Field Value
Type | Description |
---|---|
System.Int64 |
Orient3dCount
Number of 3D orientation tests performed.
Declaration
public static long Orient3dCount
Field Value
Type | Description |
---|---|
System.Int64 |
RelocationCount
Number of vertex relocations.
Declaration
public static long RelocationCount
Field Value
Type | Description |
---|---|
System.Int64 |
Properties
AngleHistogram
Gets the angle histogram.
Declaration
public int[] AngleHistogram { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |
LargestAngle
Gets the largest angle.
Declaration
public double LargestAngle { get; }
Property Value
Type | Description |
---|---|
System.Double |
LargestArea
Gets the largest area.
Declaration
public double LargestArea { get; }
Property Value
Type | Description |
---|---|
System.Double |
LargestAspectRatio
Gets the largest aspect ratio.
Declaration
public double LargestAspectRatio { get; }
Property Value
Type | Description |
---|---|
System.Double |
LongestEdge
Gets the longest edge.
Declaration
public double LongestEdge { get; }
Property Value
Type | Description |
---|---|
System.Double |
MaxAngleHistogram
Gets the max angles histogram.
Declaration
public int[] MaxAngleHistogram { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |
MeshArea
Gets the total mesh area.
Declaration
public double MeshArea { get; }
Property Value
Type | Description |
---|---|
System.Double |
MinAngleHistogram
Gets the min angles histogram.
Declaration
public int[] MinAngleHistogram { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |
ShortestAltitude
Gets the shortest altitude.
Declaration
public double ShortestAltitude { get; }
Property Value
Type | Description |
---|---|
System.Double |
ShortestEdge
Gets the shortest edge.
Declaration
public double ShortestEdge { get; }
Property Value
Type | Description |
---|---|
System.Double |
SmallestAngle
Gets the smallest angle.
Declaration
public double SmallestAngle { get; }
Property Value
Type | Description |
---|---|
System.Double |
SmallestArea
Gets the smallest area.
Declaration
public double SmallestArea { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
ComputeAngles(ITriangle, Double[])
Compute angle information for given triangle.
Declaration
public static void ComputeAngles(ITriangle triangle, double[] data)
Parameters
Type | Name | Description |
---|---|---|
ITriangle | triangle | The triangle to check. |
System.Double[] | data | Array of doubles (length 6). |
Remarks
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(Mesh, Int32)
Update statistics about the quality of the mesh.
Declaration
public void Update(Mesh mesh, int sampleDegrees)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | |
System.Int32 | sampleDegrees |