Hi

I try to retrieve all the primitives in osg::DVRGeometry, which inherits
osg::Geometry. Below is my test code ( in each frame). But I got
segmentation fault in the first frame no matter which iterator I am
using. Am I using the right method. Thanks a lot for any help


DVRVolumePtr vol;
......
DVRGeometryPtr g = vol->getGeometry();

//PrimitiveIterator i = g->beginPrimitives(); 
//std::cout << i.getClassname() << std::endl;

//FaceIterator i = g->beginFaces();
//std::cout << i.getClassname() << std::endl;
     
TriangleIterator i = g->beginTriangles();
std::cout << i.getClassname() << std::endl;



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to