Volumes Of Fun http://www.volumesoffun.com/phpBB3/ |
|
[Help!] Issues with CubicSurfaceExtractorWithNormals http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=328 |
Page 1 of 1 |
Author: | Dead_beef [ Thu Feb 02, 2012 9:52 pm ] |
Post subject: | [Help!] Issues with CubicSurfaceExtractorWithNormals |
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. |
Author: | ker [ Fri Feb 03, 2012 7:52 am ] |
Post subject: | Re: [Help!] Issues with CubicSurfaceExtractorWithNormals |
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 ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |