Hi Michael,

No need to include any plugin in your app, just run the smoothing visitor in
your app:

osg:::ref_ptr<osg::Node> node = osgDB::readNodeFile("myfile.dxf");
osgUtil::SmoothingVisitor sv;
node->accept(sv);

Robert.

On Tue, Apr 14, 2009 at 8:59 AM, Michael Hasler <[email protected]> wrote:

> Hi,
>
> Im Using the OsgDXFPlugin to read DXF Files, i searched for an solution
> to add more normals for better smoothing, and found the SmoothingVisitor.
>
> I applied it in the scene.h (osgdxfplugin) under the function
> createTriGeometry and createQuadGeometry
> osgUtil::SmoothingVisitor::smooth(*geom) and works fine.
>
> But now i need to include the hole osgdfxplugin in my application
> how can i apply the smooth after the readNodeFile Operation ?
> So i would not need to include the hole dxfplugin and execeute
> the smooth after the read out on the resulting Node.
>
>
> Thank you.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=10185#10185
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to