IsMesh

Verifies if an object is a mesh object.

Syntax

rhinoscriptsyntax.IsMesh (object_id)

rhinoscript.mesh.IsMesh (object_id)

Parameters

object_id

Required. String or Guid. The object's identifier.

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a mesh")

if rs.IsMesh(obj):

    print "The object is a mesh."

else:

    print "The object is not a mesh."

Also See

IsMeshClosed

MeshContourPoints

MeshFaceCount

MeshFaces

MeshVertexCount

MeshVertices