Click or drag to resize

MeshNgon Class

Represents 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 GetNgonAndFacesEnumerable, this might contain also triangles and quads.

Inheritance Hierarchy

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public class MeshNgon : IEquatable<MeshNgon>, 
	IComparable<MeshNgon>, IComparable

The MeshNgon type exposes the following members.

Public propertyBoundaryVertexCount
Get the number of vertices in this ngon. about length information.
Public propertyStatic memberEmpty
Gets an empty MeshNgon.
Public propertyFaceCount
Get the number of faces in this ngon.
Public propertyItem
Get a mesh vertex index from the ngon's vertex index list.
Public methodBoundaryVertexIndexList
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.

Public methodCompareTo
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.

Public methodStatic memberCreate
Constructs an ngon from lists of mesh vertex and face indexes.
Public methodEquals(MeshNgon)
Determines if this ngon and otherNgon are identical.
Public methodEquals(Object)
Determines if otherObj is a MeshNgon and is identical to this ngon.
(Overrides ObjectEquals(Object).)
Public methodFaceIndexList
Get the ngon's mesh face index list.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
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.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSet
Set the ngon vertex and face index lists.
Public methodToString
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.
(Overrides ObjectToString.)
Public operatorStatic memberEquality
Determines whether two MeshNgon structures have equal values.
Public operatorStatic memberInequality
Determines whether two MeshNgon structures have different values.
See Also