I am having a terrible time trying to get the surface extractor to work, and I was hoping someone here might be able to help me.
Visual Studio claims the first parameter I'm passing and the expected parameter are exactly the same yet throws an error and says what I am passing is not what the surface extractor is expecting.
Quote:
No instance of constructor ... matches the argument list
I don't understand what I could be doing wrong. My volume is created using a pointer so I should be able to pass the pointer. I have to create my volume this way because I am using classes.
Does anyone know what my error is?
Thanks
Code:
Ogre::ManualObject* WorldManager::createManObj(Region reg, Ogre::SceneManager* mSceneMgr, string name, LargeVolume<MaterialDensityPair44> * volData)
{
//Extract the surface
// only need single extractor since will extract single mesh first
SurfaceMesh<PositionMaterialNormal>* MaterialAll = new SurfaceMesh<PositionMaterialNormal>();
SurfaceMesh<PositionMaterialNormal>* mesh = new SurfaceMesh<PositionMaterialNormal>();
SurfaceExtractor<LargeVolume, MaterialDensityPair44> surfaceExtractor(volData, reg, &MaterialAll);