if i use a pointer to a SimpleVolume it compiles and works for example then i have to write
maxx=volpointer->getWidth();
if i then use a pointer to a SurfaceExtractor from the Volumepointer(the same with Normals or Marchingcubes)
Code:
PolyVox::MarchingCubesSurfaceExtractor <PolyVox::SimpleVolume<MDVoxel>>* surfaceExtractorMCPointer;
PolyVox::MarchingCubesSurfaceExtractor <PolyVox::SimpleVolume<MDVoxel> > surfaceExtractorMC(volpointer, volpointer->getEnclosingRegion(), &polyvoxmesh);
surfaceExtractorMCPointer=&surfaceExtractorMC;
surfaceExtractorMCPointer->execute();
the program also compiles but the program hangs up, please whats wrong cause it compiles it seems to be correct c++