--- a/src/vertexmap.h Sat Jul 23 01:38:06 2022 +0300 +++ b/src/vertexmap.h Sat Jul 23 01:38:43 2022 +0300 @@ -19,13 +19,13 @@ glm::mat4 transform; }; using ApplyFunction = std::function<void(const glm::vec3&, const VertexInfo&)>; - VertexMap(const Model *model); + VertexMap(const QTextDocument *model); Q_SLOT void build(); void apply(ApplyFunction fn) const; Q_SIGNALS: Q_SIGNAL void verticesChanged(); private: - const Model* const model; + const QTextDocument* const model; QSet<hash_t> vertexHashes; std::vector<glm::vec3> vertices; std::map<hash_t, VertexInfo> map;