![tamasmeszaros](/assets/img/avatar_default.png)
CMake handling is different STEP: Removed preprocessing stage STEP: Small refactoring STEP: Bigger refactoring STEP: Changed naming on loaded object and volumes: If the STEP contains exactly one named volume, the object and its first volume will both have that name. Otherwise, filename w/o suffix is used as object name and volumes are named using names from the STEP (if there is none, untranslated "PartN" string is used). STEP: Load the libraries dynamically on Win wip
27 lines
549 B
C++
27 lines
549 B
C++
|
|
#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_
|