Borogove
08-08-2007 03:58:07
I'm trying to call Mesh.generateLodLevels with code that looks like this
What's the correct Python type to send to an Ogre method expecting std::vector<float> ? Neither list nor tuple worked.
lodDistances = [30.0,60.0,120.0]
ent.getMesh().generateLodLevels( lodDistances, ogre.ProgressiveMesh.VertexReductionQuota.VRQ_PROPORTIONAL, 0.5)
and getting this error:Boost.Python.ArgumentError: Python argument types in
Mesh.generateLodLevels(Mesh, list, VertexReductionQuota, float) did not match C++ signature:
generateLodLevels(class Ogre::Mesh {lvalue}, class std::vector<float,class std::allocator<float> > lodDistances, enum Ogre::ProgressiveMesh::VertexReductionQuota reductionMethod, float reductionValue)
What's the correct Python type to send to an Ogre method expecting std::vector<float> ? Neither list nor tuple worked.