#include "SurfaceExtractors.h" #include "Volume.h" #include "GradientEstimators.h" #include "IndexedSurfacePatch.h" #include "PolyVoxImpl/MarchingCubesTables.h" #include "Region.h" #include "VolumeSampler.h" #include "PolyVoxImpl/DecimatedSurfaceExtractor.h" #include "PolyVoxImpl/FastSurfaceExtractor.h" #include using namespace std; namespace PolyVox { void extractSurface(Volume* volumeData, uint8_t uLevel, Region region, IndexedSurfacePatch* singleMaterialPatch) { if(uLevel == 0) { extractFastSurfaceImpl(volumeData, region, singleMaterialPatch); } else { extractDecimatedSurfaceImpl(volumeData, uLevel, region, singleMaterialPatch); } singleMaterialPatch->m_Region = region; } }