Skip to content

T_Rhino_Geometry_Collections_MeshVertexList

Will Pearson edited this page Aug 12, 2016 · 2 revisions

MeshVertexList Class

Provides access to the vertices and vertex-related functionality of a mesh.

Inheritance Hierarchy

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

Syntax

C#

public class MeshVertexList : IList<Point3f>, 
	ICollection<Point3f>, IEnumerable<Point3f>, IEnumerable, 
	IReadOnlyList<Point3f>, IReadOnlyCollection<Point3f>, IList, 
	ICollection

VB

Public Class MeshVertexList
	Implements IList(Of Point3f), ICollection(Of Point3f), 
	IEnumerable(Of Point3f), IEnumerable, IReadOnlyList(Of Point3f), 
	IReadOnlyCollection(Of Point3f), IList, ICollection

The MeshVertexList type exposes the following members.

Properties

 

Name Description
Public property Capacity Gets or sets the total number of vertices the internal data structure can hold without resizing.
Public property Count Gets or sets the number of mesh vertices.
Public property Item Gets or sets the vertex at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
  Back to Top

Methods

 

Name Description
Public method Add(Point3d) Adds a new vertex to the end of the Vertex list.
Public method Add(Point3f) Adds a new vertex to the end of the Vertex list.
Public methodCode example Add(Double, Double, Double) Adds a new vertex to the end of the Vertex list.
Public methodCode example Add(Single, Single, Single) Adds a new vertex to the end of the Vertex list.
Public method AddVertices(IEnumerable(Point3d)) Adds a series of new vertices to the end of the vertex list. This overload accepts double-precision points.
Public method AddVertices(IEnumerable(Point3f)) Adds a series of new vertices to the end of the vertex list. This overload accepts single-precision points.
Public method Align(Double, IEnumerable(Boolean)) Moves mesh vertices that belong to naked edges to neighboring vertices, within the specified distance. This forces unaligned mesh vertices to the same location and is helpful to clean meshes for 3D printing.

See the

_AlignMeshVertices

Rhino command for more information.

Public methodStatic member Align(IEnumerable(Mesh), Double, IEnumerable(IEnumerable(Boolean))) Moves mesh vertices that belong to naked edges to neighboring vertices, within the specified distance. This forces unaligned mesh vertices to the same location and is helpful to clean meshes for 3D printing.

See the

_AlignMeshVertices

Rhino command for more information.

Public method Clear Clears the Vertex list on the mesh.
Public method CombineIdentical Merges identical vertices.
Public method CullUnused Removes all vertices that are currently not used by the Face list.
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 GetConnectedVertices Gets indices of all vertices that form "edges" with a given vertex index.
Public method GetEnumerator Gets an enumerator that yields all mesh vertices (points) in this collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetTopologicalIndenticalVertices Gets a list of other vertices which are "topologically" identical to this vertex.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetVertexFaces Gets a list of all of the faces that share a given vertex.
Public method Hide Hides the vertex at the given index.
Public method HideAll Hides all vertices in the mesh.
Public method IsHidden Gets a value indicating whether or not a vertex is hidden.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(IEnumerable(Int32), Boolean) Removes the vertices at the given indices and all faces that reference those vertices.
Public method Remove(Int32, Boolean) Removes the vertex at the given index and all faces that reference that index.
Public method SetVertex(Int32, Point3d) Sets or adds a vertex to the Vertex List. If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public method SetVertex(Int32, Point3f) Sets or adds a vertex to the Vertex List. If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public method SetVertex(Int32, Double, Double, Double) Sets or adds a vertex to the Vertex List. If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public method SetVertex(Int32, Single, Single, Single) Sets or adds a vertex to the Vertex List. If [index] is less than [Count], the existing vertex at [index] will be modified.

If [index] equals [Count], a new vertex is appended to the end of the vertex list.

If [index] is larger than [Count], the function will return false.

Public method Show Shows the vertex at the given index.
Public method ShowAll Shows all vertices in the mesh.
Public method ToFloatArray Copies all vertices to a linear array of float in x,y,z order
Public method ToPoint3dArray Copies all vertices to a new array of Point3d.
Public method ToPoint3fArray Copies all vertices to a new array of Point3f.
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, 5D58w

See Also

Reference

Rhino.Geometry.Collections Namespace

Clone this wiki locally