309 throw BodyParseError{"vertex contained illegal co-ordinates"}; |
309 throw BodyParseError{"vertex contained illegal co-ordinates"}; |
310 } |
310 } |
311 return {x, y, z}; |
311 return {x, y, z}; |
312 } |
312 } |
313 |
313 |
314 static glm::mat4 matrixFromStrings(const QStringList& tokens, const int startingPosition, const int positionStartingIndex) |
314 static glm::mat4 matrixFromStrings( |
|
315 const QStringList& tokens, |
|
316 const int startingPosition, |
|
317 const int positionStartingIndex) |
315 { |
318 { |
316 glm::mat4 result = glm::mat4{1}; |
319 glm::mat4 result = glm::mat4{1}; |
317 for (int i = 0; i < 9; i += 1) |
320 for (int i = 0; i < 9; i += 1) |
318 { |
321 { |
319 const int row = i / 3; |
322 const int row = i / 3; |