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

Brep.Split() with curves - why is the first element in the return list always None?

$
0
0

As an example, let’s say you have a single surface and two closed curves that lie on it.
Selecting the surface and the curves, coerce them to a brep and a list of curve objects, then run:

splits=brep.Split.Overloads[IEnumerable[Rhino.Geometry.Curve],System.Double](crvs, tol)

The return always looks like this:
image

Why is the first element None? I would have thought it might return True if the split was successful…

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_Split_3.htm

Is it because one of the 5 overloads on this method has an out parameter so they all have to have a reserved first index even if there’s nothing to return on the other 4 overloads?

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_Split_1.htm

Or something else?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5838

Latest Images

Trending Articles



Latest Images