Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CGAL versus VTK

Tags:

cgal

vtk

What is the difference between the CGAL and the VTK libraries? Both incorporate a lot of the standard geometric algorithms. Can anyone list some application domains where the one is preferred over the other?

like image 570
smilingbuddha Avatar asked Oct 12 '11 15:10

smilingbuddha


2 Answers

VTK is mostly targeted toward visualization (frontend). It includes some computational geometry functions out of convenience (e.g. Delaunay triangulation). It would be better suited for viewing MRI scans, visualizing large data sets, or converting point clouds / meshes from one format to another for example.

CGAL is targeted toward computational geometry (backend). It will require some type of frontend (e.g. OpenGL, VTK) to view the result. It would be better suited for molecular biology, astronomy, architectural design backends for example.

like image 86
Chris Flesher Avatar answered Oct 03 '22 06:10

Chris Flesher


Among other differences license should be mentioned. VTK is licensed under BSD and could be used in commercial products for free. While CGAL is dual licensed under GPLv3 (most of it) and commercial license. And to use it in commercial products you should purchase commercial license or publish your sources under GPLv3 (unlikely way for commercial products).

like image 34
Evgen Bodunov Avatar answered Oct 03 '22 06:10

Evgen Bodunov