FDM supports gizmo: slight code refactoring

This commit is contained in:
Lukas Matena 2020-05-15 18:31:55 +02:00
parent ed55ebba55
commit 1a38d39f82
2 changed files with 80 additions and 84 deletions

View file

@ -38,11 +38,12 @@ private:
// other triangles. Enforcers and blockers are of course separate.
std::vector<std::array<std::vector<GLIndexedVertexArray>, 2>> m_ivas;
void update_vertex_buffers(const ModelVolume* mv,
void update_vertex_buffers(const TriangleMesh* mesh,
int mesh_id,
FacetSupportType type, // enforcers / blockers
const std::vector<size_t>* new_facets = nullptr); // nullptr -> regenerate all
public:
GLGizmoFdmSupports(GLCanvas3D& parent, const std::string& icon_filename, unsigned int sprite_id);
~GLGizmoFdmSupports() override;