Export mesh - missing getpointer method??

dreamak

04-11-2008 00:21:50

Hello,

I want to save my mesh which ive made with manualObject,

I found this example:
MeshPtr ptr=cube.convertToMesh("cubeMesh");
MeshSerializer ser;
ser.exportMesh(ptr.getPointer(),"./media/cube.mesh");


but I cannot find MeshPtr class (and getPointer() method as well) in python-ogre docs.

Could you please tell me, how to save my mesh? I didnt find any examples on python-ogre forum and demos as well.

Thank you

andy

04-11-2008 05:10:41

How about mesh = meshMgr.createManual(...)
.. build your mesh ..
ser = ogre.MeshSerializer()
ser.exportMesh(mesh,".cube.mesh")


Andy