Added RegionGeometry.cpp
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
#include "IndexedSurfacePatch.h"
|
||||
#include "SurfaceTypes.h"
|
||||
#include "SurfaceVertex.h"
|
||||
|
||||
using namespace boost;
|
||||
|
||||
|
24
source/RegionGeometry.cpp
Normal file
24
source/RegionGeometry.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include "IndexedSurfacePatch.h"
|
||||
#include "RegionGeometry.h"
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
|
||||
RegionGeometry::RegionGeometry()
|
||||
{
|
||||
}
|
||||
|
||||
long int RegionGeometry::getSizeInBytes(void)
|
||||
{
|
||||
long int size = sizeof(RegionGeometry);
|
||||
if(m_patchSingleMaterial)
|
||||
{
|
||||
size += m_patchSingleMaterial->getSizeInBytes();
|
||||
}
|
||||
if(m_patchMultiMaterial)
|
||||
{
|
||||
size += m_patchMultiMaterial->getSizeInBytes();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user