MeshTools.hpp 465 B

123456789101112
  1. #pragma once
  2. // Include dependencies
  3. #include "lib3mf_implicit.hpp"
  4. #include <osg/Array>
  5. class MeshTools {
  6. public:
  7. static void calculateNormals(const std::vector<Lib3MF::sPosition> verticesBuffer, const std::vector<Lib3MF::sTriangle> triangleBuffer, osg::ref_ptr<osg::Vec3Array> vertices, osg::ref_ptr<osg::Vec3Array> normals);
  8. static float angleBetween(osg::Vec3 a, osg::Vec3 b);
  9. static float compensationLength(osg::Vec3 a, osg::Vec3 b, float length);
  10. };