mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
GCodeViewer -> Reduced vertices count when generating solid toolpaths
This commit is contained in:
parent
d07d5e36de
commit
1c2ef87cfa
2 changed files with 61 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue