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
>   
You could perhaps use the basic_array_source from boost::iostreams, 
which essentially makes an iostream of a memory segment?

See http://www.boost.org/libs/iostreams/doc/classes/array.html#array_source.

Cheers,
/Marcus

-------------------------------------------------------------------------
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