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

Splitting a brep face with curves using BrepFace.Split Method

$
0
0

@Helvetosaur wrote:

Maybe I'm using this wrong, but I can't get it to work...

http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_BrepFace_Split.htm

Says I can split a brep face with a collection of 3d curves... Doesn't seem to work here, always errors out. You can see the state in the debugger below just before the line in question, ut_face is a brep face, bords is a list of Nurbs curves (splitters), tol is just a tolerance value...

What I get is this:
Message: iteration over non-sequence of type Brep

Looks like it's expecting a Brep - also supported by this overloaded function. What do I have to do to get it to accept my curve list? Do I have to convert the list into an IEnumerable? (I've forgotten how one does that...)

Edit:
I tried using a generic .NET list as I saw in another discussion by adding the following:

from System.Collections.Generic import List
bords=List[Rhino.Geometry.Curve](bords)

But I still get the same error message...

Thanks, --Mitch

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5786

Trending Articles