Brep.CreateBoolean not working though it works manually!

Hi there,

I know this is to be found in a lot of discussions.
I am trying to join two breps by using Brep.CreateBooleanUnion().

Even though I use this:

for p in lst:
    p.Faces.SplitKinkyFaces(Rhino.RhinoMath.DefaultAngleTolerance, True)
    if BrepSolidOrientation.Inward == p.SolidOrientation:
        p.Flip()

It is not working.
Doing this manually works perfectly fine, though.
I even increased the tolerance in the method…

Then I just added the elments to the document and tried:

import System
objs = rs.GetObjects()
breps = [rs.coercegeometry(x) for x in objs]
breps = System.Array[Brep](breps)
test = Brep.CreateBooleanUnion(breps, tol_abs)[0]
sc.doc.Objects.Add(test)

The result is successful and I get the brep.
What might be wrong in my initial script so this won’t work?
Any ideas?

Thanks,
T.

Hi @tobias.stoltmann,

Can you post a .3dm file that contains geometry?

– Dale

@dale I sent a mail to tech@mcneel.com.