3432 Commits

Author SHA1 Message Date
Samir55
737353a85b Refactoring. 2018-07-15 04:34:49 +02:00
Samir55
1ed0191345 Reverting back SupportMaterial.pm 2018-07-11 08:06:23 +02:00
Samir55
4f77048fb5 Porting generate() function. 2018-07-11 08:00:30 +02:00
Samir55
5a2e71283d Porting object_top function. 2018-07-11 05:24:30 +02:00
Samir55
9c8e48595d porting contact_area function. 2018-07-11 02:36:50 +02:00
Samir55
5546d28150 Porting supports_z funtion. 2018-07-10 16:45:03 +02:00
Joseph Lenox
55a4e95b94 Oops, missed a line when editing to use label_printed_objects 2018-07-05 14:49:44 -05:00
Joseph Lenox
75de746431 Added specific option for labelling gcode sections on object change. Finishes implementing #4444
Thanks to @supermerill for the initial implementation.
2018-07-05 13:55:33 -05:00
Merill
89f8623eea CancelObject implementation (#4470)
* CancelObject implementation
activated with "verbose gcode" option

* typo
2018-07-05 13:28:28 -05:00
Michael
65bcaff615 Actually update the print when moving to center (#4465) 2018-07-02 07:00:15 -05:00
Oekn5w
c058ae91d2 Moved resetting parameter of thumbnail generation to on_thumbnail_made (#4443) 2018-06-08 21:51:49 -05:00
Ahmed Samir
1527cfbb26 Allow to set shell thickness for top/bottom layers (#4430)
* Fix a warning in PresetEditor line 806.

* Remove min_shell_thickness from the if condition in  LayerRegion.cpp

* Add missing line in spiral vase check.

* Add initial set top shell thickness.

* Add minimum shell thickness for top/bottom layers.

* Some refactoring.

* Some Fixes.

* revert last change.

* a fix.

* Some refactoring.

* Some fix in calculating solid layers count.

* Refactoring in LayerRegion.cpp, Object.pm and PresetEditor.pm
2018-06-06 19:26:03 -05:00
Joseph Lenox
31ba88eaa4 Fixed typo (missing &) in update 2018-06-05 19:47:39 -05:00
Benjamin Landers
ff3234d8f0 Fixes related to Face Rotation (#4437)
* Adjust size of icon to match others

* Make the rotate button disabled if a face is not selected

* Fix color issue
2018-06-04 20:29:15 -05:00
Benjamin Landers
9856947d45 Rotating face to match plane (#4424)
* Prototype for selecting Face

* Fixed the speed issue - only allocates the array once

* Selecting faces works.

* Add UI elements to run rotate to bed function

(and a bad icon)

* Cleaned up a bit

* Optimized regular frame times (to a decent state) and added TODO for first frame time

* Add rotate face dialog

* Change how coloring for face selection works

* Cleanup according to comments

* Added grouped undos

* Easy fix for variant of #4420

* Added plane selection

* Edited UI labels to be more consistent

* Add a workable rotate face icon
2018-05-31 17:50:40 -05:00
Caroline
f3b590911d Partial implementation #1405: minimum shell thickness option (#3885)
* Added Minimum shell thickness option

-Added the option to libslic3r
-Created some of the necessary checks for illegal values

* Enforce min_shell_thickness as 0 when spiral vase is enabled

-This could be switched to match the extrusion width, but we already know there will only be 1 perimeter so this is probably more logical

* Feature is implemented

-Added a method in PerimeterGenerator to determine the amount of perimeters needed to meet min_shell_thickness

* Added a test in perimeters.t

* Fixed styling as requested

-Removed the magic number in PerimeterGenerator::num_loops()
-Added more test cases in perimeters.t
-Added documentation of the new feature in slic3r.pl and README.md

* Implemented requested changes

-Removed the num_loops function from PerimeterGenerator
-Added a scalled min_shell_thickness variable to PerimeterGenerator
-Changed the loop_number logic to use a previously defined variable loops

* Resolved more implementation issues

-Added min shell to invalidate state method
-Created additional checks in PresetEditor and LayerRegion for min shell
-Fixed the tooltip to be more descriptive
2018-05-22 19:25:02 -04:00
Joseph Lenox
ae7fdfe227 Only match if it's a %. 2018-05-15 22:47:40 -05:00
Joseph Lenox
2d064e2569 Adds validation to ensure that % layer height is not compatible with adaptive slicing. 2018-05-15 19:08:51 -05:00
Joseph Lenox
dbf25fb710
Hotfix Fix typo in hotfix
(validate that % first layer heights are illegal when using adaptive slicing).
2018-05-15 17:47:28 -05:00
Joseph Lenox
f26108ec1a
Hotfix for adaptive slicing 2018-05-15 16:34:10 -05:00
Jacob Greenfield
4fa6251dd5 Pillar config (#4410)
Implements workaround for #4407 

* Added support for pillar size configuration.
* Pillars UI fix
* Pillar configuration fix
* Fixed misspelled variable name.
* Strings are not numbers.
* Fixed pillar spacing label.
2018-05-12 20:03:50 -05:00
platsch
8dc6eca03f Match object top (#4321)
* Fix: don't render layers in spline preview if they are outside the printable / visible region

* Try to reduce / thicken top layer in adaptive slicing mode to better match top of object
2018-05-08 19:39:36 -05:00
Joseph Lenox
bc145c5c73 Use end_gcode, not start_code for determining to append bed cool command. 2018-04-24 19:03:56 -05:00
Joseph Lenox
44dc572bf7 Use heatbed config option to determine whether to auto-include M140 S0 at end. 2018-04-24 19:00:25 -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
c206ae77a3 Checks to see if config option has been changed before going any further for several config options.
N of 1 testing indicates that it may help with latency.
2018-04-17 21:55:44 -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
c3cb01eb93 look for octoprint as a octoprint service, not http.
Reference:
https://github.com/foosel/OctoPrint/wiki/Plugin:-Discovery#zeroconf-service-_octoprint_tcp

Fixes #4375
2018-04-10 17:58:33 -05:00
DN
6454abfd5f Raft pattern angles (#3001) (#4334)
Fixes #3001
2018-04-04 22:43:58 -05:00
Benjamin Landers
331764431e Makes post process scripts able to pass args along with filename (#4363)
Any whitespace is the boundrary between the args/filename. Whitespace can be
escaped by putting a exxclamation point in front of it. And exclamation points
can be escaped by putting an exclamation point in front of the exclamation point
to be escaped.

I thought about adding another box for arguments, but I think that would make it
more confusing to use. The only worry I have with this method is peoples existing
scripts with whitespace in the name.
2018-04-04 22:39:37 -05:00
Gilbert
75302fffc1 Wrong colors in 2d platter and instance color missing (#4354) 2018-04-01 08:00:01 -05:00
Gilbert
ce6b7c8fc2 Solarized Color Scheme (#4322)
* Solarized Color Scheme

* Some color adjustments

* * huge cleanup
* put color scheme defs in seperate file

* Solarize

changed some more colors. more to come?

* save - more colors

* Better scheme handling. LAYERS-Tab still missing.

* More color adjustments.
2D-Plater:
 * Removed grid if no objects are present.
 * Bed has now different color than the background.

* reverted faded background color.

* Added comment to preferences to avoid merge issues.

* added comments

added and changed comments

* * LAYERS tab colorized.
* Better color for support.
* Added comments.

* * forgot to removed/undo comment about keys in 2D - are they documented somewhere?

* * adjusted lighing  - hopefully to the better.
2018-02-26 12:49:42 -06:00
Joseph Lenox
3849e1a0aa Set a sane default for support pillar diameter (1mm). 2018-02-24 23:39:57 -06:00
Joseph Lenox
245aac1172 Make SLAPrintOptions available to Projector through MainFrame. 2018-02-24 23:04:36 -06:00
Gilbert
d194dbbedc Added comments to avoid merge conflicts. (#4301) 2018-02-24 16:11:24 -06:00
Gilbert
ab89469494 Import Config from GCode File (#4316)
* Added comments to avoid merge conflicts.

* Import Config from GCode-File

* undo comments in prefs

* Update MainFrame.pm

* Update MainFrame.pm

consistent code
2018-02-22 18:26:58 -06:00
Joseph Lenox
5fd87dfab8
Update GCode.pm
Missed a call to process() when performing conditional gcode evaluation.
2018-02-20 14:02:31 -06:00
rockandsalt
5f28ee409b added point3 to UI and the required function (#4305) 2018-02-17 22:02:40 -06:00
Gilbert
fd7e71d836 Changed variable_layer_height-icon from cog.png to variable_layer_height.png (#4270) 2018-02-08 16:33:29 -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
Ahmed Samir
1190a74f4e Support moving objects using keyboard arrows in the 2d plater view. (#4104)
* * Add nudge_instance to 2D.pm to move the selected instance.
* Add menu items ->, -<, ^, v keyboards shortcuts.

* Add Set nudge value as a config option in Preferences.

* Add Move instance submenu to Plater menu.

* Add Move instance icon.

* Remove move instance menu item and use EVT_KEY_DOWN instead in 2D.pm.

* Fix selecting objects between 3D and 2D platers.

* Fix Ubuntu keyboard focus error in 2D plater.

* Correct the keycodes in 2D.pm keyboard event.

* Fix Windows keyboard focus error.

* Remove Todo line.

* Adding a minimum value for 2d plater nudege variable and improving keyboard focus in 2D plater.
2018-01-05 20:16:04 -06:00
Joseph Lenox
d8a331fda0 Re-added original on_change hook back onto the optgroup that
contained the extruders so that the state of has_heatbed is
correctly updated.

Fixes #4249
2018-01-02 14:03:21 -06:00
Giles Bathgate
966fd37ea7 Use statusbar to show warnings instead of obtrusive dialog box (#4220) 2017-12-29 19:17:13 -06:00
tmotl
dccb146b4a show close button for the first profile editor tab if controller tab is disabled (#4244) 2017-12-29 19:09:03 -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
Giles Bathgate
d0e2adea4e Ensure that modifiers are aligned to the center of the part. (#4170) 2017-12-21 10:36:50 -06:00
Giles Bathgate
54205b7df6 Fixes the GL_MULTISAMPLE and GL_ARRAY_BUFFER_ARB messages on failed launch (#4230) 2017-12-14 18:57:29 -06:00
Joseph Lenox
576a86d449 Consider filament start gcode when deciding whether or not to prepend heating gcode.
Fixes #4223.
2017-12-10 15:10:33 -06:00