ENH: Relative bridge direction + Align bridge/Ironing angles with model (#12055)

Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
This commit is contained in:
Ian Bassi
2026-06-03 10:12:26 -03:00
committed by GitHub
parent 1b72dbf6fa
commit 065540e48f
10 changed files with 112 additions and 22 deletions

View File

@@ -117,6 +117,7 @@ public:
const PrintObjectConfig* object_config,
const PrintConfig* print_config,
const bool spiral_mode,
const double model_rotation_rad,
// Output:
// Loops with the external thin walls
ExtrusionEntityCollection* loops,
@@ -132,6 +133,7 @@ public:
config(config), object_config(object_config), print_config(print_config),
m_spiral_vase(spiral_mode),
m_scaled_resolution(scaled<double>(print_config->resolution.value > EPSILON ? print_config->resolution.value : EPSILON)),
m_model_rotation_rad(model_rotation_rad),
loops(loops), gap_fill(gap_fill), fill_surfaces(fill_surfaces), fill_no_overlap(fill_no_overlap),
m_ext_mm3_per_mm(-1), m_mm3_per_mm(-1), m_mm3_per_mm_overhang(-1), m_ext_mm3_per_mm_smaller_width(-1)
{}
@@ -157,6 +159,7 @@ private:
private:
bool m_spiral_vase;
double m_scaled_resolution;
double m_model_rotation_rad;
double m_ext_mm3_per_mm;
double m_mm3_per_mm;
double m_mm3_per_mm_overhang;