26 Commits

Author SHA1 Message Date
Filip Sykala - NTB T15p
7216e819b3 Chenge is_last_neighbor to end_in_distance 2025-02-25 16:41:15 +01:00
Filip Sykala
209bebc82e Fix build 2025-02-25 16:41:15 +01:00
Filip Sykala
5d2b3cfc1e Add outline angle rule to decide when support centre line 2025-02-25 16:41:15 +01:00
Filip Sykala
12b320624b Add filter for end center line support instead of minimal distance. 2025-02-25 16:41:15 +01:00
Filip Sykala
3c4f68fa3f Fix: change .value() connected with optional to dereferece by *
Os X do NOT support std::optional::value()
PrusaSlicer_OsX_Mojave:
../src/libslic3r/SLA/SupportIslands/ExpandNeighbor.cpp:23:50: error: 'value' is unavailable: introduced in macOS 10.14
2025-02-25 16:41:15 +01:00
Filip Sykala
d36e16c9f1 FIX: Add convert Slic3r::Point to Voronoi::point_type
../src/libslic3r/SLA/SupportIslands/ParabolaUtils.cpp:92:22: error: no viable conversion from 'const Slic3r::Point' to 'VD::point_type' (aka 'point_data<double>')
    VD::point_type   source_point = parabola.focus;
                     ^              ~~~~~~~~~~~~~~
../src/libslic3r/SLA/SupportIslands/ParabolaUtils.cpp:39:33: error: no matching constructor for initialization of 'std::vector<VD::point_type>' (aka 'vector<point_data<double> >')
../src/libslic3r/SLA/SupportIslands/ParabolaUtils.cpp:85:33: error: no matching constructor for initialization of 'std::vector<VD::point_type>' (aka 'vector<point_data<double> >')
2025-02-25 16:41:15 +01:00
Filip Sykala
257c285c73 FIX: remove warnings
../src/libslic3r/SLA/SupportIslands/PolygonUtils.cpp:12:10: warning: variable 'is_in_limits' set but not used [-Wunused-but-set-variable]
../src/libslic3r/SLA/SupportIslands/VoronoiGraphUtils.cpp:294:45: warning: unused variable 'success' [-Wunused-variable]
2025-02-25 16:41:15 +01:00
Filip Sykala
49de8d2869 Fix: Anotate unused variable to remove warnings 2025-02-25 16:41:15 +01:00
Filip Sykala
381c9d8fb4 Fix: Linux Warnings 2025-02-25 16:41:15 +01:00
Filip Sykala
69c58505cd Center support point contain configuration 2025-02-25 16:41:15 +01:00
Filip Sykala
d6616be202 FIX> infinite loop because intersection is out of line
place on line mast be perpendicular to source line
but NOT to edge
2025-02-25 16:41:15 +01:00
Filip Sykala
f44b0d51f1 add minimal width to edge
Fix creation of Field and sampling outline
2025-02-25 16:41:15 +01:00
Filip Sykala
0033deb1d4 Fix for sample between Tiny and Wide part of island 2025-02-25 16:41:14 +01:00
Filip Sykala
214f1acea6 Fix calculation of width on VD 2025-02-25 16:41:14 +01:00
Filip Sykala
51ce8fbd62 Create ExPolygon from wide part of island 2025-02-25 16:41:14 +01:00
Filip Sykala
85984ca189 Support island points are generated as unique ptr for option to move with them
+ add fix for cell 2 polygon transformation
2025-02-25 16:41:14 +01:00
Filip Sykala
942443429e Separate draw function 2025-02-25 16:41:14 +01:00
Filip Sykala
60a0ac46c2 Align of SP 2025-02-25 16:41:14 +01:00
Filip Sykala
e27734266f use geometry orientation 2025-02-25 16:41:14 +01:00
Filip Sykala
9c9880aba8 Cell from over limit points 2025-02-25 16:41:14 +01:00
Filip Sykala
81f0ad8f63 convert Voronoi cell to polygon 2025-02-25 16:41:14 +01:00
Filip Sykala
51dfdd8f38 Position of Support Point is connected with voronoi graph 2025-02-25 16:41:14 +01:00
Filip Sykala
dd61478fd6 add sample center circles 2025-02-25 16:41:14 +01:00
Filip Sykala
1ab293eb75 Parabola length calculation. 2025-02-25 16:41:14 +01:00
Filip Sykala
18d58da6ea Node data constructor deosnt have own logic
Calculation of Parabola length by sum of line segments
2025-02-25 16:41:14 +01:00
Filip Sykala
7c4b711aeb separate Voronoi graf and searching longest path into own files 2025-02-25 16:41:14 +01:00