Commit Graph

74 Commits

Author SHA1 Message Date
Vojtech Bubnik
e912da36eb Convincing ClipperLib to use Slic3r's own Point type internally. 2021-04-21 20:15:49 +02:00
tamasmeszaros
c5c73f4257 Use new libnest backend for MinAreaBoundingBox wrapper 2021-04-21 17:21:43 +02:00
tamasmeszaros
f3af547441 New custom backend for libnest2d using libslic3r types
Adapted to new clipper->eigen mod
2021-04-21 16:02:25 +02:00
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
Vojtech Bubnik
f0e1464ca3 WIP: Fix of arrangement after reducing ClipperLib::cInt
from int64_t to int32_t
2021-04-13 16:35:46 +02:00
tamasmeszaros
08fbd4272c Back-porting improvements for libnest2d 2021-03-31 09:36:54 +02:00
tamasmeszaros
03e483a0af Eliminate libnest2d warning on mac 2021-02-22 13:08:24 +01:00
tamasmeszaros
02d05a5f68 Use smarter object function in partial arrangement with empty bed. 2020-12-02 17:53:22 +01:00
tamasmeszaros
d6f6741539 fix rotation for initial placement 2020-12-01 14:12:20 +01:00
tamasmeszaros
4e75d0ad88 Fix bed filling with more existing instances than needed 2020-11-26 15:11:54 +01:00
tamasmeszaros
a5a910a591 Fix broken arrange from 2f65bcc83f 2020-11-24 18:46:25 +01:00
tamasmeszaros
a52b072836 Performance improvements and cleanup 2020-11-24 16:43:37 +01:00
tamasmeszaros
cc5ec1d7be Change license of libnest2d to LGPLv3 2020-08-05 16:34:01 +02:00
tamasmeszaros
f0bc38072a Workaround for items out of bed after arrange.
Fixes #4329
2020-06-01 16:16:30 +02:00
tamasmeszaros
0f2d3180ab Add libnest tests for various basic object functions 2020-04-23 18:17:58 +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
bea87d7137 Fix faulty nfp edge cache with argument > 1.0
in reaction to #3781
2020-03-12 10:45:35 +01:00
tamasmeszaros
2c22366d8c force creating static library for libnest2d 2020-01-09 17:12:40 +01:00
tamasmeszaros
cc02675984 Fix wrong bounding box calculation for initial arrange item. 2020-01-09 14:21:01 +01:00
tamasmeszaros
3e2a3e58f8 Force using TBB on all platforms for libnest2d 2019-10-14 13:42:09 +02:00
tamasmeszaros
1a16d5f0e7 Fix cmake with msvc generator.
* Remove unused libnest2d files. Make it use the global build script targets.
* Modify FindTBB to address multi-config builds and take care of __TBB_NO_IMPLICIT_LINKAGE
* Move FindNLopt to project common cmake module dir
* Rename libnest.hpp to nester.hpp and libnest.h to libnest.hpp 
* Clean up common test suite build scripts
2019-10-14 12:50:08 +02: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
1b68cee8e4 Hotfix for broken partial arrange. 2019-10-07 14:10:47 +02:00
tamasmeszaros
a9b40c0547 libnest2d test rewritten for catch2. Fine tuned catch2 integration. 2019-10-04 12:59:31 +02:00
tamasmeszaros
7fb5dae326 Fix arrange crash with incorrect geometries. Guard the case with tests. 2019-09-23 11:59:44 +02:00
tamasmeszaros
72a18037c3 Fix arrange crash with ASAN 2019-09-13 11:01:02 +02:00
tamasmeszaros
ec803f4044 Fix compilation on OSX 2019-09-10 14:00:48 +02:00
tamasmeszaros
a8c5ee9ea6 Fix arrangement of objects larger than the print bed. Issue #2897 2019-09-10 13:31:29 +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
73254ba3dd Can build with (original llvm) clang-cl on windows 2019-08-01 16:03:52 +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
6791a93ac1 libnest2d: Remove old preload method from selector interface 2019-07-17 17:19:42 +02:00
tamasmeszaros
3eeb453e9a Solved issue with virtual bed management.
libnest2d: Fix for unclosed polygons after merge.
2019-07-17 13:32:31 +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
bc4111d66b Fix libnest2d tests 2019-07-03 17:05:08 +02:00
tamasmeszaros
dcd396e3d8 Deal with infinite box. 2019-07-03 15:06:10 +02:00
tamasmeszaros
6dece3088d Try to deal with infinite bin. 2019-07-02 16:08:13 +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
a5f5840c1b Still WIP 2019-07-01 18:22:07 +02:00
tamasmeszaros
7e9b4257e1 Adapt find_new_position is WIP. Cleaning up comments. 2019-06-28 18:27:15 +02:00
tamasmeszaros
00beee9dee Arranging with new structure. 2019-06-28 17:03:50 +02:00
tamasmeszaros
649fa28edd Get rid of the test.cpp warning 2019-06-26 18:03:37 +02:00
tamasmeszaros
84e0f8e514 Make an order in using scale and unscale, remove some warnings. 2019-06-26 10:34:27 +02:00
tamasmeszaros
6ec5dfd432 Fix for debug build on Visual Studio 2019-06-19 16:23:53 +02:00