STLImport.hpp 364 B

12345678910111213
  1. #pragma once
  2. // Include dependencies
  3. #include <string>
  4. #include "lib3mf_implicit.hpp"
  5. class STLImport {
  6. public:
  7. static void readSTL(std::string file, std::vector<Lib3MF::sPosition>* verticesBuffer, std::vector<Lib3MF::sTriangle>* triangleBuffer);
  8. private:
  9. static int findVertex(float x, float y, float z, std::vector<Lib3MF::sPosition>* verticesBuffer);
  10. };