fix apply once

This commit is contained in:
Antoine Lavenant 2018-10-10 08:31:30 +02:00
parent ede5bdbbc7
commit e8ceebcf57

View File

@ -296,6 +296,7 @@ private:
else else
*m_f << "solid " << node.getName() << std::endl; *m_f << "solid " << node.getName() << std::endl;
*m_f << std::fixed << std::setprecision(7);
for (unsigned int i = 0; i < node.getNumDrawables(); ++i) for (unsigned int i = 0; i < node.getNumDrawables(); ++i)
{ {
osg::TriangleFunctor<PushPoints> tf; osg::TriangleFunctor<PushPoints> tf;
@ -362,7 +363,6 @@ private:
else else
*m_stream << "facet normal " << vNormal[0] << " " << vNormal[1] << " " << vNormal[2] << std::endl; *m_stream << "facet normal " << vNormal[0] << " " << vNormal[1] << " " << vNormal[2] << std::endl;
*m_stream << "outer loop" << std::endl; *m_stream << "outer loop" << std::endl;
*m_stream << std::fixed << std::setprecision(7);
*m_stream << "vertex " << v1[0] << " " << v1[1] << " " << v1[2] << std::endl; *m_stream << "vertex " << v1[0] << " " << v1[1] << " " << v1[2] << std::endl;
*m_stream << "vertex " << v2[0] << " " << v2[1] << " " << v2[2] << std::endl; *m_stream << "vertex " << v2[0] << " " << v2[1] << " " << v2[2] << std::endl;
*m_stream << "vertex " << v3[0] << " " << v3[1] << " " << v3[2] << std::endl; *m_stream << "vertex " << v3[0] << " " << v3[1] << " " << v3[2] << std::endl;