Commit Graph

7575 Commits

Author SHA1 Message Date
7563c885a1 Fixing compiler warnings 2021-05-03 15:00:23 +02:00
96f8744e05 Another fix for C++ conformant compilers 2021-05-03 11:55:23 +02:00
c7c7983e77 Fixing compilation on C++ conforming compilers 2021-05-03 11:50:05 +02:00
09a80d954c Further rework of ClipperUtils: Replaced many to_polygons() /
to_expolygons() calls with templated ClipperUtils variants to avoid
memory allocation and copying.
2021-05-03 11:39:53 +02:00
9fbba855ef Clipper optimization:
1) Removed the already commented-out scaling / unscaling when doing
   "safe offsetting"
2) Removed some of the "safe offsetting" at calls where it never was used.
3) Reworked Clipper & ClipperUtils to pass Polygons / ExPolygons / Surfaces
   as input parameters without conversion to ClipperLib::Paths. This
   should save a lot of memory allocation and copying.
4) Reworked conversions from ClipperLib::Paths & PolyTree to Polygons /
   ExPolygons to use the move operator to avoid many unnecessary allocations.
5) Reworked some "union with safe ofsetting" to "offset_ex", which should
   be cheaper.
2021-04-30 11:49:57 +02:00
b327314b02 Layer::make_perimeters() - when merging regions, use OffsetEx instead
of safety offset of UnionEx, which may not be robust.
2021-04-29 11:05:11 +02:00
d1cfdcb49e Refactoring of StaticPrintConfig & derived classes:
1) Using boost::preprocessor to reduce code duplicities when defining
   new configuration values.
2) Implemented static hash() and operator== on StaticPrintConfig derived
   classes to support hash tables of instances thereof.
2021-04-26 18:37:10 +02:00
5783cc62fb Wipe tower priming lines are placed at origin with custom bed shapes
Custom shapes were previously detected as circular and the lines were placed off the bed
2021-04-26 09:21:18 +02:00
9f4e9da5c6 Merge branch 'tm_vb_clipper_eigen' 2021-04-23 11:44:25 +02:00
ea26581959 Move iterator stuff from polygon to multipoint 2021-04-22 09:44:08 +02:00
3b86cb3a3c Added missing files 2021-04-22 09:26:07 +02:00
8d0950ce12 Convincing ClipperLib to use Slic3r's own Point type internally. 2021-04-21 20:15:49 +02:00
a15c16d40d Use new libnest backend for MinAreaBoundingBox wrapper 2021-04-21 17:21:43 +02:00
657d19482b Minor code refinements 2021-04-21 16:49:11 +02:00
d069591514 Write hollow flag to SL1 files if any object is hollowed. 2021-04-21 16:29:12 +02:00
dca67822d1 Eliminate warnings caused by changes to aid new libslic3r backend 2021-04-21 16:02:31 +02:00
ad19ab219d New custom backend for libnest2d using libslic3r types
Adapted to new clipper->eigen mod
2021-04-21 16:02:25 +02:00
0c1953a929 Further fixes of the first_layer_height refactoring. 2021-04-21 14:34:49 +02:00
4ce7ea40f0 Updated splashscreen images 2021-04-21 13:49:24 +02:00
d9ed9149ae 1) Moved first_layer_heigth frrom PrintObjectConfig to PrintConfig.
Thus the first_layer_height is no more object specific. That makes
   a lot of sense due to the brim calculation being performed over
   all layers at once and due to future merging of supports of
   different objects at first layer.
2) Because now first_layer_height is print specific, the relative
   first layer height derived from the object layer height was partially
   disabled: First the relative first layer height is converted to
   an absolute value when importing config, second the side text
   was changed from "mm or %" to "mm". Still the UI allows entering %.

Both changes may be controversial, let's wait for user feedback.
2021-04-21 12:09:43 +02:00
49928e131c Added missing include (GCC 9.3) 2021-04-21 06:08:46 +02:00
6be2a1be2c Removed mutable members from class GLVolume 2021-04-20 12:55:23 +02:00
0e3090fb28 Removed mutable members from class GLCanvas3D 2021-04-20 12:16:55 +02:00
b0bb1e7b1d Removed mutable members from class OpenGLManager::GLInfo 2021-04-20 11:42:34 +02:00
453884f908 Check of correct suffix during PrintHostSend dialog. 2021-04-20 09:18:50 +02:00
429675db2d Error appearance of upload notification and dividing lines with lesser impotance of spaces 2021-04-20 09:18:50 +02:00
d7b385f144 compare upload notification by id and not show id in text 2021-04-20 09:18:50 +02:00
fb645c6394 two line text for upload progress bar notification 2021-04-20 09:18:50 +02:00
c140974bf4 Changed ToolpathOuside error notification from plater to slicing error notification type so it is grayed out correctly 2021-04-20 09:18:50 +02:00
9118de4e3c Upload notification text fix 2021-04-20 09:18:50 +02:00
78e61eddf8 typo fix 2021-04-20 09:18:50 +02:00
441cf62ad3 fix of notification states and upload progress bar notification fadeout 2021-04-20 09:18:50 +02:00
3e09334162 Removed mutable members from class Bed3D 2021-04-20 08:53:56 +02:00
dfe926ef63 Info in ObjectList: Added variable layer height 2021-04-19 16:10:40 +02:00
df3fb31268 Info in ObjectList: Settings should be above the new info items, info items are selectable 2021-04-19 16:10:40 +02:00
548ceb7acc Show info about custom supports and seam in ObjectList
Slight refactoring in GLGizmosManager so it is easier to open a gizmo from the ObjectList
2021-04-19 16:10:40 +02:00
4da8de5f49 Removed mutable members from class GLToolbar 2021-04-16 15:49:37 +02:00
4c464b35f9 Removed mutable members from class Selection 2021-04-16 15:25:03 +02:00
a393df59d7 Further refactoring into struct Camera 2021-04-16 14:05:55 +02:00
074a44833e Removed mutable members from struct Camera 2021-04-16 13:44:01 +02:00
dabac92755 Fixed flickering of 3D scene GUI when the scene's bounding box gets very big 2021-04-16 12:49:57 +02:00
66f6c8c786 Fixed conversion to utf8 of strings entered using Custom G-code dialog 2021-04-16 09:48:22 +02:00
48a93e40fb After issuing the color change custom G-code, which is most likely
just M600, reset the internal retract counter, so that a retract
will happen after the firmware returns from M600 to the initial position.

Fixes "Blobs on print after manual color change #6362"
2021-04-15 16:29:30 +02:00
eb428d48fc Merge branch 'master' of https://github.com/Prusa3d/PrusaSlicer 2021-04-15 13:48:29 +02:00
d5ddf8b00e RemovableManager on OSX: Testing for dictionary values for nullness.
Hopefully it fixes Can not start slicer on mac Bigsur #5719
2021-04-15 13:48:20 +02:00
64ec319017 Fix for arrange crash when geometry has zero length segments
fixes #5749
2021-04-15 13:23:35 +02:00
1e69e6def1 Follow-up of 526233ca47 -> Take in account original instances scale factor 2021-04-15 08:41:20 +02:00
526233ca47 Modified version of automatic downscale on load of objects too big 2021-04-14 14:46:49 +02:00
0625788583 Fixed obvious bug in move operator, discovered by clang lint ran by Tamas. 2021-04-14 14:25:30 +02:00
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