7 namespace horizon::STEPImporter {
13 Color(
double ir,
double ig,
double ib) : r(ir), g(ig), b(ib)
16 Color() : r(0), g(0), b(0)
25 return std::make_tuple(x, y, z);
29 TVertex(T ix, T iy, T iz) : x(ix), y(iy), z(iz)
35 bool operator==(
const TVertex &other)
const
37 return x == other.x && y == other.y && z == other.z;
40 bool operator<(
const TVertex &other)
const
42 return as_tuple() < other.as_tuple();
45 auto &operator+=(
const TVertex &other)
53 auto &operator/=(T other)
67 std::vector<Vertex> vertices;
68 std::vector<Vertex> normals;
69 std::vector<std::tuple<size_t, size_t, size_t>> triangle_indices;
73 using Faces = std::deque<Face>;
78 std::deque<Point> points;
81 Result import(
const std::string &filename);
Definition: import.hpp:64
Definition: import.hpp:75
Definition: import.hpp:21