GCodeViewer -> Reduced vertices count when generating solid toolpaths

This commit is contained in:
enricoturri1966 2020-08-28 12:28:21 +02:00
parent d07d5e36de
commit 1c2ef87cfa
2 changed files with 61 additions and 27 deletions

View file

@ -133,6 +133,8 @@ class GCodeViewer
unsigned char cp_color_id{ 0 };
bool matches(const GCodeProcessor::MoveVertex& move) const;
size_t vertices_count() const { return last.s_id - first.s_id + 1; }
bool contains(unsigned int id) const { return first.s_id <= id && id <= last.s_id; }
};
// Used to batch the indices needed to render paths