Optimising SurfaceExtractor.

This commit is contained in:
David Williams
2009-06-01 22:56:45 +00:00
parent 7ea4e95753
commit bca51248b0
2 changed files with 50 additions and 47 deletions

View File

@ -53,7 +53,6 @@ namespace PolyVox
uint8_t* m_pPreviousBitmask;
uint8_t* m_pCurrentBitmask;
int32_t* m_pPreviousVertexIndicesX;
int32_t* m_pPreviousVertexIndicesY;
int32_t* m_pPreviousVertexIndicesZ;
@ -63,12 +62,16 @@ namespace PolyVox
uint32_t getIndex(uint32_t x, uint32_t y, uint32_t regionWidth);
//void extractSurfaceForRegionLevel0(Volume<uint8_t>* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch);
IndexedSurfacePatch* m_ispCurrent;
void extractSurfaceImpl(Region region, IndexedSurfacePatch* singleMaterialPatch);
uint32_t computeBitmaskForSlice(const Region& regSlice, const Vector3DFloat& offset);
void generateIndicesForSlice(const Region& regSlice, IndexedSurfacePatch* singleMaterialPatch, const Vector3DFloat& offset);
void generateVerticesForSlice(Region& regSlice, const Vector3DFloat& offset, IndexedSurfacePatch* singleMaterialPatch);
Vector3DFloat m_v3dRegionOffset;
//void extractSurfaceForRegionLevel0(Volume<uint8_t>* volumeData, Region region, IndexedSurfacePatch* m_ispCurrent);
void extractSurfaceImpl(Region region);
uint32_t computeBitmaskForSlice(const Region& regSlice);
void generateIndicesForSlice(const Region& regSlice);
void generateVerticesForSlice(Region& regSlice);
};
}