how to capture the event of smoother modifer is applyed?

I'm currently writting a pluging for output PointCache2 file,I met a problem,How can I get the event of smoother modifier applyed to a figure have done it's work?
thanks!

Comments

  • dtammdtamm Posts: 126
    edited December 1969

    During the export process, calls to DzObject::update and DzObject::finalize will apply the smoothing operation synchronously.

  • dtammdtamm Posts: 126
    edited December 1969

    Or you can use the builder classes. They do the update and finalize for you. Something like this:

    
     DzObject *obj = node->getObject();
     if ( obj )
     {
      DzVertexMeshPtr geom;
      DzNoFilterBuildGeometryFilter filter;
      obj->buildFilteredGeometry(node, & filter , true , geom );
    
      if ( DzFacetMesh *facetMesh = qobject_cast(geom ) )
      {
       // do something with mesh.
      }
     }
    
    
  • edited December 1969

    Thank you for you replay,But I got same problem,I just don't understand how the buildFilteredGeometry class works,I noticed that somooth modifier do the job at a asynchronously process,so I guess i have to wait the signal when it finished work before I can do something,I just don't know how to get that signal,thanks again!

Sign In or Register to comment.