src/modeleditcontext.cpp

changeset 87
93ec4d630346
parent 86
4bec0525ef1b
child 89
7abaf1d64719
equal deleted inserted replaced
86:4bec0525ef1b 87:93ec4d630346
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:

mercurial