Class QualityOptions
Mesh constraint options for quality triangulation.
Inheritance
Inherited Members
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Meshing
Syntax
public class QualityOptions
Properties
MaximumAngle
Gets or sets a maximum angle constraint.
Declaration
public double MaximumAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
MaximumArea
Gets or sets a maximum triangle area constraint.
Declaration
public double MaximumArea { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
MinimumAngle
Gets or sets a minimum angle constraint.
Declaration
public double MinimumAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
SteinerPoints
Gets or sets the maximum number of Steiner points to be inserted into the mesh.
Declaration
public int SteinerPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
If the value is 0 (default), an unknown number of Steiner points may be inserted to meet the other quality constraints.
UserTest
Gets or sets a user-defined triangle constraint.
Declaration
public Func<ITriangle, double, bool> UserTest { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Func<ITriangle, System.Double, System.Boolean> |
Remarks
The test function will be called for each triangle in the mesh. The second argument is the area of the triangle tested. If the function returns true, the triangle is considered bad and will be refined.
VariableArea
Gets or sets an area constraint per triangle.
Declaration
public bool VariableArea { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
If this flag is set to true, the Area value will be used to check if a triangle needs refinement.