Commit Graph

77 Commits

Author SHA1 Message Date
tamasmeszaros
ed67fb506e Fix some warnings on gcc 11 2021-10-20 15:08:43 +02:00
tamasmeszaros
92cf46773a Hotfix for arrange not working for objects with huge translation. 2021-06-28 14:55:15 +02:00
tamasmeszaros
49c6ce76d0 Search for suitable rotation when arranging items larger than the bed 2021-06-22 11:23:32 +02:00
Vojtech Bubnik
8d0950ce12 Convincing ClipperLib to use Slic3r's own Point type internally. 2021-04-21 20:15:49 +02:00
tamasmeszaros
a15c16d40d Use new libnest backend for MinAreaBoundingBox wrapper 2021-04-21 17:21:43 +02:00
tamasmeszaros
ad19ab219d New custom backend for libnest2d using libslic3r types
Adapted to new clipper->eigen mod
2021-04-21 16:02:25 +02:00
Vojtech Bubnik
7112ac61b6 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
29cd8aac26 WIP: Fix of arrangement after reducing ClipperLib::cInt
from int64_t to int32_t
2021-04-13 16:35:46 +02:00
tamasmeszaros
f117d02750 Back-porting improvements for libnest2d 2021-03-31 09:36:54 +02:00
tamasmeszaros
9092033bea Eliminate libnest2d warning on mac 2021-02-22 13:08:24 +01:00
tamasmeszaros
869ae0247e Use smarter object function in partial arrangement with empty bed. 2020-12-02 17:53:22 +01:00
tamasmeszaros
3e73473334 fix rotation for initial placement 2020-12-01 14:12:20 +01:00
tamasmeszaros
dfbf4cbab2 Fix bed filling with more existing instances than needed 2020-11-26 15:11:54 +01:00
tamasmeszaros
5363dcb5bc Fix broken arrange from 2f65bcc83f 2020-11-24 18:46:25 +01:00
tamasmeszaros
2f65bcc83f Performance improvements and cleanup 2020-11-24 16:43:37 +01:00
tamasmeszaros
171acf094c Change license of libnest2d to LGPLv3 2020-08-05 16:34:01 +02:00
tamasmeszaros
4be0e37963 Workaround for items out of bed after arrange.
Fixes #4329
2020-06-01 16:16:30 +02:00
tamasmeszaros
69c02a407b Add libnest tests for various basic object functions 2020-04-23 18:17:58 +02:00
tamasmeszaros
5ed7d0aa29 Fix arrangement with items larger or equal to bed dimesions.
fixes #2897 
fixes #1186
2020-03-16 14:37:54 +01:00
tamasmeszaros
29f2394ecb Fix faulty nfp edge cache with argument > 1.0
in reaction to #3781
2020-03-12 10:45:35 +01:00
tamasmeszaros
c0b90f68ab force creating static library for libnest2d 2020-01-09 17:12:40 +01:00
tamasmeszaros
7fd4800e7c Fix wrong bounding box calculation for initial arrange item. 2020-01-09 14:21:01 +01:00
tamasmeszaros
cdc9fb0d8f Force using TBB on all platforms for libnest2d 2019-10-14 13:42:09 +02:00
tamasmeszaros
fbc174ad06 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
72ac8d68f0 Extend libnest tests, remove some warnings, faster catch2 compilation.
Also, improve libnest2d::nest interface.
2019-10-07 17:16:40 +02:00
tamasmeszaros
555fcc151d Hotfix for broken partial arrange. 2019-10-07 14:10:47 +02:00
tamasmeszaros
ce4f4bea06 libnest2d test rewritten for catch2. Fine tuned catch2 integration. 2019-10-04 12:59:31 +02:00
tamasmeszaros
a6f5fe7bea Fix arrange crash with incorrect geometries. Guard the case with tests. 2019-09-23 11:59:44 +02:00
tamasmeszaros
177a96a768 Fix arrange crash with ASAN 2019-09-13 11:01:02 +02:00
tamasmeszaros
84e8081413 Fix compilation on OSX 2019-09-10 14:00:48 +02:00
tamasmeszaros
1c20c4c43d Fix arrangement of objects larger than the print bed. Issue #2897 2019-09-10 13:31:29 +02:00
tamasmeszaros
7e0199746e 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
7d25d8c677 Can build with (original llvm) clang-cl on windows 2019-08-01 16:03:52 +02:00
tamasmeszaros
72ed8c034e 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
6ae50a710a Further refactoring 2019-07-18 17:31:27 +02:00
tamasmeszaros
c82fb9c84f libnest2d: Remove old preload method from selector interface 2019-07-17 17:19:42 +02:00
tamasmeszaros
2728f41123 Solved issue with virtual bed management.
libnest2d: Fix for unclosed polygons after merge.
2019-07-17 13:32:31 +02:00
tamasmeszaros
44801f4429 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
1b0e192046 Arrange cache in ModeInstance and logical bed remembered. 2019-07-15 17:30:44 +02:00
tamasmeszaros
df7bb94daf Not handling logical beds in arrange() 2019-07-12 21:17:11 +02:00
tamasmeszaros
9372f1c6ad Wip in Nester interface 2019-07-04 13:58:18 +02:00
tamasmeszaros
e81f8a5fd9 WIP still with arrange return value. 2019-07-03 19:24:41 +02:00
tamasmeszaros
b5215dae1b Fix libnest2d tests 2019-07-03 17:05:08 +02:00
tamasmeszaros
bc315f4c2c Deal with infinite box. 2019-07-03 15:06:10 +02:00
tamasmeszaros
320f2ecefd Try to deal with infinite bin. 2019-07-02 16:08:13 +02:00
tamasmeszaros
87c5e9bbaa Partial arrange starts to work again. 2019-07-02 15:24:40 +02:00
tamasmeszaros
914bf63228 Unify AutoArranger subclasses 2019-07-02 12:15:53 +02:00
tamasmeszaros
253ec07cb2 Still WIP 2019-07-01 18:22:07 +02:00
tamasmeszaros
cb3a586deb Adapt find_new_position is WIP. Cleaning up comments. 2019-06-28 18:27:15 +02:00
tamasmeszaros
299e4f74c7 Arranging with new structure. 2019-06-28 17:03:50 +02:00