So here is hot it is done:
One can use a custom class extending NodeVisitor to "vist" all geometries in a
node and extract the data:
Code:
//Meshvisitor.hpp
#include
#include
#include
class MeshVisitor: public osg::NodeVisitor {
public:
static std::vector vertice_allocs;
With the help of the Beginners Guide and this entry:
6391
i managed to figure out the basic idea.
Will upload some sample code when its ready to use.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74373#74373
Hi,
i created a 3D Mesh (3D Cube for test) in Blender and i can read and show it
with the osgDB function
readNodeFile
I would like to further use the loaded trimesh in ODE to calculate dynamics and
contacts.
I was not able to figure out how to read the vertices,
I discovered that i can
3 matches
Mail list logo