Solid difference returning intersection (I think)

Hi!

I have a lot of little BREPs to combine with bigger BREP. The problem is:
1 in the display (red color), some small BREPs are darker red than others.
2 when I solid difference, I get results that lie INSIDE the cutter BREP, so it looks like some sort of intersection

If anyone encountered this issue, what could be wrong here?
From what I saw on solid union problems, it looks like the normals of the BREPs I got are wrong (everything inward, or some faces inward and others outward). If this is the case, how can I fix it?

Thanks so much!

If the display preview is showing that some geometry is darker/more saturated in color than others that is most likely that you have duplicate geometry occupying the same space.

Double check the objects list length/tree statistics at the end result of your logic and compare that against what your initial input or expectation is.

Having overlapping geometry in the same space will also yield unexpected boolean results.

Hope that helps, Cheers!

2 Likes

Thanks for your help!

Of course! Did that solve it or are you still having issues?

1 Like

It worked! Turns out those darker objects are flipped upside down, causing the solid difference problem ;-;.

1 Like

Great! Iā€™m glad you got it sorted out!