MeshVertexList

class rhino3dm.MeshVertexList
UseDoublePrecisionVertices

bool: Set to True if the vertices should be stored in double precision

__len__()

[todo] add documentation

SetCount()

[todo] add documentation

__getitem__()

[todo] add documentation

__setitem__()

[todo] add documentation

Clear()

Clears the Vertex list on the mesh.

Return type:

void

Destroy()

Releases all memory allocated to store faces. The list capacity will be 0 after this call. Subsequent calls can add new items.

Return type:

void

Add(x, y, z)

Adds a new vertex to the end of the Vertex list.

Parameters:
  • x (float) – X component of new vertex coordinate.

  • y (float) – Y component of new vertex coordinate.

  • z (float) – Z component of new vertex coordinate.

Returns:

The index of the newly added vertex.

Return type:

int

IsHidden(vertexIndex)

Gets a value indicating whether or not a vertex is hidden.

Parameters:

vertexIndex (int) – Index of vertex to query.

Returns:

True if the vertex is hidden, False if it is not.

Return type:

bool

Hide(vertexIndex)

Hides the vertex at the given index.

Parameters:

vertexIndex (int) – Index of vertex to hide.

Return type:

void

Show(vertexIndex)

Shows the vertex at the given index.

Parameters:

vertexIndex (int) – Index of vertex to show.

Return type:

void

HideAll()

Hides all vertices in the mesh.

Return type:

void

ShowAll()

Shows all vertices in the mesh.

Return type:

void

CullUnused()

Removes all vertices that are currently not used by the Face list.

Returns:

The number of unused vertices that were removed.

Return type:

int

CombineIdentical()

Merges identical vertices.

Parameters:
  • ignoreNormals (bool) – If true, vertex normals will not be taken into consideration when comparing vertices.

  • ignoreAdditional (bool) – If true, texture coordinates, colors, and principal curvatures will not be taken into consideration when comparing vertices.

Returns:

True if the mesh is changed, in which case the mesh will have fewer vertices than before.

Return type:

bool