Work removing POLYVOX_REGION_SIDE_LENGTH from decimated surface extractor.

This commit is contained in:
David Williams
2009-03-23 23:02:07 +00:00
parent 02319db9dc
commit 152717e904
6 changed files with 69 additions and 60 deletions

View File

@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace PolyVox
{
uint32 getDecimatedIndex(uint32 x, uint32 y);
uint32 getDecimatedIndex(uint32 x, uint32 y, uint32 regionWidth);
void extractDecimatedSurfaceImpl(Volume<uint8>* volumeData, uint8 uLevel, Region region, IndexedSurfacePatch* singleMaterialPatch);
uint32 computeInitialDecimatedBitmaskForSlice(VolumeIterator<uint8>& volIter, uint8 uLevel, const Region& regSlice, const Vector3DFloat& offset, uint8 *bitmask);

View File

@ -44,10 +44,13 @@ namespace PolyVox
bool containsPoint(const Vector3DFloat& pos, float boundary) const;
bool containsPoint(const Vector3DInt32& pos, uint8 boundary) const;
void cropTo(const Region& other);
int32 depth(void) const;
int32 height(void) const;
void shift(const Vector3DInt32& amount);
void shiftLowerCorner(const Vector3DInt32& amount);
void shiftUpperCorner(const Vector3DInt32& amount);
Vector3DInt32 dimensions(void);
int32 width(void) const;
private:
Vector3DInt32 m_v3dLowerCorner;