MeshNgonList
ReferencesProvides access to the ngons and ngon-related functionality of a Mesh. See also the Mesh.Ngons property for Ngon functionality details.
Properties
Indexers
Methods
Appends a new ngon to the end of the mesh ngon list.
Returns: The index of the newly added ngon.
Appends a list of ngons to the end of the mesh ngon list.
Returns: Indices of the newly created ngons
Add an ngon for each group of connected coplanar faces.
Returns: Number of ngons added to the mesh.
Add an ngon for each group of connected coplanar faces.
Returns: Number of ngons added to the mesh.
Gets an enumerator that yields all ngons in this collection.
Returns: The enumerator.
Returns the mesh ngon at the given index.
Returns: The mesh ngon at the given index. This ngon can be MeshNgon.Empty.
Get a list of vertices that form the boundary of a face set. This is often use to get ngon boundaries.
Returns: List of mesh vertex indices that form the boundary of the face set.
Gets the center point of an ngon.
This the average of the corner points.
Returns: The center point.
Gets the center point of an ngon.
This the average of the corner points.
Returns: The center point.
Gets the complete edge count of an ngon.
Returns: Complete edge count or zero on error.
Gets the outer edge count of an ngon.
Returns: Outer edge count or zero on error.
Inserts a mesh ngon at a defined index in this list.
Exceptions:
| ArgumentOutOfRangeException | If index is negative or >= Count. |
Tests an ngon to see if the vertex and face references are valid and pass partial boundary validity checks.
[CLSCompliant(false)]
public uint IsValid()
index,
The index of the ngon to test.
textLog
A text log for collecting information about problems.
Remarks: If the return value is > MeshNgon.BoundaryVertexCount, then the ngon has either inner boundaries or duplicate vertices.
Returns: 0 if the ngon is not valid, otherwise the number of boundary edges.
Tests an ngon to see if the vertex and face references are valid and pass partial boundary validity checks.
Remarks: If the return value is > MeshNgon.BoundaryVertexCount, then the ngon has either inner boundaries or duplicate vertices.
Returns: 0 if the ngon is not valid, otherwise the number of boundary edges.
Get an ngon's boundary points.
Returns: A list of ngon boundary points.
Determines whether a ngon has holes.
Remarks: A slit, for example, will give an edge count that differs from outer edge count despite the lack of true "holes" i.e. interior edges that are not shared by more than one face of the ngon in question.
Returns: true for holes (or malformed ngon, see remarks), false for no holes.
Returns the index of a mesh ngon the face belongs to.
Returns: The index of the mesh ngon the face belongs to or -1 if the face does not belong to an ngon.
Determine if the ngon's boundary orientation matches that of the set of faces it is made from.
Returns: 1: The ngon does not have holes, the ngon's faces are compatibly oriented, and the ngon's outer boundary orientation matches the faces' orientation. -1: The ngon does not have holes, the ngon's faces are compatibly oriented, and the ngon's outer boundary orientation is opposite the faces' orientation. 0: Otherwise.The ngon may be invalid, have holes, the ngon's faces may not be compatibly oriented, the ngons edges may not have a consistent orientation with respect to the faces, or some other issue.
Removes all ngons from the mesh.
Returns: The number deleted ngons.
Removes an ngon from the mesh.
Remove one or more ngons from the mesh.
Returns: The number of deleted ngons.
Reverse the order of the m_vi[] array for an ngon
Set an ngon in this list.
Exceptions:
| ArgumentOutOfRangeException | If index is negative or >= Count. |