Hi all,
how can i check if a geometry is of a certain type (Brep, mesh, crv...)
I know how to do it vb.net,
VB Code:
...if TypeOf obj is Mesh Then...
but this is not working instead
Python Code:
if (obj.ObjectType == Rhino.DocObjects.ObjectType.Mesh):
The error is:
Runtime error (SyntaxErrorException): unexpected EOF while parsing
File "", line 31
if (obj.ObjectType == Rhino.DocObjects.ObjectType.Mesh):
^
SyntaxError: unexpected EOF while parsing
any help?


Reply With Quote