Moved Text3D across to using Style for character thickness.

Quitened down debug messages in 3D text geometry creation.
Improved the Text3D implementation of the new 3D text geometry.
This commit is contained in:
Robert Osfield
2010-09-27 17:11:12 +00:00
parent f8b44c3b33
commit 5af4884558
4 changed files with 19 additions and 17 deletions

View File

@@ -117,7 +117,7 @@ public:
}
else
{
OSG_NOTICE<<" computeBisectorNormal(a=["<<a<<"], b=["<<b<<"], c=["<<c<<"], d=["<<d<<"]), nx="<<nx<<", ny="<<ny<<", denominator="<<denominator<<" need to swap!!!"<<std::endl;
OSG_INFO<<" computeBisectorNormal(a=["<<a<<"], b=["<<b<<"], c=["<<c<<"], d=["<<d<<"]), nx="<<nx<<", ny="<<ny<<", denominator="<<denominator<<" need to swap!!!"<<std::endl;
return osg::Vec3(-nx,-ny,0.0f);
}
}
@@ -660,7 +660,7 @@ osg::Geometry* computeTextGeometry(osg::Geometry* glyphGeometry, const osgText::
osg::Vec3Array* orig_vertices = dynamic_cast<osg::Vec3Array*>(glyphGeometry->getVertexArray());
if (!orig_vertices)
{
OSG_NOTICE<<"computeTextGeometry(..): No vertices on glyphGeometry."<<std::endl;
OSG_INFO<<"computeTextGeometry(..): No vertices on glyphGeometry."<<std::endl;
return 0;
}