Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/occt_wrapper/OCCTWrapper.hpp')
-rw-r--r--src/occt_wrapper/OCCTWrapper.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/occt_wrapper/OCCTWrapper.hpp b/src/occt_wrapper/OCCTWrapper.hpp
new file mode 100644
index 000000000..e87becb70
--- /dev/null
+++ b/src/occt_wrapper/OCCTWrapper.hpp
@@ -0,0 +1,27 @@
+
+#ifndef occtwrapper_OCCTWrapper_hpp_
+#define occtwrapper_OCCTWrapper_hpp_
+
+#include <array>
+#include <string>
+#include <vector>
+
+namespace Slic3r {
+
+struct OCCTVolume {
+ std::string volume_name;
+ std::vector<std::array<float, 3>> vertices;
+ std::vector<std::array<int, 3>> indices;
+};
+
+struct OCCTResult {
+ std::string error_str;
+ std::string object_name;
+ std::vector<OCCTVolume> volumes;
+};
+
+using LoadStepFn = bool (*)(const char *path, OCCTResult* occt_result);
+
+}; // namespace Slic3r
+
+#endif // occtwrapper_OCCTWrapper_hpp_