68 Model& Model::EditContext::model() |
68 Model& Model::EditContext::model() |
69 { |
69 { |
70 return this->storedModel; |
70 return this->storedModel; |
71 } |
71 } |
72 |
72 |
73 static std::array<geom::Triangle, 2> splitTriangles(ldraw::Diagonal diagonal, const glm::vec3(&points)[4]) |
73 static std::array<geom::Triangle, 2> splitTriangles(ldraw::Diagonal diagonal, const std::array<glm::vec3, 4>& points) |
74 { |
74 { |
75 std::array<geom::Triangle, 2> result; |
75 std::array<geom::Triangle, 2> result; |
76 switch (diagonal) |
76 switch (diagonal) |
77 { |
77 { |
78 case ldraw::Diagonal::Diagonal_13: |
78 case ldraw::Diagonal::Diagonal_13: |