Mon, 16 May 2022 01:40:49 +0300
work on circle tool
#pragma once #include "main.h" #include "model.h" class PolygonCache : QObject { Q_OBJECT public: PolygonCache(Model* model); const std::vector<gl::Polygon>& getPolygons(class DocumentManager* documents); private: void getObjectPolygons( const int index, std::vector<gl::Polygon>& polygons_out, ldraw::GetPolygonsContext* context) const; Model* const model; std::vector<gl::Polygon> cachedPolygons; bool needRecache = true; };