Successfully modified curve editor system to display 2D polygons.
Found a library for 2D operations including polygon boolean computation: CGAL, seems be powerful for it.
Finally embedded it in the project. Some tips for memory in case of transplanting it to other computers:
file link: http://www.cgal.org/
edition: 3.8 beta
first download CGAL and install it.
download boost and install it, take care: must click THREAD for CMake generation!
download and run CMake to generate the project of CGAL, compile it (seems should in release mode)
embed the include folder and set up the linker to the lib folder in CGAL project and boost folder
transplant the "compiler_config.h" from the project of CGAL to the include folder
COMPILE & DONEPublish Post
No comments:
Post a Comment