72 Commits

Author SHA1 Message Date
Vojtech Bubnik
65ab83d6a9 Fix of Build failed with CGAL 5.5: UserVisitor’ {aka ‘struct priv::Visitor’}
has no member named ‘start_filtering_intersections’
Fixes #9582
Co-authored-by: @hexane360
2023-03-03 13:07:41 +01:00
Filip Sykala - NTB T15p
da2dc782ff Fix warnings
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:766:17: warning: unused variable 'window_title' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:2044:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses]

../src/libslic3r/CutSurface.cpp:1626:25: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
../src/libslic3r/CutSurface.cpp:1627:25: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
../src/libslic3r/CutSurface.cpp:1628:25: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
2023-01-26 17:12:45 +01:00
Filip Sykala - NTB T15p
454363fe2c Fix of filtering trinagles for reflected projection 2023-01-13 13:27:01 +01:00
Filip Sykala - NTB T15p
244ca5ed44 Use surface for reflected text. 2023-01-05 19:52:56 +01:00
Filip Sykala - NTB T15p
dd225513b9 Fix of vertex reduction.
Before fix exists case when after reduction exist triangle with opposite direction of vertices(CW vs CCW)
2023-01-05 17:43:50 +01:00
Filip Sykala - NTB T15p
ee6e947312 Clean after 9fef0cd091261908bba8723150b234e4d747565c 2022-10-20 10:15:08 +02:00
Filip Sykala - NTB T15p
9fef0cd091 Fix for whistle model. Issue 51.3
Sort patches by distance to expolygon projection depth center and add patches until expolygon is filled
2022-10-19 19:15:59 +02:00
Filip Sykala - NTB T15p
8343e81053 Fix test
+ Comment debug output
+ Add was_canceled in cut surface
2022-10-12 19:26:45 +02:00
Filip Sykala - NTB T15p
3fa3ea0bb4 Projection text for cut surface is made with double preccission 2022-10-12 16:17:38 +02:00
Filip Sykala - NTB T15p
27e640180f Add unprojecting of SurfacePatch contours 2022-08-31 08:35:43 +02:00
Filip Sykala - NTB T15p
7770034492 Fix warnings 2022-08-02 13:29:30 +02:00
Filip Sykala - NTB T15p
a8f87bde22 Create AABB tree on demand 2022-08-02 07:22:53 +02:00
Filip Sykala - NTB T15p
ded488d516 Paralelization of filtration in AOI triangles 2022-08-01 16:14:11 +02:00
Filip Sykala - NTB T15p
20a94c015c fix warn:
../src/libslic3r/CutSurface.cpp:1798:12: warning: variable 'is_same' set but not used [-Wunused-but-set-variable]
../src/libslic3r/CutSurface.cpp:1837:12: warning: unused variable 'distance_sq' [-Wunused-variable]
../src/libslic3r/CutSurface.cpp:2795:22: warning: unused variable 'def_value' [-Wunused-variable]
../tests/libslic3r/test_aabbindirect.cpp:122:12: warning: variable 'distance_sq' set but not used [-Wunused-but-set-variable]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:1336:17: warning: unused variable 'was_opened' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:1336:17: warning: 'was_opened' defined but not used [-Wunused-variable]
../src/slic3r/GUI/Jobs/EmbossJob.cpp:398:12: warning: unused variable 'biggest_index' [-Wunused-variable]
../src/slic3r/GUI/Jobs/EmbossJob.cpp:352:43: warning: 'const Slic3r::GUI::UseSurfaceData::ModelSource* get_biggest(const ModelSources&)' defined but not used [-Wunused-function]
2022-07-25 10:31:29 +02:00
Filip Sykala - NTB T15p
a0eecb91c8 Using aabb tree for lines to detect closest expolygons 2022-07-22 15:34:12 +02:00
Filip Sykala - NTB T15p
0b798267d6 Fix after merge 2022-07-20 13:41:28 +02:00
Filip Sykala - NTB T15p
eb8f0df07b Remove useless assert 2022-07-20 10:07:56 +02:00
Filip Sykala - NTB T15p
621e6c8932 Reduced copy of triangle inside of thread 2022-07-19 20:25:01 +02:00
Filip Sykala - NTB T15p
4889a1a1b1 Fix dividing of patch 2022-07-14 14:32:24 +02:00
Filip Sykala - NTB T15p
6f1bcd2469 Fix debug visualization 2022-07-14 08:45:46 +02:00
Filip Sykala - NTB T15p
18c10c044d Fix: use property map instead of indexing by VI 2022-07-14 08:08:45 +02:00
Filip Sykala - NTB T15p
b9ea049ff4 Fix: shape point without projection 2022-07-13 14:50:32 +02:00
Filip Sykala - NTB T15p
d4fc90cbb7 Clean up 2022-07-13 13:43:53 +02:00
Filip Sykala - NTB T15p
4349e82d27 Clean up cut surface 2022-07-13 13:15:07 +02:00
Filip Sykala - NTB T15p
e0b77bb4c2 Fix:
../src/libslic3r/CutSurface.cpp:1419:18: error: non-const lvalue reference to type 'Property_map<...>' cannot bind to a temporary of type 'Property_map<...>'
../src/libslic3r/CutSurface.cpp:2741:15: error: non-const lvalue reference to type 'Property_map<...>' cannot bind to a temporary of type 'Property_map<...>'
../src/libslic3r/CutSurface.cpp:2758:83: warning: braces around scalar initializer [-Wbraced-scalar-init]
2022-07-13 08:45:54 +02:00
Filip Sykala - NTB T15p
1dbe32e373 comment debug output 2022-07-13 08:34:41 +02:00
Filip Sykala - NTB T15p
3e7b0506c3 Fix for release mode
PropertyMap can't be created into reference !!!
2022-07-13 08:32:46 +02:00
Filip Sykala - NTB T15p
3c6d0bdb55 Fix warnings 2022-07-12 10:51:41 +02:00
Filip Sykala - NTB T15p
f71d234747 Disable debug outputs 2022-07-12 10:37:02 +02:00
Filip Sykala - NTB T15p
8064a4648b change way of creation reduction map
store all filled, constrained and reduction maps for all models
2022-07-12 10:35:45 +02:00
Filip Sykala - NTB T15p
2f73590fcb Clean up 2022-07-11 20:11:13 +02:00
Filip Sykala - NTB T15p
963713fad1 separate function for cut_from_model
set face type by edges(not triangles) half processing of is in or out
2022-07-11 19:57:38 +02:00
Filip Sykala - NTB T15p
d955a37987 Clean up 2022-07-11 19:11:22 +02:00
Filip Sykala - NTB T15p
4752c80d99 Fixed outlines extraction 2022-07-11 17:45:07 +02:00
Filip Sykala - NTB T15p
93c41323d7 Merge patches + creation of patch outlines 2022-07-11 12:06:01 +02:00
Filip Sykala - NTB T15p
266113d3a2 Work with multiple patches from one CutAOI - only area without outlines and selection of correct projection distance
NOTE: One clip can create multiple patches - divide by connected triangles
2022-07-07 19:41:09 +02:00
Filip Sykala - NTB T15p
89f6df6da1 Start using CGAL::clip verify it could be used as tool for difference a mdoel patch in AOI 2022-07-02 09:27:27 +02:00
Filip Sykala
043accbc00 detection of intersection source 2022-06-29 15:34:33 +02:00
Filip Sykala
ab3148538a Partial difference for multiple volume cuts 2022-06-29 11:55:55 +02:00
Filip Sykala
b059d3a57c Merge cuts by CGAL model -- Not Working 2022-06-24 15:55:11 +02:00
Filip Sykala
65bcb896b4 fix move store function behinde macro 2022-06-21 16:59:34 +02:00
Filip Sykala
093d2dfccd Hide debug store 2022-06-21 16:56:31 +02:00
Filip Sykala
669219cb4c Fix
../src/libslic3r/CutSurface.cpp:2609:28: warning: comparison of integer expressions of different signedness: 'const int' and 'unsigned int' [-Wsign-compare]
../src/libslic3r/CutSurface.cpp:2610:28: warning: comparison of integer expressions of different signedness: 'const int' and 'unsigned int' [-Wsign-compare]
2022-06-21 16:33:58 +02:00
Filip Sykala
803bde0cd2 Fix
../src/libslic3r/CutSurface.cpp:2300:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
2022-06-21 16:30:56 +02:00
Filip Sykala
52a50b5ac9 Fix ../src/libslic3r/CutSurface.cpp:2623:9: error: control reaches end of non-void function [-Werror=return-type] 2022-06-21 16:29:14 +02:00
Filip Sykala
02a10a380a Prepare for merge intersected cuts 2022-06-21 10:56:08 +02:00
Filip Sykala
f1acbf1bfe Filtering not closest surface cuts 2022-06-20 18:53:38 +02:00
Filip Sykala
553f484588 Fix letter without aoi 2022-06-20 18:52:45 +02:00
Filip Sykala
13b1ef0075 fix over zero cycling 2022-06-20 18:52:12 +02:00
Filip Sykala
e8d8ec1990 Merge cuts first part 2022-06-10 18:38:05 +02:00