Commit Graph

42 Commits

Author SHA1 Message Date
Vojtech Bubnik
6007f7ee49 Replacing ClipperLib::IntPoint with Eigen point as a first step to
make the ClipperLib paths and polygons compatible with Slic3r paths
and polygons without conversions and memory allocations.
2021-04-14 09:22:51 +02:00
tamasmeszaros
c6090fc69e Fix arrange with malformed contours 2020-12-03 14:58:09 +01:00
tamasmeszaros
f9d5b20c85 Fix out of bed items after arrange.
Disabled outline decimation for arrange and added very small (EPSILON) safety offset to bed detection boundaries.
2020-12-03 12:00:12 +01:00
tamasmeszaros
02d05a5f68 Use smarter object function in partial arrangement with empty bed. 2020-12-02 17:53:22 +01:00
tamasmeszaros
4e75d0ad88 Fix bed filling with more existing instances than needed 2020-11-26 15:11:54 +01:00
tamasmeszaros
28387920df Stop bed filling if enough instances are generated 2020-11-24 14:41:36 +01:00
tamasmeszaros
d6d6dff706 Prototype feature: fill plater with instances of selected object
#fixes #1350
2020-11-20 09:58:52 +01:00
tamasmeszaros
b780461f75 Add minimum bounding box rotation as starting point 2020-11-20 09:57:52 +01:00
tamasmeszaros
1c22667f21 Right mouse reaction to arrange button
Working arrange settings popup
2020-11-20 09:57:52 +01:00
tamasmeszaros
a719b82dc3 Fix arrange objectfunction to avoid last object in awkward positions.
fixes #3900
2020-11-20 09:46:15 +01:00
tamasmeszaros
f0bc38072a Workaround for items out of bed after arrange.
Fixes #4329
2020-06-01 16:16:30 +02:00
Lukas Matena
4fa702c570 Slight include cleanup 2020-05-26 13:45:36 +02:00
Vojtech Bubnik
1d0272c8e4 Replaced many defines in libslic3r.h with constexpr,
removed some macros to support old visual studio compiler.
2020-05-22 09:29:21 +02:00
tamasmeszaros
2275698f1b Add ModelArrange.hpp as extension to Model.hpp, use it for duplicating
Refactored Arrange interface: remove the union based BedShapeHint, replace it with proper function overloads

WARN: this commit is only intermediate, it does not compile.
2020-04-23 18:19:03 +02:00
tamasmeszaros
4f5033fead Fix arrangement with items larger or equal to bed dimesions.
fixes #2897 
fixes #1186
2020-03-16 14:37:54 +01:00
tamasmeszaros
f8d6b5bbdc Fix broken partial arrange 2019-11-01 15:13:05 +01:00
tamasmeszaros
28730791fa Extend libnest tests, remove some warnings, faster catch2 compilation.
Also, improve libnest2d::nest interface.
2019-10-07 17:16:40 +02:00
tamasmeszaros
7fb5dae326 Fix arrange crash with incorrect geometries. Guard the case with tests. 2019-09-23 11:59:44 +02:00
tamasmeszaros
a8c5ee9ea6 Fix arrangement of objects larger than the print bed. Issue #2897 2019-09-10 13:31:29 +02:00
tamasmeszaros
3cfda5c379 Small refactor for BedShapeHint 2019-08-21 15:39:20 +02:00
tamasmeszaros
aff46f71a3 Making arrange a little bit smarter: fix for issue #2787 2019-08-21 14:07:56 +02:00
bubnikv
9ef3dd83e2 Fixed memory issues of BedShapeHintwhen using unions of non-trivial objects 2019-08-19 17:01:39 +02:00
tamasmeszaros
a02e218ccd Merge branch 'master' into tm_clang_mingw 2019-08-16 16:37:02 +02:00
tamasmeszaros
a02a929b17 more clang warnings enabled, performance measuring
Succesfull build on mingw-w64


fix sandboxes


Mingw fixes and full parallel support tree gen.
2019-08-16 16:17:37 +02:00
tamasmeszaros
1a45a8b31e Fix for issue #2765, arrange crash with custom beds 2019-08-15 16:15:17 +02:00
tamasmeszaros
73254ba3dd Can build with (original llvm) clang-cl on windows 2019-08-01 16:03:52 +02:00
tamasmeszaros
4760da2849 Remove disabled code. 2019-07-22 11:18:10 +02:00
tamasmeszaros
31ca157cdf Arrange selection if shift is pressed. Remove first item centering 2019-07-19 18:10:10 +02:00
tamasmeszaros
947bf7e638 Fix for incorrect inside check of fixed items.
libnest2d: Add dispatched overloads for offsetting different shapes.
2019-07-19 12:34:27 +02:00
tamasmeszaros
698c2de245 Further refactoring 2019-07-18 17:31:27 +02:00
tamasmeszaros
302eaf16cb Really fix build for msvc 2019-07-17 16:47:09 +02:00
tamasmeszaros
6174d776b4 Fix for msvc build. 2019-07-17 14:34:28 +02:00
tamasmeszaros
b3217c191d Priority for wipe tower, Increased safety distance from bed edges.
* WipeTowerInfo class extended in plater (WipeTower) instead of GLCanvas3D
* Bed origin support in ModelInstance and WipeTower
2019-07-16 18:33:42 +02:00
tamasmeszaros
b68d5950ac Arrange cache in ModeInstance and logical bed remembered. 2019-07-15 17:30:44 +02:00
tamasmeszaros
9539a4860c Not handling logical beds in arrange() 2019-07-12 21:17:11 +02:00
tamasmeszaros
6a4aa6b059 Wip in Nester interface 2019-07-04 13:58:18 +02:00
tamasmeszaros
b475a174d7 WIP still with arrange return value. 2019-07-03 19:24:41 +02:00
tamasmeszaros
dcd396e3d8 Deal with infinite box. 2019-07-03 15:06:10 +02:00
tamasmeszaros
182436e75f Partial arrange starts to work again. 2019-07-02 15:24:40 +02:00
tamasmeszaros
be10f94d1a Unify AutoArranger subclasses 2019-07-02 12:15:53 +02:00
tamasmeszaros
f213e7570e Fix broken partial arrange 2019-07-02 10:32:01 +02:00
tamasmeszaros
a5f5840c1b Still WIP 2019-07-01 18:22:07 +02:00