Fixed bug with region position nor being set by surface extractors.

This commit is contained in:
David Williams 2009-02-22 11:27:59 +00:00
parent 5a30062c6d
commit bc008f3606

View File

@ -28,10 +28,14 @@ namespace PolyVox
{ {
extractDecimatedSurfaceImpl(volumeData, uLevel, region, singleMaterialPatch); extractDecimatedSurfaceImpl(volumeData, uLevel, region, singleMaterialPatch);
} }
singleMaterialPatch->m_v3dRegionPosition = region.getLowerCorner();
} }
void extractReferenceSurface(BlockVolume<uint8>* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch) void extractReferenceSurface(BlockVolume<uint8>* volumeData, Region region, IndexedSurfacePatch* singleMaterialPatch)
{ {
extractReferenceSurfaceImpl(volumeData, region, singleMaterialPatch); extractReferenceSurfaceImpl(volumeData, region, singleMaterialPatch);
singleMaterialPatch->m_v3dRegionPosition = region.getLowerCorner();
} }
} }