Optimising SurfaceExtractor.

This commit is contained in:
David Williams
2009-06-01 22:41:24 +00:00
parent e4ae262f96
commit 7ea4e95753
2 changed files with 151 additions and 154 deletions

View File

@ -48,7 +48,7 @@ namespace PolyVox
uint8_t m_uStepSize;
Volume<uint8_t> m_volData;
VolumeSampler<uint8_t> m_iterVolume;
VolumeSampler<uint8_t> m_sampVolume;
uint8_t* m_pPreviousBitmask;
uint8_t* m_pCurrentBitmask;
@ -65,10 +65,10 @@ namespace PolyVox
//void extractSurfaceForRegionLevel0(Volume<uint8_t>* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch);
void extractSurfaceImpl(Volume<uint8_t>* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch);
uint32_t computeBitmaskForSlice(VolumeSampler<uint8_t>& volIter, const Region& regSlice, const Vector3DFloat& offset);
void generateIndicesForSlice(VolumeSampler<uint8_t>& volIter, const Region& regSlice, IndexedSurfacePatch* singleMaterialPatch, const Vector3DFloat& offset);
void generateVerticesForSlice(VolumeSampler<uint8_t>& volIter, Region& regSlice, const Vector3DFloat& offset, IndexedSurfacePatch* singleMaterialPatch);
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);
};
}