It is currently Sat Aug 22, 2020 2:04 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Surface Extractor Woes [solved]
PostPosted: Sun Aug 14, 2011 6:02 am 

Joined: Sat Dec 18, 2010 2:58 am
Posts: 41
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 :)


Last edited by Freakazo on Sun Aug 14, 2011 2:12 pm, edited 1 time in total.

Top
Offline Profile  
Reply with quote  
 Post subject: Re: Surface Extractor Woes
PostPosted: Sun Aug 14, 2011 12:43 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
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?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Surface Extractor Woes
PostPosted: Sun Aug 14, 2011 1:58 pm 

Joined: Sat Dec 18, 2010 2:58 am
Posts: 41
...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.)


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 5 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