CGAL and OCC

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
GreyhoundZero
Posts: 7
Joined: Sun Apr 05, 2015 6:05 am

CGAL and OCC

Post by GreyhoundZero »

Why did the FreeCAD developers choose to use of OpenCascade as the base of FreeCAD? Does it have advantages over the more popular(?) library CGAL? (And other possibly related libraries, like OpenSceneGraph?)
User avatar
kwahoo
Posts: 688
Joined: Fri Nov 29, 2013 3:09 pm
Contact:

Re: CGAL and OCC

Post by kwahoo »

CGAL is a mesh/triangle based solution, isn't it? If true, then it is useless for high precision CAD applications.
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: CGAL and OCC

Post by shoogen »

EDIT: CGAL is GPLed. Linking against it would apply the restrictions of the GPL on FreeCAD.
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: CGAL and OCC

Post by wmayer »

shoogen wrote:CGAL is GPLed and therefore not LGPL compatible.
GPL in general is not incompatible to LGPL. See: http://www.gnu.org/licenses/gpl-faq.htm ... patibility

But the point is that in the past CGAL was licensed under LGPL and QPL and the latter is known to be incompatible to the GPL. In the past FreeCAD linked against a GPL library and thus it was impossible to use CGAL. Now FreeCAD is completely GPL-free and this we absolutely want to keep for the future and thus CGAL isn't an option at all.
Post Reply