Methods_T_Rhino_Geometry_Collections_MeshFaceList - mcneel/rhinocommon-api-docs GitHub Wiki

MeshFaceList Methods

The MeshFaceList type exposes the following members.

Methods

 

Name Description
Public method AddFace(MeshFace) Appends a new mesh face to the end of the mesh face list.
Public method AddFace(Int32, Int32, Int32) Appends a new triangular face to the end of the mesh face list.
Public methodCode example AddFace(Int32, Int32, Int32, Int32) Appends a new quadragular face to the end of the mesh face list.
Public method AddFaces Appends a list of faces to the end of the mesh face list.
Public method AdjacentFaces Gets all faces that share a topological edge with a given face.
Public method Clear Clears the Face list on the mesh.
Public method ConvertNonPlanarQuadsToTriangles Splits non-planar quads into two triangles based on given params.
Public method ConvertQuadsToTriangles Splits all quads along the short diagonal.
Public method ConvertTrianglesToQuads Joins adjacent triangles into quads if the resulting quad is 'nice'.
Public method CullDegenerateFaces Attempts to removes degenerate faces from the mesh. Degenerate faces are faces that contains such a combination of indices, that their final shape collapsed in a line or point.

Before returning, this method also attempts to repair faces by juggling vertex indices.

Public method DeleteFaces Removes a collection of faces from the mesh without affecting the remaining geometry.
Public method Destroy Releases all memory allocated to store faces. The list capacity will be 0 after this call. Subsequent calls can add new items.
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 GetConnectedFaces Find all connected face indices where adjacent face normals meet the criteria of angleRadians and greaterThanAngle
Public method GetConnectedFacesToEdges Uses startFaceIndex and finds all connected face indexes up to unwelded or naked edges. If treatNonmanifoldLikeUnwelded is true then non-manifold edges will be considered as unwelded or naked
Public method GetEnumerator Gets an enumerator that yields all faces in this collection.
Public method GetFace Returns the mesh face at the given index.
Public method GetFaceAspectRatio Returns the mesh face at the given index.
Public method GetFaceBoundingBox Gets the bounding box of a face.
Public method GetFaceCenter Gets the center point of a face. For a triangular face, this is the centroid or barycenter.

For a quad, this is the avarage of four coner points.

Public method GetFaceVertices Gets the 3D location of the vertices forming a face.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetTopologicalVertices Gets the topology vertex indices of a face.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasNakedEdges Returns true if at least one of the face edges are not topologically connected to any other faces.
Public method Insert Inserts a mesh face at a defined index in this list.
Public method IsHidden Gets a value indicating whether a face is hidden. A face is hidden if, and only if, at least one of its vertices is hidden.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveAt Removes a face from the mesh.
Public method SetFace(Int32, MeshFace) Sets a face at a specific index of the mesh.
Public method SetFace(Int32, Int32, Int32, Int32) Sets a triangular face at a specific index of the mesh.
Public method SetFace(Int32, Int32, Int32, Int32, Int32) Sets a quadrangular face at a specific index of the mesh.
Public method ToIntArray Copies all of the faces to a linear array of indices.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

MeshFaceList Class
Rhino.Geometry.Collections Namespace

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