Results 1 to 3 of 3

Thread: getUrl().getElement() Question

  1. #1

    getUrl().getElement() Question


    In the importing tutorial it says it can be done like so.

    Code :
    daeElement* geom = geomInst->getUrl().getElement();

    This helps, but in my code however, I need it to be typed instead of using a daeElement so I can take advantage of the functions of a typed class.

    Code :
    domGeometry* geom = (domGeometry*)geomInst->getUrl().getElement();

    Is this possible?


  2. #2

    Re: getUrl().getElement() Question


    Seems like I got it to work, for anybody wondering the same thing, here is an example.

    Code :
    // Where GeomInstanceArray[] is of type domInstance_geometry_Array
    // Fetch the Geometry instance from an array.
    domInstance_geometry* geomInst = GeomInstanceArray[m];
    // Get the geometry
    daeElement* Elem = geomInst->getUrl( ).getElement();
    domGeometry* GeometryElem = (domGeometry*)Elem;


  3. #3
    Senior Member
    Join Date
    Aug 2004

    Re: getUrl().getElement() Question

    Have you read the wiki article about ... OLLADA_DOM ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean