Tiding up...
This commit is contained in:
@ -21,7 +21,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
using namespace boost;
|
||||
|
||||
namespace PolyVox {
|
||||
namespace PolyVox
|
||||
{
|
||||
|
||||
Block::Block()
|
||||
{
|
||||
|
@ -18,14 +18,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
******************************************************************************/
|
||||
|
||||
#include "MarchingCubesTables.h"
|
||||
#include "SurfaceVertex.h"
|
||||
#include "SurfaceEdge.h"
|
||||
#include "IndexedSurfacePatch.h"
|
||||
#include "PolyVoxSceneManager.h"
|
||||
#include "VolumeIterator.h"
|
||||
|
||||
#include <list>
|
||||
|
||||
using namespace boost;
|
||||
|
||||
namespace PolyVox
|
||||
|
@ -31,19 +31,6 @@ namespace PolyVox
|
||||
|
||||
Volume::Volume()
|
||||
{
|
||||
//FIXME - Add checking...
|
||||
/*SharedPtr<Block>& homogeneousBlock = mHomogeneousBlocks[0];
|
||||
if(homogeneousBlock.isNull())
|
||||
{
|
||||
homogeneousBlock = SharedPtr<Block>(new Block);
|
||||
homogeneousBlock->fillWithValue(0);
|
||||
}*/
|
||||
|
||||
/*for(uint16_t i = 0; i < POLYVOX_NO_OF_BLOCKS_IN_VOLUME; ++i)
|
||||
{
|
||||
mBlocks[i] = mHomogeneousBlocks[0];
|
||||
}*/
|
||||
|
||||
for(uint16_t i = 0; i < POLYVOX_NO_OF_BLOCKS_IN_VOLUME; ++i)
|
||||
{
|
||||
mBlocks[i] = new Block;
|
||||
@ -58,6 +45,10 @@ namespace PolyVox
|
||||
|
||||
Volume::~Volume()
|
||||
{
|
||||
for(uint16_t i = 0; i < POLYVOX_NO_OF_BLOCKS_IN_VOLUME; ++i)
|
||||
{
|
||||
delete mBlocks[i];
|
||||
}
|
||||
}
|
||||
|
||||
Volume& Volume::operator=(const Volume& rhs)
|
||||
|
Reference in New Issue
Block a user