Hi Denis, hi Dirk, 2011/2/12 Denis Röper <[email protected]>: > Any suggestions? A method without the need to wait for redraw will be > great.
OSG::Surface does a lazy tessellation. This means the triangles won't be generated unless they're needed to be drawn, e.g. by the redraw() call. If you want to force generating the triangles for some reason (e.g. because you don't want the OSG::Surface nodes in your rendered scene graph) you can use the forceTessellate() method: OSG::Surface surf = Surface::create(); // populate surf with data [...] // force tessellation of triangles surf->forceTessellate(); See the example program testSurfaceRender.cpp (https://github.com/vossg/OpenSGCVSTree/blob/master/Source/System/NodeCores/Drawables/Nurbs/testSurfaceRender.cpp) for a complete example. Hope this helps, Ákos ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
