Hello Jerry,
Jerry wrote:
> I am trying to export all triangle vertex and normal from a VRML file
> is there any function can export triangle vertex?
VRML files can describe a scenegraph a bit similar to the internal
representation used by OpenSG and the loader tries to recreate an
equivalent OpenSG scenegraph when reading a VRML file.
So the first thing you need to do is find all geometries in your
scenegraph (take a look at Examples/Simple/10loading.cpp to see how the
traverse() function can be used).
When you've found a geometry you can use the TriangleIterator
(Geometry::beginTrianles(), Geometry::endTriangles()) to iterate over
all triangles and get the vertices/normales at the corners.
Ask if you need more details on any of these steps.
Cheers,
Carsten
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users