Hi Toni,

tony michelli wrote:
> Hello,
> I use in my code the function "read" like this :
> 
> NodePtr nodeOFF =   SceneFileHandler::the().read(myOffFile.off) ;
> That construct the geometry of my model describe in OFF format, and 
> store it in nodeOFF.
> 
> Now, I have to construct a real time application that load the meshs 
> transmitted in the same manner that OFF, but not via files, but via 
> network (ComLayer), so I will receive the same data that was in 
> myOffFile, but as arrays. I would like to apply the same construction 
> that the Read() function make, so I need to create a function quite 
> similar, adapting the code to get the coords, and the triangle by giving 
> then directllly instead of parsing a file.
> 
> My problem is I can not find where is implemented this function in the 
> OpenSG library, I've benn browsing the Doxygen page for a few hours, and 
> can't find where is made the construction of the geometry when parsing 
> an Off File.
> 
> If someone knows, it could help, thanks

The actual code for that is in 
Source/System/FileIO/OFF/OSGOFFSceneFileType.cpp. Alternatively you can 
look at the Geometry tutorials, they show you how to create Geometry. Or 
you can use Marcus' suggestion. Or you can use OpenSG on the server side 
and transfer the data using OpenSG's RemoteAspect. There are many ways 
to solve this... ;)

Hope it helps

        Dirk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to