- in Tool Cutout fixed manual adding of gaps with thin gaps and plotting
- in Tool Cutout, when using fix gaps made sure that this feature is not activated if the value is zero
This commit is contained in:
@@ -11,6 +11,8 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
- fixed the Tcl commands AddCircle, AddPolygon, AddPolyline and AddRectangle to have stored bounds therefore making them movable/selectable on canvas
|
- fixed the Tcl commands AddCircle, AddPolygon, AddPolyline and AddRectangle to have stored bounds therefore making them movable/selectable on canvas
|
||||||
- in Tool Cutout, when using the Thin Gaps feature, the resulting geometry loose the extra color by toggling tool plot in Geometry UI Tools Table- fixed
|
- in Tool Cutout, when using the Thin Gaps feature, the resulting geometry loose the extra color by toggling tool plot in Geometry UI Tools Table- fixed
|
||||||
|
- in Tool Cutout fixed manual adding of gaps with thin gaps and plotting
|
||||||
|
- in Tool Cutout, when using fix gaps made sure that this feature is not activated if the value is zero
|
||||||
|
|
||||||
26.08.2020
|
26.08.2020
|
||||||
|
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ class CutOut(AppTool):
|
|||||||
geo = object_geo
|
geo = object_geo
|
||||||
|
|
||||||
solid_geo, rest_geo = cutout_handler(geom=geo)
|
solid_geo, rest_geo = cutout_handler(geom=geo)
|
||||||
if self.ui.thin_cb.get_value():
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
gaps_solid_geo = rest_geo
|
gaps_solid_geo = rest_geo
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
@@ -450,7 +450,7 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
c_geo, r_geo = cutout_handler(geom=geom_struct)
|
c_geo, r_geo = cutout_handler(geom=geom_struct)
|
||||||
solid_geo += c_geo
|
solid_geo += c_geo
|
||||||
if self.ui.thin_cb.get_value():
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
gaps_solid_geo += r_geo
|
gaps_solid_geo += r_geo
|
||||||
|
|
||||||
if not solid_geo:
|
if not solid_geo:
|
||||||
@@ -667,7 +667,7 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
solid_geo = cutout_rect_handler(geom=geo)
|
solid_geo = cutout_rect_handler(geom=geo)
|
||||||
|
|
||||||
if self.ui.thin_cb.get_value():
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
gaps_solid_geo = self.subtract_geo(geo, solid_geo)
|
gaps_solid_geo = self.subtract_geo(geo, solid_geo)
|
||||||
else:
|
else:
|
||||||
if cutout_obj.kind == 'geometry':
|
if cutout_obj.kind == 'geometry':
|
||||||
@@ -683,7 +683,7 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
c_geo = cutout_rect_handler(geom=geom_struct)
|
c_geo = cutout_rect_handler(geom=geom_struct)
|
||||||
solid_geo += c_geo
|
solid_geo += c_geo
|
||||||
if self.ui.thin_cb.get_value():
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
try:
|
try:
|
||||||
gaps_solid_geo += self.subtract_geo(geom_struct, c_geo)
|
gaps_solid_geo += self.subtract_geo(geom_struct, c_geo)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
@@ -703,7 +703,7 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
c_geo = cutout_rect_handler(geom=geom_struct)
|
c_geo = cutout_rect_handler(geom=geom_struct)
|
||||||
solid_geo += c_geo
|
solid_geo += c_geo
|
||||||
if self.ui.thin_cb.get_value():
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
try:
|
try:
|
||||||
gaps_solid_geo += self.subtract_geo(geom_struct, c_geo)
|
gaps_solid_geo += self.subtract_geo(geom_struct, c_geo)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
@@ -845,7 +845,9 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
cut_poly = self.cutting_geo(pos=(snapped_pos[0], snapped_pos[1]))
|
cut_poly = self.cutting_geo(pos=(snapped_pos[0], snapped_pos[1]))
|
||||||
|
|
||||||
gaps_solid_geo = self.intersect_geo(self.manual_solid_geo, cut_poly)
|
gaps_solid_geo = None
|
||||||
|
if self.ui.thin_cb.get_value() and self.ui.thin_depth_entry.get_value() > 0:
|
||||||
|
gaps_solid_geo = self.intersect_geo(self.manual_solid_geo, cut_poly)
|
||||||
|
|
||||||
# first subtract geometry for the total solid_geometry
|
# first subtract geometry for the total solid_geometry
|
||||||
new_solid_geometry = CutOut.subtract_geo(self.man_cutout_obj.solid_geometry, cut_poly)
|
new_solid_geometry = CutOut.subtract_geo(self.man_cutout_obj.solid_geometry, cut_poly)
|
||||||
@@ -1060,6 +1062,9 @@ class CutOut(AppTool):
|
|||||||
# rebuild the manual Geometry object
|
# rebuild the manual Geometry object
|
||||||
self.man_cutout_obj.build_ui()
|
self.man_cutout_obj.build_ui()
|
||||||
|
|
||||||
|
# plot the final object
|
||||||
|
self.man_cutout_obj.plot()
|
||||||
|
|
||||||
def on_mouse_move(self, event):
|
def on_mouse_move(self, event):
|
||||||
|
|
||||||
self.app.on_mouse_move_over_plot(event=event)
|
self.app.on_mouse_move_over_plot(event=event)
|
||||||
|
|||||||
Reference in New Issue
Block a user