WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Plug-in development (https://forum.worldviz.com/forumdisplay.php?f=8)
-   -   Access to Geometry Data in a c++ plugin for vizard. (https://forum.worldviz.com/showthread.php?t=1779)

xabbu 01-14-2009 03:35 AM

Access to Geometry Data in a c++ plugin for vizard.
 
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 03: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.


All times are GMT -7. The time now is 06:53 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC