Commit Graph
100 Commits
Author SHA1 Message Date
tamasmeszaros d4fe7b5a96 Adding rotating calipers algorithm for minimum are bounding box rotation.
Cleanup, fix build on windows and add test for rotcalipers.

Try to fix compilation on windows

With updates from libnest2d
Another build fix.


Clean up and add comments.


adding rotcalipers test  and some cleanup


Trying to fix on OSX


Fix rotcalipers array indexing


Get rid of boost convex hull.


Adding helper function 'remove_collinear_points'


Importing new libnest2d upgrades.


Disable using __int128 in NFP on OSX
2019-06-06 14:27:07 +02:00
tamasmeszaros 6136fe7d92 Future-proof qhull dependency handling 2019-06-05 19:19:49 +02:00
tamasmeszaros 7a5d3de1c4 Move cstdint to Zipper header.
The declarations already contain specific integers.
2019-06-04 09:26:33 +02:00
tamasmeszaros 8376d14267 Fix for opening issues with archive files. 2019-06-03 15:27:46 +02:00
tamasmeszaros 460887cdde Adjust miniz usage to use nowide FILE streams everywhere. 2019-06-02 22:27:35 +02:00
tamasmeszaros 15620a2fc2 Fix unclosed file after export. 2019-06-02 20:02:27 +02:00
tamasmeszaros 916016f2d4 Use nowide fopen in Zipper instead of patching miniz. 2019-06-02 19:10:13 +02:00
tamasmeszaros f275cdafa9 Revert "Patch miniz bundled version to support unicode on Windows."
This reverts commit 8fc1eba652.
2019-06-02 19:06:29 +02:00
tamasmeszaros 34663a3514 Merge branch 'tm_minz_update' 2019-05-31 18:34:59 +02:00
tamasmeszaros 8fc1eba652 Patch miniz bundled version to support unicode on Windows. 2019-05-31 16:54:42 +02:00
tamasmeszaros d5d6af1361 Using system miniz in Linuxes.
Also enabling miniz large file support on gnu compilers.
2019-05-31 12:33:35 +02:00
tamasmeszaros 96380180f4 Build system tweaks to get rid of cmake and boost warnings. 2019-05-30 17:48:32 +02:00
tamasmeszaros 9c46eed742 Don't wrap braces after control statements. 2019-05-28 15:29:06 +02:00
tamasmeszaros cdf85a9058 Allow all types of functions on one line.
Which would fit into the 75 char line limit.
2019-05-28 15:18:11 +02:00
tamasmeszaros e78658ddc2 Code style for clang-format tool.
I tried to make it respect our code style as much as possible.
2019-05-28 15:09:01 +02:00
tamasmeszaros 025a889f88 Update miniz cmake 2019-05-27 14:46:04 +02:00
tamasmeszaros 902bf682c0 Replacing old miniz version with new 2.1.0
#2333: The amalgamated library is used from the 'releases' section of the original upstream https://github.com/richgel999/miniz
2019-05-23 11:52:31 +02:00
tamasmeszaros 5afd0b4ee2 Fixing issues with mode switching on Linux. 2019-05-21 14:06:43 +02:00
tamasmeszaros dd57e55244 Adding dependency report into doc 2019-05-21 10:55:42 +02:00
tamasmeszaros 9dc6699229 Eliminate some warnings 2019-05-20 12:29:14 +02:00
tamasmeszaros 52d042a1c9 Prevent segfaults from callbacks when statusbar elements are deallocated
happens on application exit when a job (arrange or optimize orientation) is running.
2019-05-13 10:20:37 +02:00
tamasmeszaros c03a202e20 Prevent degenerate triangles in pad. 2019-05-07 13:06:15 +02:00
tamasmeszaros 806dc34421 removing some commented out garbage 2019-05-07 09:56:53 +02:00
tamasmeszaros 1634cd1a3c Fix asan crash on statistics step 2019-05-06 16:57:46 +02:00
tamasmeszaros a7d57de6f3 Fix for possible clash with old correction vectors in config 2019-04-29 17:07:55 +02:00
tamasmeszaros bfcd9f3c29 Fix for unregistered scaling correction values. 2019-04-29 16:53:16 +02:00
tamasmeszaros cd9a77fed6 Remove back offset from the print statistic calculation. 2019-04-29 16:42:22 +02:00
tamasmeszaros 3eecf54d9c Fixing large memory reservation in the SLA model slicing step. 2019-04-26 11:33:33 +02:00
tamasmeszaros afbe0d9e60 Further optimizations for SLA memory usage. 2019-04-25 18:48:31 +02:00
tamasmeszaros bbdc6a7881 Fix for incomplete validation condition on the allowable elevation. 2019-04-17 10:08:54 +02:00
tamasmeszaros a55022ae2f Fix for issue SPE-901 2019-04-12 10:26:33 +02:00
tamasmeszaros 59758fea55 Material correction XY merged 2019-04-11 17:07:41 +02:00
tamasmeszaros 53861b2012 Removing separate X and Y relative correction. 2019-04-09 18:15:25 +02:00
tamasmeszaros 3ffd43b2ce Support for thresholding with Zero gamma.
Also made a few optimizations in rasterizer.
2019-04-09 14:52:29 +02:00
tamasmeszaros c702ddc65d Adding absolute correction (XY offset) and gamma correction parameters. 2019-04-09 13:42:32 +02:00
tamasmeszaros 2487bb8794 Remove unnecessary reversals of print polygons.
second take...
2019-04-05 17:04:55 +02:00
tamasmeszaros 08b9d9a519 fix for hole disappearance 2019-04-05 16:24:23 +02:00
tamasmeszaros b56991d780 Fix for leaving the object outside bed after "optimize orientation" 2019-04-04 16:03:23 +02:00
tamasmeszaros 590ae25b13 Altering sla export interface to support explicit project name. 2019-04-04 12:30:11 +02:00
tamasmeszaros f0d106e5f0 Added method for relative correction retrieval. 2019-04-04 10:52:14 +02:00
tamasmeszaros ecdd4b6e7a Suggestion for Z offset correction 2019-04-03 18:23:29 +02:00
tamasmeszaros c6b5fe05e4 Scaling correction parameters in material and print conf.
Scaling is applied in sla_trafo but no effect unless set before model import.
2019-04-03 17:34:46 +02:00
tamasmeszaros f7ce59d070 Merge branch 'tm_clipperutils_update' 2019-04-03 11:17:44 +02:00
tamasmeszaros 1534356268 Call Line conversion operator explicitly. 2019-04-03 11:17:15 +02:00
tamasmeszaros 32af3ff3c0 Remove unnecessary reversals of print polygons. 2019-04-03 10:29:27 +02:00
tamasmeszaros 7b414fe34a Get rid of unnecessary copies and moves in ClipperUtils
This is up to a code review session.
2019-04-03 10:17:57 +02:00
tamasmeszaros 66fce6d46c Add mirror correction to rasterized polygons. 2019-04-02 17:48:50 +02:00
tamasmeszaros 6a74564900 More accurate status proportions for SLA steps. 2019-04-02 11:19:52 +02:00
tamasmeszaros a3dcb6863e Rethought sla status indication. 2019-04-02 10:54:14 +02:00
tamasmeszaros b8289c32b0 Fix for broken SLA status indication. 2019-04-01 16:10:15 +02:00
tamasmeszaros 32a49d1468 Fixing negative status values in console output 2019-04-01 13:59:39 +02:00
tamasmeszaros 50942e9382 Merge branch 'tm_reuse_unified' 2019-04-01 12:24:50 +02:00
tamasmeszaros 2baa651f1e Fixing the broken rasterizer.
Paths and holes cannot be added separately.
2019-04-01 12:15:47 +02:00
tamasmeszaros 4eb5d91a8f Parallel loop for the statistics 2019-04-01 11:37:26 +02:00
tamasmeszaros 6593421802 fix for statistics 2019-03-29 17:20:19 +01:00
tamasmeszaros 725f115756 Merging with master for having minz png compression.
Much greater performance boost from better compression algorithm than that from the merged polygons.
2019-03-29 15:21:46 +01:00
tamasmeszaros b19d411738 It seems that stats are not broken after all. 2019-03-29 13:34:22 +01:00
tamasmeszaros 98c976dd9f Merge branch 'tm_sla_png_minz' 2019-03-28 17:56:50 +01:00
tamasmeszaros 1e47cc9004 Improving Zipper API error handling. 2019-03-28 17:21:19 +01:00
tamasmeszaros 50c351e0f4 Fix broken arrange 2019-03-28 11:01:41 +01:00
tamasmeszaros 440e54181b Output raster seem ok, stats broken. 2019-03-27 18:37:50 +01:00
tamasmeszaros c332dc1c1d Fixing horrendous error in destructor. 2019-03-27 13:22:04 +01:00
tamasmeszaros 8fdff97eb7 Merging new steps integration 2019-03-27 11:05:51 +01:00
tamasmeszaros bc74761513 Integrating new step, removing old and unused steps. 2019-03-27 10:59:29 +01:00
tamasmeszaros 95b0467c85 Reusing unified polygons from statistics 2019-03-26 18:51:27 +01:00
tamasmeszaros 34094bf1b8 Adding new step for statistics 2019-03-26 18:04:04 +01:00
tamasmeszaros b064d9662f Merge branch 'tm_slice_index_lyrh' 2019-03-26 17:47:27 +01:00
tamasmeszaros a0f18f9f7c Add check for missing support points if supports are enabled. 2019-03-26 17:28:51 +01:00
tamasmeszaros 4d8800bc8a Fixing broken statistics. 2019-03-26 16:45:04 +01:00
tamasmeszaros 4c972549fb Merge branch 'master' into tm_slice_index_lyrh 2019-03-26 16:06:52 +01:00
tamasmeszaros 6a41e45eeb Reverting manual unification. It does not help performance. 2019-03-26 16:06:24 +01:00
tamasmeszaros 1c6b25c053 Optimizing manual unification. 2019-03-26 15:05:57 +01:00
tamasmeszaros 221a4836fd Manual unification of print polygons.
With clipper not with the agg rasterizer, because they can be reused for the statistics.
2019-03-26 14:06:40 +01:00
tamasmeszaros 9946a1c914 Fix for missing support polygons 2019-03-26 11:30:55 +01:00
tamasmeszaros bec9a518a3 Move SliceRecord into SLAPrintObject 2019-03-26 11:22:35 +01:00
tamasmeszaros a49643ebdb Merging with master, solving conflicts. 2019-03-26 11:13:28 +01:00
tamasmeszaros 57e28b53f2 Further refactor and simplification of slice index and print data. 2019-03-26 10:57:45 +01:00
tamasmeszaros b4ea43a6b0 Merge branch 'master' into tm_slice_index_lyrh 2019-03-25 19:02:35 +01:00
tamasmeszaros d73d9309f1 Refactoring and commenting slice index solution. 2019-03-25 19:02:05 +01:00
tamasmeszaros b21133d16b Further fixes and some refactor. 2019-03-25 14:53:25 +01:00
tamasmeszaros c1186340d2 Fix for missing dep_zlib on in deps scripts 2019-03-25 14:06:28 +01:00
tamasmeszaros 27b7e7c6a9 Fix for orbital bug: using delete for memory created by minz. 2019-03-25 14:01:50 +01:00
tamasmeszaros 70fa85d024 Next try to fix build on msvc2013 2019-03-25 13:45:28 +01:00
tamasmeszaros 956391d9d1 Trying to fix build on msvc2013 2019-03-25 11:00:21 +01:00
tamasmeszaros e927c65c0a Some fixes for dependency targets on Linux 2019-03-25 11:41:16 +01:00
tamasmeszaros 5abf64e1d2 Add static assert instead of returning empty result. 2019-03-25 10:35:42 +01:00
tamasmeszaros 0d83c7ee9f Hypothetical support of different object layer heights. 2019-03-25 09:55:48 +01:00
tamasmeszaros f4b70e42d1 Merge branch 'master' into tm_slice_index 2019-03-22 15:48:57 +01:00
tamasmeszaros 8e18605bd7 Fix for incorrect model slices after elevation has changed. 2019-03-22 15:48:20 +01:00
tamasmeszaros 4ece50e3db Merge branch 'master' into tm_slice_index 2019-03-22 15:31:58 +01:00
tamasmeszaros d165dbb498 Refactoring changes to the slice index. 2019-03-22 15:31:38 +01:00
tamasmeszaros 5e646562cd Fixes for the duplicated layer issues... 2019-03-21 18:01:41 +01:00
tamasmeszaros 63a899b239 Using same slicing grid for the supports and the model. 2019-03-21 16:14:26 +01:00
tamasmeszaros 0ffc0c3a84 Merge branch 'master' into tm_slice_index 2019-03-21 15:17:01 +01:00
tamasmeszaros 24a5dd4235 FIx for broken slice preview 2019-03-21 15:16:33 +01:00
tamasmeszaros d4dde12d0d Slic3r compiles with the new slice index interface. 2019-03-21 12:25:33 +01:00
tamasmeszaros 19a96336ff WIP on slice indexing 2019-03-20 18:03:11 +01:00
tamasmeszaros 2f244895d2 Small fix for cancel button text on Linux 2019-03-20 11:12:37 +01:00
tamasmeszaros 78ac357d34 Enabling convex hull optimization for arrange.
Seems to work nicely
2019-03-19 15:01:58 +01:00
tamasmeszaros 630d266c4b Merge branch 'master' into tm_sla_png_minz 2019-03-19 13:19:17 +01:00