Euclid
Geometry Processing and Shape Analysis in C++
|
Euclid is a header only library for geometry processing and shape analysis.
It contains some utilities and algorithms which extend and cooperate with other popular libraries around there, like Eigen(libigl), CGAL, to name a few.
The purpose of Euclid is not to replace any of the above packages, but to glue things together as well as to provide more algorithms which do not appear in those libraries.
Some simple third-party libraries has already been shipped with Euclid. However, you'll need the following libraries when you use headers in Euclid that work with them, including
Different packages in Euclid may require a different set of dependencies, and some packages may not require any of the above libraries. Also, Euclid uses features in the C++17 standard, so you'll need a C++17 enabled compiler.
Since it's a header only library, the simpliest way to use Euclid is to include the needed headers. Although be sure to configure other dependencies properly, as some of them are not header only.
If you are using CMake, there are two ways to go:
First you could use the find script shipped with Euclid and configure other dependencies manually like below. This is preferable if you only need parts of the headers and do not wish to configure all the dependencies.
Otherwise, you could configure Euclid using CMake first. It will output an EuclidConfig.cmake file in the build tree for you to use. You can set the variable Euclid_DIR
to the path containing this file and then in your own CMakeLists.txt you could do
and all the dependencies and compile options will be handled transitively by CMake.
Here's an example which reads a mesh file, converts it to a CGAL::Surface_mesh data structure, computes its discrete gaussian curvatures and ouput the values into mesh colors.
See the examples folder for more tutorials. However, many modules are not covered yet. For a more complete example, you could check the test cases to see the usage of most functions and classes. More information on how to run the tests could be found here.
MIT for code not related to any third-party libraries.
Otherwise it should follow whatever license the third-party libraries require.