Verifies a mesh object has vertex normals.
rhinoscriptsyntax.MeshHasVertexNormals (object_id)
rhinoscript.mesh.MeshHasVertexNormals (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a mesh", rs.filter.mesh)
if rs.MeshHasVertexNormals(obj):
print "The mesh has vertex normals."
else:
print "The mesh does not have vertex normals."