Merge branch 'master' of github.com:Ultimaker/cura

This commit is contained in:
Aleksei S 2018-05-14 15:04:54 +02:00
commit 8718ee34c9
21 changed files with 58 additions and 102 deletions

View file

@ -151,7 +151,9 @@ class CuraApplication(QtApplication):
Resources.addSearchPath(os.path.join(QtApplication.getInstallPrefix(), "share", "cura", "resources")) Resources.addSearchPath(os.path.join(QtApplication.getInstallPrefix(), "share", "cura", "resources"))
if not hasattr(sys, "frozen"): if not hasattr(sys, "frozen"):
Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "resources")) resource_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "resources")
Resources.addSearchPath(resource_path)
Resources.setBundledResourcesPath(resource_path)
self._use_gui = True self._use_gui = True
self._open_file_queue = [] # Files to open when plug-ins are loaded. self._open_file_queue = [] # Files to open when plug-ins are loaded.
@ -1160,39 +1162,6 @@ class CuraApplication(QtApplication):
Selection.add(node) Selection.add(node)
## Delete all nodes containing mesh data in the scene.
# \param only_selectable. Set this to False to delete objects from all build plates
@pyqtSlot()
def deleteAll(self, only_selectable = True):
Logger.log("i", "Clearing scene")
if not self.getController().getToolsEnabled():
return
nodes = []
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
if not isinstance(node, SceneNode):
continue
if (not node.getMeshData() and not node.callDecoration("getLayerData")) and not node.callDecoration("isGroup"):
continue # Node that doesnt have a mesh and is not a group.
if only_selectable and not node.isSelectable():
continue
if not node.callDecoration("isSliceable") and not node.callDecoration("getLayerData") and not node.callDecoration("isGroup"):
continue # Only remove nodes that are selectable.
if node.getParent() and node.getParent().callDecoration("isGroup"):
continue # Grouped nodes don't need resetting as their parent (the group) is resetted)
nodes.append(node)
if nodes:
op = GroupedOperation()
for node in nodes:
op.addOperation(RemoveSceneNodeOperation(node))
# Reset the print information
self.getController().getScene().sceneChanged.emit(node)
op.push()
Selection.clear()
## Reset all translation on nodes with mesh data. ## Reset all translation on nodes with mesh data.
@pyqtSlot() @pyqtSlot()
def resetAllTranslation(self): def resetAllTranslation(self):

View file

@ -30,9 +30,7 @@ class CuraPackageManager(QObject):
# JSON file that keeps track of all installed packages. # JSON file that keeps track of all installed packages.
self._bundled_package_management_file_path = os.path.join( self._bundled_package_management_file_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.path.abspath(Resources.getBundledResourcesPath()),
"..",
"resources",
"packages.json" "packages.json"
) )
self._user_package_management_file_path = os.path.join( self._user_package_management_file_path = os.path.join(

View file

@ -37,7 +37,7 @@
"overrides": { "overrides": {
"machine_name": { "default_value": "Ultimaker S5" }, "machine_name": { "default_value": "Ultimaker S5" },
"machine_width": { "default_value": 330 }, "machine_width": { "default_value": 330 },
"machine_depth": { "default_value": 245 }, "machine_depth": { "default_value": 240 },
"machine_height": { "default_value": 300 }, "machine_height": { "default_value": 300 },
"machine_heated_bed": { "default_value": true }, "machine_heated_bed": { "default_value": true },
"machine_nozzle_heat_up_speed": { "default_value": 1.4 }, "machine_nozzle_heat_up_speed": { "default_value": 1.4 },

View file

@ -25,11 +25,11 @@ jerk_enabled = True
jerk_print = 25 jerk_print = 25
line_width = =machine_nozzle_size * 0.92 line_width = =machine_nozzle_size * 0.92
machine_min_cool_heat_time_window = 15 machine_min_cool_heat_time_window = 15
material_bed_temperature_layer_0 = 90 material_bed_temperature_layer_0 = =material_bed_temperature + 5
material_final_print_temperature = 195 material_final_print_temperature = =material_print_temperature - 10
material_initial_print_temperature = 200 material_initial_print_temperature = =material_print_temperature - 5
material_print_temperature = 205 material_print_temperature = =default_material_print_temperature - 15
material_print_temperature_layer_0 = 208 material_print_temperature_layer_0 = =material_print_temperature + 3
multiple_mesh_overlap = 0 multiple_mesh_overlap = 0
prime_tower_enable = False prime_tower_enable = False
prime_tower_size = 16 prime_tower_size = 16

View file

@ -26,5 +26,6 @@ speed_wall = =math.ceil(speed_print * 45 / 60)
speed_wall_0 = =math.ceil(speed_wall * 35 / 45) speed_wall_0 = =math.ceil(speed_wall * 35 / 45)
wall_thickness = 1 wall_thickness = 1
infill_line_width = 0.4 infill_line_width = =round(line_width * 0.4 / 0.35, 2)
speed_infill = 50 speed_infill = =math.ceil(speed_print * 50 / 60)

View file

@ -25,5 +25,6 @@ speed_topbottom = =math.ceil(speed_print * 30 / 60)
speed_wall = =math.ceil(speed_print * 40 / 60) speed_wall = =math.ceil(speed_print * 40 / 60)
speed_wall_0 = =math.ceil(speed_wall * 30 / 40) speed_wall_0 = =math.ceil(speed_wall * 30 / 40)
infill_line_width = 0.4 infill_line_width = =round(line_width * 0.4 / 0.35, 2)
speed_infill = 45 speed_infill = =math.ceil(speed_print * 45 / 60)

View file

@ -24,5 +24,6 @@ speed_layer_0 = 20
speed_topbottom = =math.ceil(speed_print * 30 / 50) speed_topbottom = =math.ceil(speed_print * 30 / 50)
speed_wall = =math.ceil(speed_print * 30 / 50) speed_wall = =math.ceil(speed_print * 30 / 50)
infill_line_width = 0.4 infill_line_width = =round(line_width * 0.4 / 0.35, 2)
speed_infill = 40 speed_infill = =math.ceil(speed_print * 40 / 50)

View file

@ -23,5 +23,5 @@ speed_layer_0 = 20
speed_topbottom = =math.ceil(speed_print * 30 / 55) speed_topbottom = =math.ceil(speed_print * 30 / 55)
speed_wall = =math.ceil(speed_print * 30 / 55) speed_wall = =math.ceil(speed_print * 30 / 55)
infill_line_width = 0.4 infill_line_width = =round(line_width * 0.4 / 0.35, 2)
speed_infill = 40 speed_infill = =math.ceil(speed_print * 40 / 55)

View file

@ -23,8 +23,7 @@ speed_wall = =math.ceil(speed_print * 45 / 60)
speed_wall_0 = =math.ceil(speed_wall * 35 / 45) speed_wall_0 = =math.ceil(speed_wall * 35 / 45)
wall_thickness = 1 wall_thickness = 1
jerk_travel = 50
infill_pattern = zigzag infill_pattern = zigzag
speed_infill = 50 speed_infill = =math.ceil(speed_print * 50 / 60)
prime_tower_purge_volume = 1 prime_tower_purge_volume = 1

View file

@ -22,8 +22,6 @@ speed_topbottom = =math.ceil(speed_print * 30 / 60)
speed_wall = =math.ceil(speed_print * 40 / 60) speed_wall = =math.ceil(speed_print * 40 / 60)
speed_wall_0 = =math.ceil(speed_wall * 30 / 40) speed_wall_0 = =math.ceil(speed_wall * 30 / 40)
jerk_travel = 50
infill_pattern = zigzag infill_pattern = zigzag
speed_infill = 50 speed_infill = =math.ceil(speed_print * 50 / 60)
prime_tower_purge_volume = 1 prime_tower_purge_volume = 1

View file

@ -23,8 +23,6 @@ speed_layer_0 = 20
speed_topbottom = =math.ceil(speed_print * 30 / 50) speed_topbottom = =math.ceil(speed_print * 30 / 50)
speed_wall = =math.ceil(speed_print * 30 / 50) speed_wall = =math.ceil(speed_print * 30 / 50)
jerk_travel = 50
infill_pattern = zigzag infill_pattern = zigzag
speed_infill = 40 speed_infill = =math.ceil(speed_print * 40 / 50)
prime_tower_purge_volume = 1 prime_tower_purge_volume = 1

View file

@ -21,8 +21,6 @@ speed_layer_0 = 20
speed_topbottom = =math.ceil(speed_print * 30 / 55) speed_topbottom = =math.ceil(speed_print * 30 / 55)
speed_wall = =math.ceil(speed_print * 30 / 55) speed_wall = =math.ceil(speed_print * 30 / 55)
jerk_travel = 50
infill_pattern = zigzag infill_pattern = zigzag
speed_infill = 45 speed_infill = =math.ceil(speed_print * 45 / 55)
prime_tower_purge_volume = 1 prime_tower_purge_volume = 1

View file

@ -29,11 +29,11 @@ line_width = =machine_nozzle_size * 0.95
machine_min_cool_heat_time_window = 15 machine_min_cool_heat_time_window = 15
machine_nozzle_cool_down_speed = 0.85 machine_nozzle_cool_down_speed = 0.85
machine_nozzle_heat_up_speed = 1.5 machine_nozzle_heat_up_speed = 1.5
material_bed_temperature_layer_0 = 95 material_bed_temperature_layer_0 = =material_bed_temperature + 5
material_final_print_temperature = 205 material_final_print_temperature = =material_print_temperature - 10
material_initial_print_temperature = 210 material_initial_print_temperature = =material_print_temperature - 5
material_print_temperature = 215 material_print_temperature = =default_material_print_temperature - 5
material_print_temperature_layer_0 = 220 material_print_temperature_layer_0 = =material_print_temperature + 5
material_standby_temperature = 100 material_standby_temperature = 100
multiple_mesh_overlap = 0 multiple_mesh_overlap = 0
prime_tower_enable = False prime_tower_enable = False

View file

@ -29,11 +29,11 @@ line_width = =machine_nozzle_size * 0.95
machine_min_cool_heat_time_window = 15 machine_min_cool_heat_time_window = 15
machine_nozzle_cool_down_speed = 0.85 machine_nozzle_cool_down_speed = 0.85
machine_nozzle_heat_up_speed = 1.5 machine_nozzle_heat_up_speed = 1.5
material_bed_temperature_layer_0 = 95 material_bed_temperature_layer_0 = =material_bed_temperature + 5
material_final_print_temperature = 195 material_final_print_temperature = =material_print_temperature - 12
material_initial_print_temperature = 205 material_initial_print_temperature = =material_print_temperature - 2
material_print_temperature = 207 material_print_temperature = =default_material_print_temperature - 13
material_print_temperature_layer_0 = 210 material_print_temperature_layer_0 = =material_print_temperature + 3
material_standby_temperature = 100 material_standby_temperature = 100
multiple_mesh_overlap = 0 multiple_mesh_overlap = 0
prime_tower_enable = False prime_tower_enable = False

View file

@ -29,11 +29,11 @@ line_width = =machine_nozzle_size * 0.95
machine_min_cool_heat_time_window = 15 machine_min_cool_heat_time_window = 15
machine_nozzle_cool_down_speed = 0.85 machine_nozzle_cool_down_speed = 0.85
machine_nozzle_heat_up_speed = 1.5 machine_nozzle_heat_up_speed = 1.5
material_bed_temperature_layer_0 = 95 material_bed_temperature_layer_0 = =material_bed_temperature + 5
material_final_print_temperature = 195 material_final_print_temperature = =material_print_temperature - 10
material_initial_print_temperature = 200 material_initial_print_temperature = =material_print_temperature - 5
material_print_temperature = 205 material_print_temperature = =default_material_print_temperature - 15
material_print_temperature_layer_0 = 208 material_print_temperature_layer_0 = =material_print_temperature + 3
material_standby_temperature = 100 material_standby_temperature = 100
multiple_mesh_overlap = 0 multiple_mesh_overlap = 0
prime_tower_enable = False prime_tower_enable = False

View file

@ -18,6 +18,7 @@ brim_width = 8.75
cool_fan_speed_max = 100 cool_fan_speed_max = 100
cool_min_layer_time_fan_speed_max = 6 cool_min_layer_time_fan_speed_max = 6
cool_min_speed = 4 cool_min_speed = 4
gradual_infill_step_height = =5 * layer_height
infill_line_width = =round(line_width * 0.38 / 0.38, 2) infill_line_width = =round(line_width * 0.38 / 0.38, 2)
infill_overlap = 0 infill_overlap = 0
infill_pattern = cross_3d infill_pattern = cross_3d
@ -40,7 +41,6 @@ prime_tower_wipe_enabled = True
retraction_count_max = 12 retraction_count_max = 12
retraction_extra_prime_amount = 0.8 retraction_extra_prime_amount = 0.8
retraction_extrusion_window = 1 retraction_extrusion_window = 1
retraction_hop = 1.5
retraction_hop_only_when_collides = True retraction_hop_only_when_collides = True
retraction_min_travel = =line_width * 2 retraction_min_travel = =line_width * 2
retraction_prime_speed = 15 retraction_prime_speed = 15
@ -61,5 +61,3 @@ travel_avoid_distance = 1.5
wall_0_inset = 0 wall_0_inset = 0
wall_line_width_x = =line_width wall_line_width_x = =line_width
wall_thickness = 0.76 wall_thickness = 0.76
jerk_travel = 50

View file

@ -18,6 +18,7 @@ brim_width = 8.75
cool_fan_speed_max = 100 cool_fan_speed_max = 100
cool_min_layer_time_fan_speed_max = 6 cool_min_layer_time_fan_speed_max = 6
cool_min_speed = 4 cool_min_speed = 4
gradual_infill_step_height = =5 * layer_height
infill_line_width = =round(line_width * 0.38 / 0.38, 2) infill_line_width = =round(line_width * 0.38 / 0.38, 2)
infill_overlap = 0 infill_overlap = 0
infill_pattern = cross_3d infill_pattern = cross_3d
@ -40,7 +41,6 @@ prime_tower_wipe_enabled = True
retraction_count_max = 12 retraction_count_max = 12
retraction_extra_prime_amount = 0.8 retraction_extra_prime_amount = 0.8
retraction_extrusion_window = 1 retraction_extrusion_window = 1
retraction_hop = 1.5
retraction_hop_only_when_collides = True retraction_hop_only_when_collides = True
retraction_min_travel = =line_width * 2 retraction_min_travel = =line_width * 2
retraction_prime_speed = 15 retraction_prime_speed = 15
@ -62,4 +62,3 @@ wall_0_inset = 0
wall_line_width_x = =line_width wall_line_width_x = =line_width
wall_thickness = 0.76 wall_thickness = 0.76
jerk_travel = 50

View file

@ -18,6 +18,7 @@ brim_width = 8.75
cool_fan_speed_max = 100 cool_fan_speed_max = 100
cool_min_layer_time_fan_speed_max = 6 cool_min_layer_time_fan_speed_max = 6
cool_min_speed = 4 cool_min_speed = 4
gradual_infill_step_height = =5 * layer_height
infill_line_width = =round(line_width * 0.38 / 0.38, 2) infill_line_width = =round(line_width * 0.38 / 0.38, 2)
infill_overlap = 0 infill_overlap = 0
infill_pattern = cross_3d infill_pattern = cross_3d
@ -39,7 +40,6 @@ prime_tower_wipe_enabled = True
retraction_count_max = 12 retraction_count_max = 12
retraction_extra_prime_amount = 0.8 retraction_extra_prime_amount = 0.8
retraction_extrusion_window = 1 retraction_extrusion_window = 1
retraction_hop = 1.5
retraction_hop_only_when_collides = True retraction_hop_only_when_collides = True
retraction_min_travel = =line_width * 2 retraction_min_travel = =line_width * 2
retraction_prime_speed = 15 retraction_prime_speed = 15
@ -61,4 +61,3 @@ wall_0_inset = 0
wall_line_width_x = =line_width wall_line_width_x = =line_width
wall_thickness = 0.76 wall_thickness = 0.76
jerk_travel = 50

View file

@ -17,17 +17,15 @@ cool_fan_speed_max = =100
cool_min_speed = 2 cool_min_speed = 2
gradual_infill_step_height = =3 * layer_height gradual_infill_step_height = =3 * layer_height
infill_line_width = =round(line_width * 0.65 / 0.75, 2) infill_line_width = =round(line_width * 0.65 / 0.75, 2)
infill_pattern = cubic
line_width = =machine_nozzle_size * 0.9375 line_width = =machine_nozzle_size * 0.9375
machine_nozzle_cool_down_speed = 0.75 machine_nozzle_cool_down_speed = 0.75
machine_nozzle_heat_up_speed = 1.6 machine_nozzle_heat_up_speed = 1.6
material_final_print_temperature = =max(-273.15, material_print_temperature - 15) material_final_print_temperature = =max(-273.15, material_print_temperature - 15)
material_initial_print_temperature = =max(-273.15, material_print_temperature - 10) material_initial_print_temperature = =max(-273.15, material_print_temperature - 10)
material_print_temperature = =default_material_print_temperature + 10 material_print_temperature = =default_material_print_temperature + 10
prime_tower_enable = False prime_tower_enable = True
support_angle = 70 support_angle = 70
support_line_width = =line_width * 0.75 support_line_width = =line_width * 0.75
support_pattern = ='triangles'
support_xy_distance = =wall_line_width_0 * 1.5 support_xy_distance = =wall_line_width_0 * 1.5
top_bottom_thickness = =layer_height * 4 top_bottom_thickness = =layer_height * 4
wall_line_width = =round(line_width * 0.75 / 0.75, 2) wall_line_width = =round(line_width * 0.75 / 0.75, 2)
@ -36,8 +34,9 @@ wall_thickness = =wall_line_width_0 + wall_line_width_x
retract_at_layer_change = False retract_at_layer_change = False
speed_print = 45 speed_print = 45
speed_wall = =round(speed_print * 40 / 45) speed_topbottom = =math.ceil(speed_print * 35 / 45)
speed_wall_0 = =round(speed_print * 35 / 45) speed_wall = =math.ceil(speed_print * 40 / 45)
speed_topbottom = =round(speed_print * 35 / 45) speed_wall_x = =speed_wall
speed_wall_0 = =math.ceil(speed_wall * 35 / 40)
infill_sparse_density = 15 infill_sparse_density = 15
layer_height_0 = 0.4 layer_height_0 = 0.4

View file

@ -17,18 +17,16 @@ cool_fan_speed_max = =100
cool_min_speed = 2 cool_min_speed = 2
gradual_infill_step_height = =3 * layer_height gradual_infill_step_height = =3 * layer_height
infill_line_width = =round(line_width * 0.65 / 0.75, 2) infill_line_width = =round(line_width * 0.65 / 0.75, 2)
infill_pattern = cubic
line_width = =machine_nozzle_size * 0.9375 line_width = =machine_nozzle_size * 0.9375
machine_nozzle_cool_down_speed = 0.75 machine_nozzle_cool_down_speed = 0.75
machine_nozzle_heat_up_speed = 1.6 machine_nozzle_heat_up_speed = 1.6
material_final_print_temperature = =max(-273.15, material_print_temperature - 15) material_final_print_temperature = =max(-273.15, material_print_temperature - 15)
material_initial_print_temperature = =max(-273.15, material_print_temperature - 10) material_initial_print_temperature = =max(-273.15, material_print_temperature - 10)
material_print_temperature = =default_material_print_temperature + 15 material_print_temperature = =default_material_print_temperature + 15
prime_tower_enable = False prime_tower_enable = True
raft_margin = 10 raft_margin = 10
support_angle = 70 support_angle = 70
support_line_width = =line_width * 0.75 support_line_width = =line_width * 0.75
support_pattern = ='triangles'
support_xy_distance = =wall_line_width_0 * 1.5 support_xy_distance = =wall_line_width_0 * 1.5
top_bottom_thickness = =layer_height * 4 top_bottom_thickness = =layer_height * 4
wall_line_width = =round(line_width * 0.75 / 0.75, 2) wall_line_width = =round(line_width * 0.75 / 0.75, 2)
@ -36,8 +34,9 @@ wall_line_width_x = =round(wall_line_width * 0.625 / 0.75, 2)
wall_thickness = =wall_line_width_0 + wall_line_width_x wall_thickness = =wall_line_width_0 + wall_line_width_x
retract_at_layer_change = False retract_at_layer_change = False
speed_print = 45 speed_print = 45
speed_wall = =round(speed_print * 40 / 45) speed_topbottom = =math.ceil(speed_print * 35 / 45)
speed_wall_0 = =round(speed_print * 35 / 45) speed_wall = =math.ceil(speed_print * 40 / 45)
speed_topbottom = =round(speed_print * 35 / 45) speed_wall_x = =speed_wall
speed_wall_0 = =math.ceil(speed_wall * 35 / 40)
infill_sparse_density = 15 infill_sparse_density = 15
layer_height_0 = 0.4 layer_height_0 = 0.4

View file

@ -17,17 +17,15 @@ cool_fan_speed_max = =100
cool_min_speed = 2 cool_min_speed = 2
gradual_infill_step_height = =3 * layer_height gradual_infill_step_height = =3 * layer_height
infill_line_width = =round(line_width * 0.65 / 0.75, 2) infill_line_width = =round(line_width * 0.65 / 0.75, 2)
infill_pattern = cubic
line_width = =machine_nozzle_size * 0.9375 line_width = =machine_nozzle_size * 0.9375
machine_nozzle_cool_down_speed = 0.75 machine_nozzle_cool_down_speed = 0.75
machine_nozzle_heat_up_speed = 1.6 machine_nozzle_heat_up_speed = 1.6
material_final_print_temperature = =max(-273.15, material_print_temperature - 15) material_final_print_temperature = =max(-273.15, material_print_temperature - 15)
material_initial_print_temperature = =max(-273.15, material_print_temperature - 10) material_initial_print_temperature = =max(-273.15, material_print_temperature - 10)
material_print_temperature = =default_material_print_temperature + 10 material_print_temperature = =default_material_print_temperature + 10
prime_tower_enable = False prime_tower_enable = True
support_angle = 70 support_angle = 70
support_line_width = =line_width * 0.75 support_line_width = =line_width * 0.75
support_pattern = ='triangles'
support_xy_distance = =wall_line_width_0 * 1.5 support_xy_distance = =wall_line_width_0 * 1.5
top_bottom_thickness = =layer_height * 4 top_bottom_thickness = =layer_height * 4
wall_line_width = =round(line_width * 0.75 / 0.75, 2) wall_line_width = =round(line_width * 0.75 / 0.75, 2)
@ -35,8 +33,9 @@ wall_line_width_x = =round(wall_line_width * 0.625 / 0.75, 2)
wall_thickness = =wall_line_width_0 + wall_line_width_x wall_thickness = =wall_line_width_0 + wall_line_width_x
retract_at_layer_change = False retract_at_layer_change = False
speed_print = 45 speed_print = 45
speed_wall = =round(speed_print * 40 / 45) speed_topbottom = =math.ceil(speed_print * 35 / 45)
speed_wall_0 = =round(speed_print * 35 / 45) speed_wall = =math.ceil(speed_print * 40 / 45)
speed_topbottom = =round(speed_print * 35 / 45) speed_wall_x = =speed_wall
speed_wall_0 = =math.ceil(speed_wall * 35 / 40)
infill_sparse_density = 15 infill_sparse_density = 15
layer_height_0 = 0.4 layer_height_0 = 0.4