diff options
Diffstat (limited to 'src/occt_wrapper/OCCTWrapper.hpp')
-rw-r--r-- | src/occt_wrapper/OCCTWrapper.hpp | 27 |
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_ |