Class Statistic | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Statistic

    Gather mesh statistics.

    Inheritance
    System.Object
    Statistic
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023