Commit a3d2592a authored by sumpfralle's avatar sumpfralle

use the lower bounds when previewing the automatic support grid


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@630 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 83ad94bf
...@@ -818,13 +818,20 @@ class ProjectGui: ...@@ -818,13 +818,20 @@ class ProjectGui:
and (s.get("support_grid_height") > 0) \ and (s.get("support_grid_height") > 0) \
and (s.get("support_grid_average_distance") > 0) \ and (s.get("support_grid_average_distance") > 0) \
and (s.get("support_grid_minimum_bridges") > 0): and (s.get("support_grid_minimum_bridges") > 0):
support_grid = pycam.Toolpath.SupportGrid.get_support_distributed( # get the minimum z value of the bounding box
s.get("model"), s.get("minz"), bounds = self.settings.get("current_bounds")
s.get("support_grid_average_distance"), if (bounds is None) and (len(self.bounds_list) > 0):
s.get("support_grid_minimum_bridges"), bounds = self.bounds_list[0]
s.get("support_grid_thickness"), if not bounds is None:
s.get("support_grid_height"), minz = bounds.get_absolute_limits(
s.get("support_grid_length")) reference=self.model.get_bounds())[0][2]
support_grid = pycam.Toolpath.SupportGrid.get_support_distributed(
s.get("model"), minz,
s.get("support_grid_average_distance"),
s.get("support_grid_minimum_bridges"),
s.get("support_grid_thickness"),
s.get("support_grid_height"),
s.get("support_grid_length"))
elif grid_type == GRID_TYPES["none"]: elif grid_type == GRID_TYPES["none"]:
pass pass
s.set("support_grid", support_grid) s.set("support_grid", support_grid)
......
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