[CsMain] Procedural mesh manipulation in Python
Sebastian Hoffmann <[email protected]> Wed, 15 May 2013 13:20:22 +0200
| Newsgroups | gmane.comp.graphics.crystalspace.general |
|---|---|
| Message-ID | <CAJLJa_7ejqD2peMM7WUbnajxP2a22PnehKdUVV1o25GzCP0QVw@mail.gmail.com> |
Hi. I'm trying to create and manipulate an animesh from code to generate trees. To access the animesh interface, in C++ I'd just... csRef<iAnimatedMeshFactory> myTree = scfQueryInterface<iAnimatedMeshFactory>(fact->GetMeshObjectFactory ()); ...but in Python, I stumble over the fact that types are implicit. So if I do myTree_meshFactoryWrapper.GetMeshObjectFactory() ...I just get an object of class iMeshObjectFactory, and if I do myObject_meshFactoryWrapper.GetMeshObjectFactory().QueryInterface(iAnimatedMeshFactory) ...I get an iBase instead. So how *do* I get access to the animesh interface using Python? Liebe Grüße, Sebastian Hoffmann ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe