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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user