MeshTools.hpp 625 B

12345678910111213141516
  1. #pragma once
  2. // Include modules
  3. #include "OptiTrackPoint.hpp"
  4. // Include dependencies
  5. #include "lib3mf_implicit.hpp"
  6. #include <osg/Array>
  7. class MeshTools {
  8. public:
  9. 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);
  10. static float angleBetween(osg::Vec3 a, osg::Vec3 b);
  11. static float compensationLength(osg::Vec3 a, osg::Vec3 b, float length);
  12. static bool optiTrackSanityCheck(const std::vector<OptiTrackPoint*> points, const bool showSuccessMessage);
  13. };