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

OCCTWrapper.hpp « occt_wrapper « src - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e87becb70fd6125dfbf8a659ca006533317a8f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_