19 #ifndef OST_GFX_IMPL_OCTREE_ISOCONT_HH
20 #define OST_GFX_IMPL_OCTREE_ISOCONT_HH
25 #include <boost/unordered_map.hpp>
33 namespace ost {
namespace gfx {
namespace impl {
58 static int8_t TRIANGLES[256][16];
61 typedef boost::unordered_map<uint32_t, VertexID>
EdgeMap;
64 va_(va), level_(level), triangles_(triangles), color_(color)
EdgeDesc(uint8_t d, const img::Point &o, uint8_t ac1, uint8_t ac2, bool l)
OctreeIsocont(IndexedVertexArray &va, float level, bool triangles, const Color &color)
isocontouring of maps using an octree-optimization
uint32_t GetKey(const img::Point &p, img::Extent &ext)
#define DLLEXPORT_OST_GFX
Defines lower and upper valid indices.
unsigned int Point2Offset(const Point &p)
Generates a continues, uniqe index per point contained within extent.
boost::unordered_map< uint32_t, VertexID > EdgeMap
ImageStateImpl< Real, SpatialDomain > RealSpatialImageState
bool VisitNode(const impl::OctreeNode &node, uint8_t level, const img::Extent &ext)
class encapsulating 1D to 3D point