MeshNgon
ReferencesRepresents a mesh ngon.
When retrieved from the Ngon property of a mesh, this contains faces that have edge valence strictly higher than 4.
When retrieving Ngons from Mesh.GetNgonAndFacesEnumerable(), this might contain also triangles and quads.
Properties
Get the number of vertices in this ngon. MeshNgon about length information.
Indexers
Methods
Get the outer boundary mesh vertex list of the ngon.
Vertices are sorted counterclockwise with respect to the direction of the face, although the degree by which vertex normals will respect this might vary.
Returns: A list of mesh vertex indexes.
Compares this MeshNgon with otherNgon and returns a value of 1, 0, or -1.
Priority is for vertex count, then face count, then vertex index list values, then face index list values.
Constructs an ngon from lists of mesh vertex and face indexes.
Parameters:
| meshVertexIndexList (IList<int>) | A list of mesh vertex indexes that define the outer boundary of the ngon. The mesh vertex indexes must be in the correct order. |
| meshFaceIndexList (IList<int>) | A list of mesh face indexes that define the interior of the ngon. The mesh face indexes may be in any order. |
Determines if this ngon and otherNgon are identical.
Parameters:
| otherNgon (MeshNgon) | The other ngon for comparison. |
Returns: true if otherNgon is identical to this ngon; otherwise false.
Equals
#Determines if otherObj is a MeshNgon and is identical to this ngon.
Parameters:
| otherObj (object) | Any object the represents the other mesh face for comparison. |
Returns: true if otherObj is a MeshNgon and is identical to this ngon; otherwise false.
Overrides: Object.Equals
Get the ngon's mesh face index list.
Returns: A list of mesh face indexes.
GetHashCode
#Returns a runtime-stable hash code for the current mesh ngon. You are not allowed to rely on persistence of this hash code in serialization, but for each instance of the application, this hash code will be the same for ngons with identical vertex and face lists.
Returns: A non-unique integer that represents this mesh ngon.
Overrides: Object.GetHashCode
Set the ngon vertex and face index lists.
Parameters:
| meshVertexIndexList (IList<int>) | A list of mesh vertex indexes that define the outer boundary of the ngon. The mesh vertex indexes must be in the correct order. |
| meshFaceIndexList (IList<int>) | A list of mesh face indexes that define the interior of the ngon. The mesh face indexes may be in any order. |
ToString
#Returns a string representation for this MeshNgon. This is to provide a meaningful visualization of this structure and is subject to change in newer releases.
Returns: The string representation.
Overrides: Object.ToString