PDA

View Full Version : Access to Geometry Data in a c++ plugin for vizard.


xabbu
01-14-2009, 04:35 AM
Hello,

I am trying to write a plugin for worldviz as a dll (or dlc) plugin in c++.
Is there a way to access the geometry data of a worldviz node3d object in my c++ code? I need to get access to the VertexArray of an object.
I thought about handling it as an osg::node in my code, but I am not sure if the data structure used in the python domain of vizard iss the same.

thx in advance ...

farshizzo
01-16-2009, 04:14 PM
Our SDK has an example of creating a modifier plugin. This plugin will be given access to the underlying osg::Node object. Once you a handle to this object you can create a osg::NodeVisitor that traverses it and collects all the geometry data from it. Let me know if you have any specific questions about this.