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: ...@@ -1429,6 +1429,7 @@ class ProjectGui:
shift_y = -self.model.miny shift_y = -self.model.miny
shift_z = -self.model.minz shift_z = -self.model.minz
self.model.shift(shift_x, shift_y, shift_z) self.model.shift(shift_x, shift_y, shift_z)
self.update_support_grid_model()
self.update_view() self.update_view()
def _get_model_center(self): def _get_model_center(self):
...@@ -1454,6 +1455,7 @@ class ProjectGui: ...@@ -1454,6 +1455,7 @@ class ProjectGui:
old_center = self._get_model_center() old_center = self._get_model_center()
self.model.scale(factor) self.model.scale(factor)
self._set_model_center(old_center) self._set_model_center(old_center)
self.update_support_grid_model()
self.update_view() self.update_view()
@gui_activity_guard @gui_activity_guard
...@@ -1499,6 +1501,7 @@ class ProjectGui: ...@@ -1499,6 +1501,7 @@ class ProjectGui:
self.model.scale(factor_x, factor_y, factor_z) self.model.scale(factor_x, factor_y, factor_z)
# move the model to its previous center # move the model to its previous center
self._set_model_center(old_center) self._set_model_center(old_center)
self.update_support_grid_model()
self.update_view() self.update_view()
def destroy(self, widget=None, data=None): def destroy(self, widget=None, data=None):
...@@ -2184,9 +2187,12 @@ class ProjectGui: ...@@ -2184,9 +2187,12 @@ class ProjectGui:
# get the support grid options # get the support grid options
if self.gui.get_object("SupportGridEnable").get_active(): if self.gui.get_object("SupportGridEnable").get_active():
toolpath_settings.set_support_grid( 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_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 # calculation backend: ODE / None
if self.settings.get("enable_ode"): 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