Thanks Robert !!! On Tue, Nov 21, 2017 at 3:01 PM, Robert Osfield <robert.osfi...@gmail.com> wrote:
> Hi Nick, > > On 16 November 2017 at 17:05, Trajce Nikolov NICK > <trajce.nikolov.n...@gmail.com> wrote: > >> Getting the coords of glyphs is something we'd need to add to > > osgText::Text, such as Text::getGlyphCorners(int characterPosition, > > osg::Vec3& bottomLeft, osg::Vec3& bottomRight etc.). > > > > Right. This will do it. > > I have checked in: > > /** Get the coordinates of the character corners in local > coordinates. Use Text::getMatrix() or Text::computeMatrix(..) to get > the transform into model coordinates (see TextBase header.) */ > bool getCharacterCorners(unsigned int index, osg::Vec3& > bottomLeft, osg::Vec3& bottomRight, osg::Vec3& topLeft, osg::Vec3& > topRight) const; > > Note the comment about needing to transform this coords - this is > required to handle the overall positioning of the text in model > coordinates. > > Robert. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org