Rereading geometry attributes

The osg::Geometry manages lots of vertex data by using vertex arrays, and renders these vertices and vertex attributes with ordered primitive sets. However, an osg::Geometry object doesn't have any topological elements, such as faces, edges, and their relationships. This sometimes prevents it from implementing complex polygonal techniques and being edited freely (dragging a certain face or edge to manipulate the model, and so on).

OSG doesn't support algorithmic topology functionalities at present, probably because it seems a little weird for a rendering API to implement this. But OSG has already implemented a series of functors to reread geometry attributes and primitives from any existing drawables, and make use ...

Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.