Hi Nick,

On 16 November 2017 at 17:05, Trajce Nikolov NICK
<[email protected]> 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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to