Rewrote the Text3D bevel implementation to automatically adjust bevel thickness to avoid overalapping and erronous tesselation.

Added osgText::Bevel::s/getRoundedConcaveJunctions(bool) to control how the bevel should be tessellated around concave junctions on the glyph boundary.


git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14871 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-05-26 10:05:47 +00:00
parent 05841d7c00
commit 820166b49d
7 changed files with 481 additions and 47 deletions

View File

@@ -23,12 +23,14 @@ using namespace osgText;
//
Bevel::Bevel()
{
_smoothConcaveJunctions = false;
_thickness = 0.02f;
flatBevel();
}
Bevel::Bevel(const Bevel& bevel, const osg::CopyOp& copyop):
osg::Object(bevel, copyop),
_smoothConcaveJunctions(bevel._smoothConcaveJunctions),
_thickness(bevel._thickness),
_vertices(bevel._vertices)
{