Version 2 (modified by martin, 8 years ago)


osgUtil Tesselatore


The osgUtil library tesselator converts complex polygons to triangles and implements the gluTess functions.

The algorithm applies to osg::Geometry objects. By default:

applies tesselation to any polygon in the Geometry that has more than 3 vertices.

Other options are to:

applies tesselation to the (closed loop) lines in the Geometry (whether a set of line_loops, polygons, triangles or quads etc) to follow the rules of the gluTess algorithms for generating the parts to be filled. See the red book, chap 11) or or (this has better pictures!).

Returns a collection of triangles, tri-strips and tri-fans replacing the polygon(s) in the Geometry.