src/vertexmap.cpp

changeset 151
e628fc2e0c72
parent 120
8c9fff699241
child 200
ca23936b455b
equal deleted inserted replaced
150:b6cbba6e29a1 151:e628fc2e0c72
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);

mercurial