Returns the vertices of a mesh object.
rhinoscriptsyntax.MeshVertices (object_id)
rhinoscript.mesh.MeshVertices (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
List |
A list of 3-D points that define the vertices of the mesh if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh)
vertices = rs.MeshVertices(obj)
if vertices: rs.AddPointCloud(vertices)