Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
how to point to a simplevolume ? http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=356 |
Page 1 of 1 |
Author: | nicoo [ Wed Apr 04, 2012 6:07 pm ] |
Post subject: | how to point to a simplevolume ? |
hi, I have an object that has the voldata and I want to link another object to that voldata, I added in the last object a pointer like that : Code: PolyVox::SimpleVolume<PolyVox::MaterialDensityPair44> * to_volData; I think it's a basic question for you... but I fail to point to a simplevolume... |
Author: | David Williams [ Thu Apr 05, 2012 8:03 am ] |
Post subject: | Re: how to point to a simplevolume ? |
Looks ok to me... what problem are you having? Does it fail to compile, does it crash, etc? |
Author: | nicoo [ Thu Apr 05, 2012 3:44 pm ] |
Post subject: | Re: how to point to a simplevolume ? |
I found the problem, my header was : Code: #include "PolyVoxCore/MaterialDensityPair.h" #include "PolyVoxCore/SimpleVolume.h" class toto { public: toto(); void to_volData(PolyVox::SimpleVolume<PolyVox::MaterialDensityPair44> *); //... private: PolyVox::SimpleVolume<PolyVox::MaterialDensityPair44> *to_volData; //... }; problem comes from the same name of the variable - to_volData - and the name of the method - to_volData - . After having changed the name, everything goes fine... edit:: maybe you want to know, problem appeared when I compiled |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |