diff --git a/vcg/space/index/octree.h b/vcg/space/index/octree.h index edbc3730..534a49e8 100644 --- a/vcg/space/index/octree.h +++ b/vcg/space/index/octree.h @@ -517,7 +517,8 @@ public: object_count = 0; for (int i=0; i::Voxel(leaves[i]); + //voxel = OctreeTemplate< Voxel, SCALAR_TYPE >::Voxel(leaves[i]); + voxel = TemplatedOctree::Voxel(leaves[i]); begin = voxel->begin; end = voxel->end; for ( ; beginlevel) + if (rendering_settings.minVisibleDepth>_level) { for (int s=0; s<8; s++) if ((son=Son(n, s))!=0) @@ -710,7 +712,7 @@ public: else { vcg::glBoxWire(boundingBox); - if (level