<div dir="ltr">As the per primitive normal is not used by modern openGL, you probably will have to calculate it yourself from the triangle vertices:<div><div>        osg::Vec3 normal = (v1-v0)^(v2-v0);</div><div>        normal.normalize();</div></div><div>Laurens.</div><div>ps. </div><div>I found your mail in my spam folder, probably due to the domain of your mail adres and the very short message. </div><div>You might improve the answers you get by expanding your message by an explanation of what you are trying to do, why you want to do that and what the problem actually is. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 19, 2018 at 2:53 AM, Bingqian Wang <span dir="ltr"><<a href="mailto:695186754@qq.com" target="_blank">695186754@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I know how can I get the vertex normal vector use NodeVisitor and Geometry->getNormalArray(),but how to get the  normal of every triangle?<br>
<br>
Thank you very much!<br>
<br>
Cheers,<br>
Bingqian<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=73130#73130" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=73130#<wbr>73130</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<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>
</blockquote></div><br></div>