vptree-draw
SVG export of several 2D space partitioning structures.
Code structure
geo.h
minimalist 2D geometry structures (Point, Vector, Box, Sphere)bvhsphere.h
minimalist bounding sphere hierarchybvhbox.h
minimalist bounding box hierarchykdtree.h
minimalist kd treequadtree.h
minimalist quadtreevptree.h
minimalist vantage points treebvptree.h
minimalist Bregman Kullback-Leibler vantage points treedraw.h
tree to SVG draw functionssimple_svg_extend.h
extends Simple SVG to support arcs and cavc::PolyLine (aka: bulge paths)
Dependencies
(included in this project)
Build
The project uses cmake to build the examples. For instance (linux/mac):
mkdir build
cd build
cmake ..
make
Note: the bunny.dat
file must be copied in the same folder as the build binaries.
Examples
VP tree | Quadtree | KD tree | BVH box | BVH sphere |
---|---|---|---|---|
Large poster |
---|
Contributors
Basile Fraboni, LIRIS, INSA Lyon, Université Claude Bernard Lyon 1
David Coeurjolly, CNRS, LIRIS
License
You may use, distribute and modify this code under the terms of the MIT license. For further details please refer to : https://mit-license.org/