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

Is it possible to select the edge of a polysurface inside a block?

$
0
0

@siemen wrote:

Hi Guys,

The title kind of says it all. I found this code from Mitch’s old topic and am trying to select the edge of a polysurface which is inside a block. Is this possible?

import Rhino
def GetCurvesAndEdges():
    filter=Rhino.DocObjects.ObjectType.EdgeFilter | Rhino.DocObjects.ObjectType.Curve
    rc, objrefs = Rhino.Input.RhinoGet.GetMultipleObjects("Select curves or surface edges", False, filter)
    if rc != Rhino.Commands.Result.Success: return rc    
    return [objref.Curve().ToNurbsCurve() for objref in objrefs]

Posts: 3

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6011

Trending Articles