Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
Surface Extractor Woes [solved] http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=252 |
Page 1 of 1 |
Author: | Freakazo [ Sun Aug 14, 2011 6:02 am ] |
Post subject: | Surface Extractor Woes [solved] |
I'm trying to get the smooth SurfaceExtractor to work, but I'm having some problems. The following extract of code works perfectly: Code: void VoxelControl::VolumeToMesh(SimpleVolume<MaterialDensityPair44>& volData, Ogre::ManualObject* VoxelTest) { SurfaceMesh<PositionMaterialNormal> mesh; CubicSurfaceExtractorWithNormals<SimpleVolume, MaterialDensityPair44 > surfaceExtractor(&volData, volData.getEnclosingRegion(), &mesh); surfaceExtractor.execute(); But as soon as I use SurfaceExtractor I get an error from intellisense saying incomplete types is not allowed (vs2010) and a compile error saying "too many initializers". Code: SurfaceExtractor<SimpleVolume, MaterialDensityPair44 > surfaceExtractor(&volData, volData.getEnclosingRegion(), &mesh); Thanks for any help ![]() |
Author: | David Williams [ Sun Aug 14, 2011 12:43 pm ] |
Post subject: | Re: Surface Extractor Woes |
So are you just changing that one line of code? Did you remember to change the #include from 'CubicSurfaceExtractorWithNormals.h' to 'SurfaceExtractor.h'? Even thogugh it's not saying it can't find SurfaceExtractor that may be because it's seeing the forward declaration in PolyVoxForwardDeclarations.h. If not that's odd. Do you have the examples working? You could try changing the BasicExample in the same way? |
Author: | Freakazo [ Sun Aug 14, 2011 1:58 pm ] |
Post subject: | Re: Surface Extractor Woes |
...And there you go, I didn't include it. When I pressed f12 (vs2010 gets the location where it is declared) it indeed only listed the forwarddeclerations header. Thanks for the help, and for PolyVox (et. al.) |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |