Commit graph

5328 commits

Author SHA1 Message Date
enricoturri1966
0a8f500819 Measuring - struct AngleAndPoints reworked as struct AngleAndEdges 2022-10-12 09:43:18 +02:00
enricoturri1966
1c084c4f62 Measuring - Some refactoring 2022-10-12 09:43:18 +02:00
enricoturri1966
f051847ac6 Measuring - Added a bunch of utility functions in Measure.hpp 2022-10-12 09:43:18 +02:00
Lukas Matena
3449ad0f73 Fixed crashing asserts due to a bug in the just merged branch 2022-10-12 09:43:18 +02:00
Lukas Matena
79ab1ab1b5 Measurement: moving arrow-drawing functions from frontend to the backend (3/4) 2022-10-12 09:43:17 +02:00
Lukas Matena
8af3e5823a Measurement: moving arrow-drawing functions from frontend to the backend (2/4) 2022-10-12 09:43:17 +02:00
Lukas Matena
9658c8c677 Measurement: moving arrow-drawing functions from frontend to the backend (1/4) 2022-10-12 09:43:17 +02:00
enricoturri1966
10459706b8 Fixed bug in get_measurement() function 2022-10-12 09:22:37 +02:00
enricoturri1966
14224eb38e Measuring: bunch of fixes into GLGizmoMeasure + new tech ENABLE_MEASURE_GIZMO_DEBUG to show a debug imgui dialog containing data related to Measure Gizmo 2022-10-12 09:22:36 +02:00
enricoturri1966
d9cb891951 Measuring: Rewritten method SurfaceFeature::operator ==() 2022-10-12 09:22:36 +02:00
enricoturri1966
512073d489 Measuring: Added missing default values to SurfaceFeature member variables 2022-10-12 09:22:36 +02:00
enricoturri1966
928a642eb9 Measuring: Added features selection in GLGizmoMeasure 2022-10-12 09:22:35 +02:00
enricoturri1966
19df0dadeb Fixed warnings 2022-10-12 09:22:35 +02:00
enricoturri1966
ed287215db Measuring: Added Measure gizmo imgui dialog + removed tech ENABLE_MEASURE_GIZMO_DEBUG + locking of features by pressing CTRL key 2022-10-12 09:22:34 +02:00
enricoturri1966
6c0aff0d23 Measuring: Measure gizmo features registered for raycasted picking 2022-10-12 09:22:34 +02:00
enricoturri1966
aeb8dec463 Measuring: code for Measure gizmo embedded into new tech ENABLE_MEASURE_GIZMO
Fixed conflicts while rebasing to master
2022-10-12 09:22:20 +02:00
enricoturri1966
7b43786124 Added tech ENABLE_MEASURE_GIZMO_DEBUG to embed debug code related to GLGizmoMeasure 2022-10-12 09:10:52 +02:00
enricoturri1966
1942932229 Partial revert of 1e494e30 2022-10-12 09:10:51 +02:00
Lukas Matena
b646fcad95 Measuring: implemented edge endpoint detection 2022-10-12 09:10:51 +02:00
Lukas Matena
b23e28e9e4 Measuring: refactoring 2022-10-12 09:10:51 +02:00
Lukas Matena
387dfb2b79 Measuring: Add detection of polygons and their centers 2022-10-12 09:10:51 +02:00
Lukas Matena
457afca5de Measuring: added getters for circle visualization 2022-10-12 09:10:51 +02:00
Lukas Matena
7d6d33f92c Measuring: further separating frontend and backend 2022-10-12 09:10:50 +02:00
Lukas Matena
9d5e9e8870 Measuring: Separating frontend and backend 2022-10-12 09:10:50 +02:00
Lukas Matena
70ea995f4a Measuring: First steps on extracting features 2022-10-12 09:10:50 +02:00
Lukas Matena
bd63320a00 Measuring: separated another gizmo 2022-10-12 09:10:50 +02:00
Lukas Matena
8833fb7ab4 SurfaceMesh testing (to be reverted later)
Fixed conflicts while rebasing to master
2022-10-12 09:10:33 +02:00
Lukas Matena
ac167e29ad First implementation of SurfaceMesh 2022-10-12 08:40:34 +02:00
Filip Sykala - NTB T15p
8511b280bf Heal shape with points close to line
(after conversion to floating point it is on the other side of line)
ExPolygons indexing (fixed)
2022-10-11 13:35:52 +02:00
Vojtech Bubnik
418734f41b WIP Tree supports with circular crossections: Clipping the remaining
collisions with the object.
2022-10-10 16:58:43 +02:00
Vojtech Bubnik
5cb4b63325 WIP TreeSupports: Experimental code draw_branches() to produce
trees with circular cross section
2022-10-10 14:19:06 +02:00
Vojtech Bubnik
5cba1e8319 Improved Point.hpp to_2d() and to_3d() templates to accept Eigen expressions 2022-10-10 14:15:26 +02:00
Vojtech Bubnik
493ada15a5 WIP TreeSupports: fix of calculatePlaceables() by Thomas Rahm 2022-10-10 14:15:26 +02:00
YuSanka
85af9b93f1 Cut: Fixes and improvements for object's context menu
* Disable or delete some menu items, which are inappropriate for cut objects
* For cut objects added menu item "Invalidate cut info" to disconnect related cut parts of initial object
* If just one part is kept after cut performance, than don't apply a cut info for this object.

+ CutGizmo: Fixed selection of the mode
   An object has connectors         -> Connectors mode
   An object doesn't has connectors -> CutPlane mode
2022-10-07 16:26:19 +02:00
YuSanka
74a32e3261 Cut: Bug fixing and Improvements
* CutGizmo: Fixed a label scale
* Fixed deselection of selected connectors, when moving the camera
* Implemented update of the settings for selected connectors
* Connector selection: Ctrl shortcut is changed to Shift to compatibility of the selection/deselection with rectangle selection
2022-10-07 11:14:13 +02:00
Filip Sykala - NTB T15p
bdf8c5ce88 Merge branch 'master' into fs_emboss 2022-10-06 12:25:17 +02:00
Pavel Mikus
c86deb92db improve function name to reflect that it does unscaling (to_unscaled_linesf) 2022-10-06 12:19:33 +02:00
Filip Sykala - NTB T15p
a5190a92cd Fix triangulation check 2022-10-05 15:15:22 +02:00
Filip Sykala - NTB T15p
e340fa6abe Merge branch 'master' into fs_emboss
# Conflicts:
#	src/libslic3r/AABBTreeLines.hpp
#	src/libslic3r/ExPolygon.hpp
#	tests/libslic3r/test_aabbindirect.cpp
2022-10-05 15:14:54 +02:00
Pavel Mikus
e02aed31d2 Added new query to AABBTree: all primitives (triangles/lines) within radius 2022-10-05 14:51:32 +02:00
Pavel Mikus
b49a2425ca Improve Lines Distancer quality, use it also in SeamPlacer 2022-10-05 14:51:32 +02:00
PavelMikus
20bd7f9a26 improvements in islands recognition; LinesDistancer class for both Point based and Floating based lines 2022-10-05 14:51:32 +02:00
tamasmeszaros
835c08beeb Remove accidental leftover commented source file 2022-10-05 10:12:28 +02:00
YuSanka
b4f38883a8 Merge remote-tracking branch 'PRIVATE/master' into ys_cut 2022-10-03 11:30:49 +02:00
Filip Sykala - NTB T15p
0e3b7cae12 Merge branch 'master' into fs_emboss
# Conflicts:
#	src/libslic3r/Technologies.hpp
#	src/slic3r/GUI/GLCanvas3D.cpp
2022-09-29 18:47:21 +02:00
Vojtech Bubnik
3350292ff2 WIP TreeSupports
1) Nodes allocated using std::deque, not as std::set of pointers for
   less memory allocator pressure.
2) Parents changed to parent indices, so that one may allocate side
   by side data for nodes addressed by these indices. Thus now elemens
   are being marked as deleted and the whole node database is being
   compacted in one shot instead of deleting an element from std::set.
3) Removed SUPPORT_TREE_ONLY_GRACIOUS_TO_MODEL for simplicity, it was
   never used.
4) Fixed crash when slicing multiple objects with three supports.
2022-09-29 17:10:53 +02:00
YuSanka
d1c871758b Cut WIP:
* ObjectDataViewModel: Respect to the volume id, when adding the new volume to the object
* 3mf : Save/Load info about connectors
2022-09-29 14:36:47 +02:00
enricoturri1966
3513b800a0 Tech ENABLE_PREVIEW_LAYOUT set as default 2022-09-29 14:23:41 +02:00
enricoturri1966
524e55edd9 Tech ENABLE_LEGEND_TOOLBAR_ICONS set as default 2022-09-29 12:19:20 +02:00
Vojtech Bubnik
d7d849a02c Fix of #8932 Hang while slicing interlocking chainmail model
Reworked the Archimedean Chords, Hilbert and Octagram Spiral infill
generators to
1) Generate solid infill as not aligned with other solid infill layers.
   This may surprise some users as the pattern over multiple islands
   will be different, maybe not that nice. This may change in the future.
2) Sparse infill is always aligned and generated over the whole object,
   however newly the generated lines are trimmed with a snug bounding box
   while being generated.
3) For Archimedean chords the accuracy was not applied correctly, leading
   to higher accuracy for dense infill and lower accuracy for sparse infill.
2022-09-29 12:12:20 +02:00