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)
Defines lower and upper valid indices.
unsigned int Point2Offset(const Point &p)
Generates a continues, uniqe index per point contained within extent.
class encapsulating 1D to 3D point
#define DLLEXPORT_OST_GFX
ImageStateImpl< Real, SpatialDomain > RealSpatialImageState
EdgeDesc(uint8_t d, const img::Point &o, uint8_t ac1, uint8_t ac2, bool l)
uint32_t GetKey(const img::Point &p, img::Extent &ext)
isocontouring of maps using an octree-optimization
boost::unordered_map< uint32_t, VertexID > EdgeMap
bool VisitNode(const impl::OctreeNode &node, uint8_t level, const img::Extent &ext)
void VisitLeaf(img::RealSpatialImageState *map, const img::Point &point)
OctreeIsocont(IndexedVertexArray &va, float level, bool triangles, const Color &color)
VertexID GetOrGenVert(img::RealSpatialImageState *map, const img::Point &p, EdgeDesc *desc)