Polygon Triangulation with Holes

To give you some more choices of libraries out there: Polyboolean. I never tried this one, but it looks promising: http://www.complex-a5.ru/polyboolean/index.html General Polygon Clipper. This one works very well in practice and does triangulation as well as clipping and holes holes: http://www.cs.man.ac.uk/~toby/alan/software/ My personal recommendation: Use the tesselation from the GLU (OpenGL Utility Library). The … Read more

CMake is not finding Boost

Your output shows that CMake is searching for the libraries in the following places: D:/program files/boost_1_51/bin/lib D:/program files/boost_1_51/bin/stage/lib D:/program files/boost_1_51/lib D:/program files/boost_1_51/../lib D:/program files/boost_1_51/stage/lib C:/boost/lib C:/boost C:\Program Files (x86)/boost/boost_1_51_0/lib C:\Program Files (x86)/boost/boost_1_51/lib C:\Program Files (x86)/boost/lib C:\Program Files (x86)/boost /sw/local/lib It also shows that it’s expecting the libraries to be named in a certain way. For … Read more

Compiling a static executable with CMake

As global CMake settings, add these lines before add_executable, valid for gcc/clang: set(CMAKE_FIND_LIBRARY_SUFFIXES “.a”) set(BUILD_SHARED_LIBS OFF) set(CMAKE_EXE_LINKER_FLAGS “-static”) On Modern CMake (3.x+ – target_link_libraries doc), you can apply the flag to specific targets, in this way: target_link_libraries(your_target_name -static) If you’re using MSVC, you have to set the compiler and linker flags: set(CMAKE_FIND_LIBRARY_SUFFIXES “.lib”) target_compile_options(your_target_name [PUBLIC|PRIVATE] … Read more