Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5871

[python] Is there a way to check if the polysurface is closed solid polysurface?

$
0
0

@ivelin.peychev wrote:

I assume it has to be Rhino.DocObjects.RhinoObject.Description
I tried ShortDescription but it only gives me surface or polysurface.

and I can’t figure out how to use Rhino.FileIO.TextLog()

this:

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

#obj = rs.GetObject(message=None, filter=rs.filter.polysurface, preselect=True, select=False, custom_filter=None, subobjects=False) 
""""""
objs = [obj for obj in rs.AllObjects()]# if rs.IsPolysurface(obj) and rs.ObjectName(obj) == "Delimited molded surface.1"

print len(objs)

for obj in objs:
    tlog = Rhino.FileIO.TextLog()
    print Rhino.DocObjects.BrepObject.Description(rs.coercerhinoobject(obj),tlog)

results in None for every object it finds.

Thanks in advance.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5871

Trending Articles