Wed, 08 Jun 2022 22:29:44 +0300
More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused code
#pragma once #include "basics.h" #include "model.h" #include "gl/common.h" struct GetPolygonsContext { ModelId modelId; class DocumentManager* documents; }; struct PolygonCache { std::vector<gl::Polygon> cachedPolygons; bool needRecache = true; }; const std::vector<gl::Polygon>& getCachedPolygons( PolygonCache* cache, Model* model, class DocumentManager* documents);