mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
ENH: speed gcode export up again
thanks prusa Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: Ifbe5e2ea55b16a7fe281b54ca16c37695c15f5b1
This commit is contained in:
parent
c945c47383
commit
4c4b274408
11 changed files with 512 additions and 75 deletions
|
|
@ -30,6 +30,9 @@ public:
|
|||
const Layer* layer() const { return m_layer; }
|
||||
const PrintRegion& region() const { return *m_region; }
|
||||
|
||||
const SurfaceCollection& get_slices() const { return slices; }
|
||||
const SurfaceCollection& get_slices_simplified() const { return slices_simplified; }
|
||||
|
||||
// collection of surfaces generated by slicing the original geometry
|
||||
// divided by type top/bottom/internal
|
||||
SurfaceCollection slices;
|
||||
|
|
@ -170,11 +173,6 @@ public:
|
|||
for (const LayerRegion *layerm : m_regions) if (layerm->slices.any_internal_contains(item)) return true;
|
||||
return false;
|
||||
}
|
||||
//BBS: only be used in gcode export when reduce_infill_retraction is enabled
|
||||
template <class T> bool any_internal_region_slmplify_slice_contains(const T& item) const {
|
||||
for (const LayerRegion* layerm : m_regions) if (layerm->slices_simplified.any_internal_contains(item)) return true;
|
||||
return false;
|
||||
}
|
||||
template <class T> bool any_bottom_region_slice_contains(const T &item) const {
|
||||
for (const LayerRegion *layerm : m_regions) if (layerm->slices.any_bottom_contains(item)) return true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue