It is currently Sat Aug 22, 2020 1:53 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to point to a simplevolume ?
PostPosted: Wed Apr 04, 2012 6:07 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
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...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: how to point to a simplevolume ?
PostPosted: Thu Apr 05, 2012 8:03 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Looks ok to me... what problem are you having? Does it fail to compile, does it crash, etc?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: how to point to a simplevolume ?
PostPosted: Thu Apr 05, 2012 3:44 pm 

Joined: Sat Feb 04, 2012 7:10 pm
Posts: 19
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


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net