-
Book Overview & Buying
-
Table Of Contents
OpenSceneGraph 3.0: Beginner's Guide
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 of them for the purpose of topological mesh modeling and so on.
A functor is always realized as a class but executed like a function. The functor can mimic some known interface with the same return-type and calling parameters, but all attributes passed...
Change the font size
Change margin width
Change background colour