mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-27 00:24:00 -06:00
FIX: withdraw support enforcers on vertical faces
JIRA: studio-2274 Now support enforcer on vertical faces function is invalid. Previous enhancement of support enforcer on vertical faces brounght more conficts than benefits. Change-Id: Icbb0df3995d8ac8b3c22dda1bd4615da78af963b (cherry picked from commit bca003cbc35791838484afe4032276be8fa91db0)
This commit is contained in:
parent
0a730e9c2e
commit
1d92895456
3 changed files with 7 additions and 29 deletions
|
@ -46,19 +46,6 @@ struct MeshSlicingParamsEx : public MeshSlicingParams
|
|||
double resolution { 0 };
|
||||
};
|
||||
|
||||
// BBS: MusangKing - NEW: add paint-on support on vertical-faces
|
||||
// this SlabSlicingConfig aiming to distinguish if slice_slabs_make_lines() outputs lines by slab_slicing on vertical faces
|
||||
// e.g., for support enforcer operation: isVertical = true; for other color painting operations: isVertical = false (default).
|
||||
// solve conflicts STUDIO-1183/970/1285
|
||||
struct SlabSlicingConfig
|
||||
{
|
||||
SlabSlicingConfig()
|
||||
: isVertical(false)
|
||||
{}
|
||||
|
||||
bool isVertical;
|
||||
};
|
||||
|
||||
// All the following slicing functions shall produce consistent results with the same mesh, same transformation matrix and slicing parameters.
|
||||
// Namely, slice_mesh_slabs() shall produce consistent results with slice_mesh() and slice_mesh_ex() in the sense, that projections made by
|
||||
// slice_mesh_slabs() shall fall onto slicing planes produced by slice_mesh().
|
||||
|
@ -120,9 +107,7 @@ void slice_mesh_slabs(
|
|||
const Transform3d &trafo,
|
||||
std::vector<Polygons> *out_top,
|
||||
std::vector<Polygons> *out_bottom,
|
||||
std::function<void()> throw_on_cancel,
|
||||
// BBS: MusangKing
|
||||
SlabSlicingConfig config = SlabSlicingConfig());
|
||||
std::function<void()> throw_on_cancel);
|
||||
|
||||
// Project mesh upwards pointing surfaces / downwards pointing surfaces into 2D polygons.
|
||||
void project_mesh(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue