MeshNgonList
Provides access to the ngons and ngon-related functionality of a Mesh. See also the
Ngons
property for Ngon functionality details.Inheritance Hierarchy
System.Object
Rhino.Geometry.Collections.MeshNgonList
Namespace: Rhino.Geometry.Collections
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class MeshNgonList : IResizableList<MeshNgon>, IList<MeshNgon>, ICollection<MeshNgon>, IEnumerable<MeshNgon>, IEnumerable, IList, ICollection, IReadOnlyList<MeshNgon>, IReadOnlyCollection<MeshNgon>
The MeshNgonList type exposes the following members.
Properties
Name
Description
Public Property
Count
Gets or sets the number of mesh ngons.
Public Property
Item
Returns the mesh ngon at the given index.
Public Property
UnsignedCount
Gets or sets the number of mesh ngons.
Methods
Name
Description
Public Method
AddNgon
Appends a new ngon to the end of the mesh ngon list.
Public Method
AddNgons
Appends a list of ngons to the end of the mesh ngon list.
Public Method
AddPlanarNgons(Double)
Add an ngon for each group of connected coplanar faces.
Public Method
AddPlanarNgons(Double, Int32, Int32, Boolean)
Add an ngon for each group of connected coplanar faces.
Public Method
Clear
Clears the Ngon list on the mesh.
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public Method
GetEnumerator
Gets an enumerator that yields all ngons in this collection.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetNgon
Returns the mesh ngon at the given index.
Public Method
GetNgonBoundary
Get a list of vertices that form the boundary of a face set. This is often use to get ngon boundaries.
Public Method
GetNgonBoundingBox(Int32)
Gets the bounding box of an ngon.
Public Method
GetNgonBoundingBox(MeshNgon)
Gets the bounding box of an ngon.
Public Method
GetNgonCenter(Int32)
Gets the center point of an ngon.
This the average of the corner points.
Public Method
GetNgonCenter(MeshNgon)
Gets the center point of an ngon.
This the average of the corner points.
Public Method
GetNgonEdgeCount
Gets the complete edge count of an ngon.
Public Method
GetNgonOuterEdgeCount
Gets the outer edge count of an ngon.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
Insert
Inserts a mesh ngon at a defined index in this list.
Public Method
IsValid(Int32)
Tests an ngon to see if the vertex and face references are valid and pass partial boundary validity checks.
Public Method
IsValid(Int32, TextLog)
Tests an ngon to see if the vertex and face references are valid and pass partial boundary validity checks.
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
NgonBoundaryVertexList
Get an ngon’s boundary points.
Public Method
NgonHasHoles
Determines whether a ngon has holes.
Public Method
NgonIndexFromFaceIndex
Returns the index of a mesh ngon the face belongs to.
Public Method
Orientation
Determine if the ngon’s boundary orientation matches that of the set of faces it is made from.
Public Method
RemoveAt
Removes an ngon from the mesh.
Public Method
RemoveNgons
Remove one or more ngons from the mesh.
Public Method
ReverseOuterBoundary
Reverse the order of the m_vi[] array for an ngon
Public Method
SetNgon
Set an ngon in this list.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)