53 void VertexMap::build() |
53 void VertexMap::build() |
54 { |
54 { |
55 this->map.clear(); |
55 this->map.clear(); |
56 this->vertices.clear(); |
56 this->vertices.clear(); |
57 this->vertexHashes.clear(); |
57 this->vertexHashes.clear(); |
58 this->model->apply<ldraw::Object>([&](const ldraw::Object* object) |
58 applyToModel<ldraw::Object>(*this->model, [&](const ldraw::Object* object) |
59 { |
59 { |
60 glm::mat4 matrix; |
60 glm::mat4 matrix; |
61 if (object->numPoints() > 2) |
61 if (object->numPoints() > 2) |
62 { |
62 { |
63 const auto& p0 = object->getPoint(0); |
63 const auto& p0 = object->getPoint(0); |