Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
[Solved] surfaceExtractors and pointer http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=511 |
Page 1 of 1 |
Author: | zprg [ Thu May 09, 2013 7:17 am ] |
Post subject: | [Solved] surfaceExtractors and pointer |
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++ |
Author: | David Williams [ Fri May 10, 2013 7:52 am ] |
Post subject: | Re: surfaceExtractors and pointer |
Are you sure it it the use of a pointer which is the problem here? That seems unlikely. So just to be clear, you say that this code will work: Code: surfaceExtractorMC.execute(); But that this code will crash: Code: surfaceExtractorMCPointer=&surfaceExtractorMC; surfaceExtractorMCPointer->execute(); Seems very strange... If that's not what you mean, then can you give an example of working code compared to non-working code? |
Author: | zprg [ Fri May 10, 2013 4:23 pm ] |
Post subject: | Re: [Solved] surfaceExtractors and pointer |
thank you, ah i was searching in the wrong edge, yes now i see the problem is somewhere else. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |