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


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Help!] Issues with CubicSurfaceExtractorWithNormals
PostPosted: Thu Feb 02, 2012 9:52 pm 

Joined: Thu Feb 02, 2012 4:14 am
Posts: 1
So I'm going to start out saying i'm a noob at C++ and PolyVox.

However, I am working on integrating PolyVox into Ogre, and I keep getting this error:
Code:
1>src\ChocolateRain.cpp(132): error C2664: 'PolyVox::CubicSurfaceExtractorWithNormals<VolumeType,VoxelType>::CubicSurfaceExtractorWithNormals(PolyVox::SimpleVolume<VoxelType> *,PolyVox::Region,PolyVox::SurfaceMesh<VertexType> *)' : cannot convert parameter 3 from 'PolyVox::SurfaceMesh<VertexType> *' to 'PolyVox::SurfaceMesh<VertexType> *'
1>          with
1>          [
1>              VolumeType=PolyVox::SimpleVolume,
1>              VoxelType=PolyVox::Material8,
1>              VertexType=PolyVox::PositionMaterialNormal
1>          ]
1>          and
1>          [
1>              VertexType=PolyVox::Material8
1>          ]
1>          and
1>          [
1>              VertexType=PolyVox::PositionMaterialNormal
1>          ]
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


Maybe i'm just being noobish, but any help would be appreciated.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: [Help!] Issues with CubicSurfaceExtractorWithNormals
PostPosted: Fri Feb 03, 2012 7:52 am 
User avatar

Joined: Wed Jan 26, 2011 3:20 pm
Posts: 203
Location: Germany
Please add the appropriate lines of code around that error.
Your problem is that you set a VertexType (maybe for the SurfaceMesh?) to a VoxelType (namely Material8)
but I can't be sure without code ;)


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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