Thanks Björn, fix now merged with svn/trunk and OSG-3.2 branch.

On 24 September 2013 13:31, "Björn Hein (IPR)" <[email protected]> wrote:
> Dear Robert,
>
> it seems that for generating "per vertex normals" as stated in the
> comment, two of them are missing. This results in wrong display of
> STL-files regarding normals. Following simple fix seems to work:
>
> Index: ReaderWriterSTL.cpp
> ===================================================================
> --- ReaderWriterSTL.cpp    (Revision 13797)
> +++ ReaderWriterSTL.cpp    (Arbeitskopie)
> @@ -108,6 +108,8 @@
>                      ++itr)
>                  {
>                      perVertexNormals->push_back(*itr);
> +                    perVertexNormals->push_back(*itr);
> +                    perVertexNormals->push_back(*itr);
>                  }
>
>                  geom->setNormalArray(perVertexNormals.get(),
> osg::Array::BIND_PER_VERTEX);
>
>
> Best regards
>
> Björn
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to