T_Rhino_Geometry_MeshNgon - mcneel/rhinocommon-api-docs GitHub Wiki

MeshNgon Class

Represents a mesh ngon.

Inheritance Hierarchy

System.Object
  Rhino.Geometry.MeshNgon
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public class MeshNgon : IEquatable<MeshNgon>, 
	IComparable<MeshNgon>, IComparable

VB

Public Class MeshNgon
	Implements IEquatable(Of MeshNgon), IComparable(Of MeshNgon), 
	IComparable

The MeshNgon type exposes the following members.

Properties

 

Name Description
Public property BoundaryVertexCount Get the number of vertices in this ngon.
Public propertyStatic member Empty Gets an empty MeshNgon.
Public property FaceCount Get the number of faces in this ngon.
Public property Item Get a mesh vertex index from the ngon's vertex index list.
  Back to Top

Methods

 

Name Description
Public method BoundaryVertexIndexList Get the ngon's outer boundary mesh vertex list.
Public method CompareTo 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 member Create Constructs an ngon from lists of mesh vertex and face indexes.
Public method Equals(Object) Determines if otherObj is a MeshNgon and is identical to this ngon. (Overrides Object.Equals(Object).)
Public method Equals(MeshNgon) Determines if this ngon and otherNgon are identical.
Public method FaceIndexList Get the ngon's mesh face index list.
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 GetHashCode Returns a runtime-stable hashcode for the current mesh ngon. You are not allowed to rely on persistance of this hashcode in serialization, but for each instance of the application, this hashcode will be the same for ngons with identical vertex and face lists. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Set Set the ngon vertex and face index lists.
Public method 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. (Overrides Object.ToString().)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Equality Determines whether two MeshNgon structures have equal values.
Public operatorStatic member Inequality Determines whether two MeshNgon structures have different values.
  Back to Top

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️