Returns the vertex count of a mesh object.
Rhino.MeshVertexCount (strObject)
strObject |
Required. String. The identifier of a mesh object. |
Number |
The number of mesh vertices if successful. |
Null |
If not successful, or on error. |
Const rhObjectMesh = 32
Dim strObject
strObject = Rhino.GetObject("Select mesh", rhObjectMesh )
Rhino.Print "Vertex count: " & CStr(Rhino.MeshVertexCount(strObject))