Commit 66044a53 authored by sumpfralle's avatar sumpfralle

minor fixes for visualization and generation of support grids


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@498 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 04b3740a
......@@ -1429,6 +1429,7 @@ class ProjectGui:
shift_y = -self.model.miny
shift_z = -self.model.minz
self.model.shift(shift_x, shift_y, shift_z)
self.update_support_grid_model()
self.update_view()
def _get_model_center(self):
......@@ -1454,6 +1455,7 @@ class ProjectGui:
old_center = self._get_model_center()
self.model.scale(factor)
self._set_model_center(old_center)
self.update_support_grid_model()
self.update_view()
@gui_activity_guard
......@@ -1499,6 +1501,7 @@ class ProjectGui:
self.model.scale(factor_x, factor_y, factor_z)
# move the model to its previous center
self._set_model_center(old_center)
self.update_support_grid_model()
self.update_view()
def destroy(self, widget=None, data=None):
......@@ -2184,9 +2187,12 @@ class ProjectGui:
# get the support grid options
if self.gui.get_object("SupportGridEnable").get_active():
toolpath_settings.set_support_grid(
self.settings.get("support_grid_distance"),
self.settings.get("support_grid_distance_x"),
self.settings.get("support_grid_distance_y"),
self.settings.get("support_grid_thickness"),
self.settings.get("support_grid_height"))
self.settings.get("support_grid_height"),
self.settings.get("support_grid_offset_x"),
self.settings.get("support_grid_offset_y"))
# calculation backend: ODE / None
if self.settings.get("enable_ode"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment