Skip to content

T_Rhino_Geometry_Collections_MeshNgonList

Will Pearson edited this page Aug 12, 2016 · 1 revision

MeshNgonList Class

Provides access to the ngons and n-gon 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) Version: Rhino 6.0

Syntax

C#

public class MeshNgonList : IList<MeshNgon>, 
	ICollection<MeshNgon>, IEnumerable<MeshNgon>, IEnumerable, 
	IList, ICollection, IReadOnlyList<MeshNgon>, IReadOnlyCollection<MeshNgon>

VB

Public Class MeshNgonList
	Implements IList(Of MeshNgon), ICollection(Of MeshNgon), 
	IEnumerable(Of MeshNgon), IEnumerable, IList, ICollection, 
	IReadOnlyList(Of MeshNgon), IReadOnlyCollection(Of 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.
  Back to Top

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 n-gon 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 avarage of the corner points.
Public method GetNgonCenter(MeshNgon) Gets the center point of an ngon. This the avarage of the corner points.
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.
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 NgonIndexFromFaceIndex Returns the index of a mesh ngon the face belongs to.
Public method RemoveAt Removes an ngon from the mesh.
Public method RemoveNgons Remove one or more ngons from the mesh.
Public method SetNgon Set an ngon in this list.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Rhino.Geometry.Collections Namespace

Clone this wiki locally