Returns the vertex count of a mesh object.
rhinoscriptsyntax.MeshVertexCount (object_id)
rhinoscript.mesh.MeshVertexCount (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
Number |
The number of mesh vertices if successful. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh )
print "Vertex count: ", rs.MeshVertexCount(obj)