Obtaining subdivided DzFacetMesh for a node

How to I get a reference to the current subdivided DzFacetMesh for a given node?   Calling dzNode->getObject()->getCachedGeom() returns the subdivided mesh usually, but sometimes it gives me back the base mesh instead, even if subd is currently enabled for the node.   

Is there a call I have to make in advance to force the pipeline to generate the subdivided mesh?    I've tried calling dzObject->focreCacheUpdate() but no dice.

 

Thanks

 

Comments

  • rbtwhizrbtwhiz Posts: 2,250
    edited February 2017

    From DzNode.h

    virtual void	update( bool isRender = false );virtual void	finalize( bool isRender = false, bool allowResChange = true );

     

    -Rob

    Post edited by rbtwhiz on
  • shoei321shoei321 Posts: 113

    Thanks Rob, exactly what I needed.

Sign In or Register to comment.