<div dir="ltr">Thanks Robert !!!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 3:01 PM, Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nick,<br>
<br>
On 16 November 2017 at 17:05, Trajce Nikolov NICK<br>
<span class=""><<a href="mailto:trajce.nikolov.nick@gmail.com">trajce.nikolov.nick@gmail.com</a><wbr>> wrote:<br>
>> Getting the coords of glyphs is something we'd need to add to<br>
> osgText::Text, such as Text::getGlyphCorners(int characterPosition,<br>
> osg::Vec3& bottomLeft, osg::Vec3& bottomRight etc.).<br>
><br>
> Right. This will do it.<br>
<br>
</span>I have checked in:<br>
<br>
/** Get the coordinates of the character corners in local<br>
coordinates. Use Text::getMatrix() or Text::computeMatrix(..) to get<br>
the transform into model coordinates (see TextBase header.) */<br>
bool getCharacterCorners(unsigned int index, osg::Vec3&<br>
bottomLeft, osg::Vec3& bottomRight, osg::Vec3& topLeft, osg::Vec3&<br>
topRight) const;<br>
<br>
Note the comment about needing to transform this coords - this is<br>
required to handle the overall positioning of the text in model<br>
coordinates.<br>
<span class="HOEnZb"><font color="#888888"><br>
Robert.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>