1289 Commits

Author SHA1 Message Date
Joseph Lenox
2ec07cb93c Added CATCH v2.2.2 header 2018-04-28 12:32:54 -05:00
Joseph Lenox
8a93fbbd0c Changed a few comments to doxygen format. 2018-04-25 18:50:51 -05:00
Joseph Lenox
5619e41dd1 Reordered initializer list. 2018-04-25 18:50:33 -05:00
Joseph Lenox
7822802550 Rearrange initializer list in constructors to match the class order. 2018-04-25 18:22:52 -05:00
Joseph Lenox
d8a743d177 If M190, M109, M104, or M140 commands are not present in end gcode, append commands to shut off all hotends and the bed (same as start gcode). 2018-04-24 18:35:29 -05:00
Oekn5w
72db3392c8 "Reload from disk" - UI function overhaul (#4388)
* C++ backend work to support reloading modifier files

* UI update preserving configs and volumes of modifiers (those are not reloaded)

* clarifying variable names

* Setting up variables in the GUI enviroment

* Implementation of added variables in (new ModelVolume(*)) funcion

* Implementation of new reload function

* Overhaul of the reload function, also renaming of some variables

* Rewriting the main loop of the reload function, explicitly differentiating between the original file and later added parts and modifiers pointing to other files

* Whitespace cleanup

* Added dialog to choose from different reload behaviors, added hide and default option in preferences, copied volumes are matched the new object's origin translation
2018-04-23 12:04:47 -05:00
Joseph Lenox
7457cfdac2 Outputs (bridge) in verbose gcode if path extruded is marked as bridge. Fixes #4380 2018-04-14 14:52:46 -05:00
Jaggz H
a46aa09755 Added max-support-layers (support_material_max_layers) (#4148)
* Added max-support-layers (support_material_max_layers)
* Revised tooltip text for support_material_max_layers
* Disable support_material_max_layers if no support.
2018-04-14 14:28:55 -05:00
Joseph Lenox
ea29a22cd6 Adds Printer config option to force the use of set-and-wait gcode semantics (if supported by firmware).
Fixes #3268
2018-04-12 21:15:23 -05:00
Joseph Lenox
548ce534ad added another couple tests to catch a few more expressions according to spec. 2018-04-12 20:23:47 -05:00
Joseph Lenox
7b8369d00e Adding a simple test to show that changing the skirt count invalidates the skirt step. 2018-04-03 23:04:44 -05:00
Joseph Lenox
1869b0657d Propagate invalidation results from dependent invalidations. Mostly Fixes #4364 2018-04-03 22:56:49 -05:00
Joseph Lenox
4db029c753 Use the surface thickness if it is available for internal infill, instead of passing the layer height for the flow.
Fixes #4345
2018-04-01 21:03:40 -05:00
Joseph Lenox
db17a63436 Properly retrieve the fill spacing for internal infill. Fixes #4319 2018-04-01 11:53:48 -05:00
Joseph Lenox
245aac1172 Make SLAPrintOptions available to Projector through MainFrame. 2018-02-24 23:04:36 -06:00
Joseph Lenox
976bb5518e Also close the file when we're done writing to it. 2018-02-24 20:38:22 -06:00
Joseph Lenox
6e283f6914 Flush the output buffer when writing svg files from PrintSLA.cpp.
Fixes #4311
2018-02-24 20:36:08 -06:00
Joseph Lenox
d3a3d6d620 Hotfix: Set minimum spacing to 0.3 if the provided configuration option is 0.
Avoids a crash with infill density < 100% on SLA prints.
2018-02-24 20:24:46 -06:00
Merill
113308c317 gyroid infill (#4317)
* Gyroid infill type (from slic3rPE#733)

* adaptation

* debug gyroid

* Change a few comments to be doxygen comments.

* Use doxygen comments.
2018-02-24 17:54:35 -06:00
rockandsalt
5f28ee409b added point3 to UI and the required function (#4305) 2018-02-17 22:02:40 -06:00
Joseph Lenox
05461b8620 Fixing name cases. 2018-02-08 17:20:57 -06:00
Joseph Lenox
9bf13727ad Fix casing of conditional gcode 2018-01-16 20:59:31 -06:00
Joseph Lenox
19ea7a596a
Long retract support in marlin and repetier for FW retract. (#4108)
* For reprap (really Marlin) or Repetier flavors and a toolchange retract, produce G10 S1 instead of G10.

Also refactored comments (were getting eaten by fw retract)

* Fixed tests to check for correct retract gcode output.

* Better reference to scalar.

* Added config checks for if fw tool retracts are in place and firmware is repetier/marlin, disable the advanced option.

* Disable z lift if firmware retraction is enabled.

* With gcode comments on, indicates which extruder Slic3r thinks it is retracting/unretracting.
2018-01-08 15:08:30 -06:00
David Eccles (gringer)
54fe2e4145 Update 3D Honeycomb Infill to switch directions at squares rather than every line (#4049)
* Initial attempt at updated minimal-bridging honeycomb pattern

* Revert, make incremental change of existing code
2018-01-05 20:20:06 -06:00
Joseph Lenox
b6209c4ee3 herp herp derp static methods. 2018-01-05 20:14:30 -06:00
Joseph Lenox
54e86b7307 Reduce bounds on auto width again (the math likes to go very wide which is not feasible if your nozzle isn't really big).
Should address #4212
2018-01-05 20:02:54 -06:00
Joseph Lenox
a1a2a31e77 Use the default extrusion width for the first loaded object if the configured perimeter width and first layer width is 0.
Fixes #4245
2017-12-29 20:12:34 -06:00
platsch
6dd400914e Removed factor 4 from layer height gradation, don't apply min/max layer height limitation after gradation. Fixes #4235 (#4241) 2017-12-21 10:39:47 -06:00
platsch
93c898f4bc apply conditional gcode parser to tool change gcode (#4229)
* apply conditional gcode parser to tool change gcode

* provide [previous_retraction] and [next_retraction] in toolchange gcode and [current_retraction] in layer change gcode
2017-12-21 10:38:17 -06:00
Joseph Lenox
d27b8a933e Revert "Ensure order of operations for calculating min_dz, also apply adjustment to first layer height."
This reverts commit e0a82eee3de44eb83dcd8bdf729b29457ddeac6a.
2017-12-17 19:41:15 -06:00
Joseph Lenox
498ac0c5b6 Revert "Caught another use of z steps per mm that needs to be clear in its application."
This reverts commit 8f26cd7619bed295f114ac279d6d63169086b400.

Fails tests.
2017-12-17 19:40:35 -06:00
Joseph Lenox
8f26cd7619 Caught another use of z steps per mm that needs to be clear in its application.
Fixes #4235
2017-12-16 23:36:53 -06:00
Joseph Lenox
e0a82eee3d Ensure order of operations for calculating min_dz, also apply adjustment to first layer height. 2017-12-16 23:30:33 -06:00
rmx-it
02b5014b57 Fix compiling for FreeBSD (#4188)
Fix compiling at least for FreeBSD 11+
2017-12-07 18:33:21 -06:00
Joseph Lenox
8ca6171a0a Fix test and really emit {} on parse failure. 2017-11-06 22:03:27 -06:00
Joseph Lenox
f7e6d53e06 Allow the use of escaped open/close brackets so that brackets may be emitted in the output (does not permit use of {} inside evaluations).
Fixes behavior to emit brackets on failure.

Fixes #4180
2017-11-06 22:00:21 -06:00
Joseph Lenox
f366700b44 Emit original string on failure to parse. 2017-11-06 21:11:17 -06:00
Joseph Lenox
add2895f38 Commit workaround for #4174 to push brim slightly closer to model. 2017-10-30 16:17:35 -05:00
Joseph Lenox
5499674137 Changed comment to doxygen in BridgeDetector 2017-10-28 13:29:39 -05:00
Joseph Lenox
3a29aeccd9 Fix label for support material interface width. 2017-10-22 23:03:16 -05:00
Joseph Lenox
db2369526b Fix compilation on OSX because clang is specific about default constructors not being specified in exprtk 2017-10-22 19:35:10 -05:00
Can Geliş
a553d6de3d New configuration for support material interface extrusion width (#4086)
* different configuration for support material interface extrusion width

* add test for support material interface extrusion width
2017-10-21 17:16:49 -05:00
Can Geliş
451f2e3914 constant speed for too short displacements (#4088) 2017-10-21 17:14:54 -05:00
Joseph Lenox
e29fbee967 Pull changes to SVG.cpp to (#4144)
* Add lock/unlock using flock() for output gcode files.

* Added description of unsupported_edges() from the cpp

* Ported updates to SVG class from prusa3d/Slic3r. Thanks @bubnikv

* Revert "Add lock/unlock using flock() for output gcode files."

This reverts commit a0d42fe3dcda714a8ccc0230a113ed6f85159e6b.
2017-10-21 17:13:44 -05:00
Can Geliş
b3bd918f29 Fix comparison bw integer and pointer (#4155)
* Fix comparison bw integer and pointer

Error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

* Check for nullptr input string.
2017-10-21 14:58:24 -05:00
Joseph Lenox
202a90ff90 Math evaluation in gcode (#4157)
* Prototype gcode infix math, very basic.

* Adding exprtk math parser library, header only.
@ArashPartow
https://github.com/ArashPartow/exprtk@4e1315a87dcc99a1ccad21fae1def0c2d4913c0f

* Now evaluating strings with exprtk, only support no variables in input
strings.

* Moved executable code to cpp file, stubbed out xsp and let the testing begin...

* Added conditional gcode parser into export path, added tests.

* Added one more test to ensure that {if0} only removes up to newlines.

* Test failure to parse

* Add some compiler flags to compile out stuff from exprtk

* Fix debug messages to be more specific, don't use deleted stringstream = method.

* Trade expression speed for apparently around 50MB of object size.

* Removed an extra trim that was breaking existing tests.

* fix test

Fixes #3390
2017-10-20 21:40:05 -05:00
Shien Yang Lee
dc6cfffae4 Added option to manually reorder sequentially printed objects via plater (#4153)
* Added option to tell Slic3r CLI to not arrange at all.

* Implement manual override to object printing order during sequential printing.

* Undo accidental merge of pull request #4146 from alexrj/Slic3r.git
2017-10-16 23:08:13 -05:00
Can Geliş
a28f431d04 fix acceleration gcode for reprapfirmware (#4083) 2017-10-01 23:25:34 -05:00
Chow Loong Jin
b9592961fa Fix importing of binary STLs in big-endian architectures (#4143)
Fix from https://github.com/admesh/admesh/pull/26
2017-10-01 16:01:51 -05:00
Joseph Lenox
e9c0c93ff1 Address warnings about comparing signed/unsigned integers. 2017-09-28 22:20:30 -05:00