Union, Part become black.

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Union, Part become black.

Post by eexpss »

I want do this boolean operate:

shell - ( Array + Cylinder002 + Cone )

but when I select Array + Cylinder002 + Cone, make union, the result Fusion001 become black color. no error shown. Of course when make cut, also black. That result not my wish one.
Attachments
tmp.fcstd
(37.48 KiB) Downloaded 27 times
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Union, Part become black.

Post by Willem »

Hi, the problem is easy to solve, rotate the cylinder a bit and the fusion will succeed. This is a known bug in the OCC kernel
Schermafdruk van 2017-03-12 14-55-56.png
Schermafdruk van 2017-03-12 14-55-56.png (233.48 KiB) Viewed 2408 times
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Union, Part become black.

Post by triplus »

Nice one Willem.

P.S. Likely the seem edge was the cause?
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Union, Part become black.

Post by eexpss »

thanks Willem.

strange but interesting bug. lol

btw: Your Unity side bar is too strong.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Union, Part become black.

Post by Kunda1 »

Willem wrote:This is a known bug in the OCC kernel
Which bug is this ? Can you reference it please? Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Union, Part become black.

Post by NormandC »

I don't know if it's logged as a bug upstream. But seam lines of cylinders/spheres/tori are known to cause issues in Boolean operations when they align to each other (well-known cases are screw threads, there are at least a dozen of topics where Willem's trick fixed the issue). Surface tangency and coplanar faces are known issues as well.

It's mostly workarounds that we experienced users have found over time to bypass the kinks of the OCC kernel. Because of the way reports need to be made on the OCCT bug tracker, we have not reported it upstream (unless shoogen did at some point).

I know that we should document this on the wiki...
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Union, Part become black.

Post by eexpss »

I agree NormandC, it a bug. OpenSCAD employs OpenCSG and OpenGL. and It never got error when doing Boolean operation, regardless of whether the target is aligned.

never as in this topic viewtopic.php?f=3&t=21215
Yes. Boolean operations are very sensitive to tangent and coplanar surfaces. A slight misalignment can make them fail.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Union, Part become black.

Post by NormandC »

Maybe not, but the OCC kernel is much more powerful than CGAL. OCC is a *real* CAD kernel.
eexpss
Posts: 56
Joined: Wed Dec 28, 2016 6:17 am

Re: Union, Part become black.

Post by eexpss »

Better efficiency, does not mean no bug.

Sure, openscad's render is too slow. In freecad seems no matter at rendering efficiency.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Union, Part become black.

Post by NormandC »

I was not referring to slowness (FreeCAD can be slow too!), but to actual functions. Try to make fillets or chamfers in OpenSCAD! :?

In any case it is more oriented toward programmers than CAD end users.
Post Reply