Fast, Slim, Embeddable, Allocator-aware, Headers files only C++11 geometry tesselation library for vector graphics, that can run on any 32/64 bits computer with or without FPU.
No standard library required.
check out our website at micro-gl.github.io/docs/micro-tess/
Language
C++11, does not use anySTLlibrary and standard library.- Headers only library
- Most functions are templates, which means you compile only what is used
- Compile-time polymorphism (no runtime virtual methods)
- Support for 32 bits and 64 bits
- Self contained and modular.
Geometry
- Tesselation in any precision, fixed point precision, float or double.
- BiQuadratic/BiCubic Bezier Patch triangle Tessellation
- Quadratic/Cubic Bezier curve divider
- Elliptic Arc Divider
- Ear Clipping Tessellation for Simple (convex or concave) polygons
- X/Y Montone Tessellation for Monotone polygons
- Fan Triangulation for Convex polygons
- Stroke Tessellation with dashes (also supported with Path object)
- Fill Tessellation for any type of multi polygons using even-odd and non-zero rule
- Path object to easily define vector graphics and tessellate them using fill or stroke
Extra
- Packed with fixed precision numbers
Qclass - Computes boundary information for quick AA.
- Packed with triangles iterator for regular, fan and strip batch triangles
- Packed with many working examples
micro-tess is a headers only library, which gives the following install possibilities:
- Using
cmaketo invoke theinstalltarget, that will copy everything in your system via
$ mkdir cmake-build-release
$ cd cmake-build-release
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --install .- Copying the
include/micro-tessto anywhere you want.
Following options are available:
- copy the project to a sub folder of your project. inside your
CMakeLists.txtadd
add_subdirectory(/path/to/micro-tess)
target_link_libraries(your_app micro-tess)- If you installed
micro{tess}with option 1 (see above) at your system, you can instead
find_package(micro-tess CONFIG REQUIRED)
target_link_libraries(your_app micro-tess::micro-tess)- If you have not installed, you can add in your app's
CMakeLists.txt
target_include_directories(app path/to/micro-tess/folder/include/)- If you manually copied the
include/micro-tessto the default system include path,
you can usecmake/Findmicro-tess.cmaketo automatically create the cmake targets
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/path/to/Findmicro-tess/folder)
find_package(micro-tess REQUIRED)
target_link_libraries(your_app micro-tess::micro-tess)- Just copy the
include/micro-tessinto a sub folder of your project and include the header
files you need with relative path in your source files.
First make sure you have
There are two ways:
- Use your favourite IDE to load the root
CMakeLists.txtfile, and then it
will pick up all of the targets, including the examples - Using the command line:
$ mkdir cmake-build-release
$ cd cmake-build-release
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . --target <example_name>
$ ../examples/bin/example_nameAuthor: Tomer Shalev, tomer.shalev@gmail.com, all rights reserved (2021)

