26008 Commits

Author SHA1 Message Date
Filip Sykala - NTB T15p
d26f0358fe Bug Fix 2025-02-25 16:41:15 +01:00
Filip Sykala
ee91e1af31 Fix configuration 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
fe5f9ac382 FIX crop parallel line with y 2025-02-25 16:41:15 +01:00
Filip Sykala
a3d17119f6 Fix aligning
- function belong
- Calculation of move distance on outline

Separate utils tests
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
0c9dedcffa Add allignable inner support island point 2025-02-25 16:41:15 +01:00
Filip Sykala
10c05ca01e Align outline points 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
cda80cdd0b Fix: Mac os build
../src/libslic3r/SLA/SupportIslands/ExpandNeighbor.cpp:23:63: 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
26ec836c12 remove magic enum 2025-02-25 16:41:15 +01:00
Filip Sykala
74ab00eff5 FIX: Slicer point now cast to boost point type by full constructor in parabola utils 2025-02-25 16:41:15 +01:00
Filip Sykala
9c8681f452 Fix: data type for OsX
../src/libslic3r/SLA/SupportIslands/ParabolaUtils.cpp:38:48: error: no matching constructor for initialization of 'std::vector<Voronoi::Internal::point_type>' (aka 'vector<point_data<double> >')
    std::vector<Voronoi::Internal::point_type> parabola_samples(
2025-02-25 16:41:15 +01:00
Filip Sykala
72f0a6e4a7 Fix: revert typedef
PrusaSlicer_With_Asan_Linux/248:
../src/libslic3r/SLA/SupportIslands/VectorUtils.hpp:76:25: error: need 'typename' before 'std::iterator_traits<_II>::value_type' because 'std::iterator_traits<_II>' is a dependent scope
../src/libslic3r/SLA/SupportIslands/VectorUtils.hpp:77:25: error: need 'typename' before 'std::iterator_traits<_Iter>::value_type' because 'std::iterator_traits<_Iter>' is a dependent scope
../src/libslic3r/SLA/SupportIslands/VectorUtils.hpp:78:24: error: need 'typename' before 'std::iterator_traits<_Iter>::difference_type' because 'std::iterator_traits<_Iter>' is a dependent scope
...
2025-02-25 16:41:15 +01:00
Filip Sykala
381c9d8fb4 Fix: Linux Warnings 2025-02-25 16:41:15 +01:00
Filip Sykala
2362532675 Fix: include from parent directory (linux build) 2025-02-25 16:41:15 +01:00
Filip Sykala
3dc205c7bc Fix data conversion warning 2025-02-25 16:41:15 +01:00
Filip Sykala
ea1e6c0e8f visualization inside of test with macro 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
1c489806ff Compare of Sampling method 2025-02-25 16:41:15 +01:00
Filip Sykala
24208b4daa Fix. Now correct check when 2 vector have same direction 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
b6ee9f4368 Add uniform sampling of ExPolygon 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
fd2193eb77 Successfull creation of field with indexes
Add visualization of Field
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
fb050136ef add Magic enum 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
dd505eab82 Clean up voronoi test 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
Filip Sykala - NTB T15p
fb083cc610 Add default value for curve loaded from SVG file for fix test at this moment 2025-02-25 16:41:14 +01:00
Filip Sykala - NTB T15p
84dd902ca8 Fix of build 2025-02-25 16:41:14 +01:00
Filip Sykala - NTB T15p
f8058049ac Partialy commented out SLA support point generator tests 2025-02-25 16:41:14 +01:00
Filip Sykala - NTB T15p
88a1ddeb91 Remove points out of extended part.
Allow multiple sample of the same 2d part of object in multiple heights
2025-02-25 16:41:14 +01:00
Filip Sykala - NTB T15p
d69177f910 Change grid to KD tree for fast search of support points in max radius 2025-02-25 16:41:14 +01:00