Commits

iorodeo  committed 1e109a1

Fixed issue with tab_adjust_depth for Basic_Enclosure - made it so that it is
only applied to the positive tabs.

  • Participants
  • Parent commits 384cd3c

Comments (0)

Files changed (1)

File py2scad/highlevel.py

             depth_adjust = self.params['tab_depth_adjust']
         except KeyError:
             depth_adjust = 0.0
-        tab_depth = wall_thickness + depth_adjust 
+
+        # Only apply tab depth adjustment to positive tabs
+        tab_depth_pos = wall_thickness + depth_adjust 
+        tab_depth_neg = wall_thickness
 
         # Create tab data for yz faces of side panels
         xz_pos = []
         xz_neg = []
         for loc in self.params['lid2side_tabs']:
-            tab_data = (loc, lid2side_tab_width, tab_depth, '+')
+            tab_data = (loc, lid2side_tab_width, tab_depth_pos, '+')
             xz_pos.append(tab_data)
             xz_neg.append(tab_data)
 
         yz_pos = []
         yz_neg = []
         for loc in self.params['side2side_tabs']:
-            tab_data = (loc, side2side_tab_width, tab_depth, '-')
+            tab_data = (loc, side2side_tab_width, tab_depth_neg, '-')
             yz_pos.append(tab_data)
             yz_neg.append(tab_data)