src/vertexmap.h

changeset 119
24275a4064f4
parent 118
8e1c9f18ae15
child 120
8c9fff699241
equal deleted inserted replaced
118:8e1c9f18ae15 119:24275a4064f4
17 void apply(ApplyFunction fn) const; 17 void apply(ApplyFunction fn) const;
18 Q_SIGNALS: 18 Q_SIGNALS:
19 Q_SIGNAL void verticesChanged(); 19 Q_SIGNAL void verticesChanged();
20 private: 20 private:
21 const Model* const model; 21 const Model* const model;
22 std::map<unsigned int, glm::vec3> vertices; 22 QSet<unsigned int> vertexHashes;
23 std::vector<glm::vec3> vertices;
23 std::map<unsigned int, std::set<ldraw::id_t>> map; 24 std::map<unsigned int, std::set<ldraw::id_t>> map;
24 }; 25 };
25 26
26 #endif // VERTEXMAP_H 27 #endif // VERTEXMAP_H

mercurial