From 7d7e0a5c9f8d85cedd31cb5b6c3be0fe73bfef7f Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 20 Feb 2022 21:18:28 +0100 Subject: [PATCH] Move all Slatwall generators to new WallEdges infrastructure Add "plain" and "plain reenforced" wall styles with straight back --- boxes/generators/__init__.py | 2 +- ...lcaliperholder.py => wallcaliperholder.py} | 20 +++++--------- ...allchiselholder.py => wallchiselholder.py} | 25 ++++++------------ .../{slatwallconsole.py => wallconsole.py} | 18 ++++--------- .../{slatwalldrillbox.py => walldrillbox.py} | 16 +++-------- .../generators/{slatwall.py => walledges.py} | 21 +++++---------- .../{slatwallpinrow.py => wallpinrow.py} | 18 ++++--------- ...twallplaneholder.py => wallplaneholder.py} | 18 ++++--------- ...allpliersholder.py => wallpliersholder.py} | 16 ++++------- ...lslottedholder.py => wallslottedholder.py} | 25 ++++++------------ .../{slatwallstairs.py => wallstairs.py} | 16 +++-------- .../{slatwalltypetray.py => walltypetray.py} | 16 +++-------- ...allwrenchholder.py => wallwrenchholder.py} | 17 ++++-------- ...aliper-thumb.jpg => WallCaliper-thumb.jpg} | Bin .../{SlatwallCaliper.jpg => WallCaliper.jpg} | Bin ...llBox-thumb.jpg => WallDrillBox-thumb.jpg} | Bin ...{SlatwallDrillBox.jpg => WallDrillBox.jpg} | Bin ...r-thumb.jpg => WallPliersHolder-thumb.jpg} | Bin ...lPliersHolder.jpg => WallPliersHolder.jpg} | Bin ...-thumb.jpg => WallSlottedHolder-thumb.jpg} | Bin ...lottedHolder.jpg => WallSlottedHolder.jpg} | Bin ...eTray-thumb.jpg => WallTypeTray-thumb.jpg} | Bin ...{SlatwallTypeTray.jpg => WallTypeTray.jpg} | Bin static/samples/samples.sha256 | 10 +++---- 24 files changed, 71 insertions(+), 167 deletions(-) rename boxes/generators/{slatwallcaliperholder.py => wallcaliperholder.py} (75%) rename boxes/generators/{slotwallchiselholder.py => wallchiselholder.py} (84%) rename boxes/generators/{slatwallconsole.py => wallconsole.py} (81%) rename boxes/generators/{slatwalldrillbox.py => walldrillbox.py} (80%) rename boxes/generators/{slatwall.py => walledges.py} (69%) rename boxes/generators/{slatwallpinrow.py => wallpinrow.py} (91%) rename boxes/generators/{slatwallplaneholder.py => wallplaneholder.py} (82%) rename boxes/generators/{slatwallpliersholder.py => wallpliersholder.py} (88%) rename boxes/generators/{slatwallslottedholder.py => wallslottedholder.py} (85%) rename boxes/generators/{slatwallstairs.py => wallstairs.py} (86%) rename boxes/generators/{slatwalltypetray.py => walltypetray.py} (90%) rename boxes/generators/{slatwallwrenchholder.py => wallwrenchholder.py} (87%) rename static/samples/{SlatwallCaliper-thumb.jpg => WallCaliper-thumb.jpg} (100%) rename static/samples/{SlatwallCaliper.jpg => WallCaliper.jpg} (100%) rename static/samples/{SlatwallDrillBox-thumb.jpg => WallDrillBox-thumb.jpg} (100%) rename static/samples/{SlatwallDrillBox.jpg => WallDrillBox.jpg} (100%) rename static/samples/{SlatwallPliersHolder-thumb.jpg => WallPliersHolder-thumb.jpg} (100%) rename static/samples/{SlatwallPliersHolder.jpg => WallPliersHolder.jpg} (100%) rename static/samples/{SlatwallSlottedHolder-thumb.jpg => WallSlottedHolder-thumb.jpg} (100%) rename static/samples/{SlatwallSlottedHolder.jpg => WallSlottedHolder.jpg} (100%) rename static/samples/{SlatwallTypeTray-thumb.jpg => WallTypeTray-thumb.jpg} (100%) rename static/samples/{SlatwallTypeTray.jpg => WallTypeTray.jpg} (100%) diff --git a/boxes/generators/__init__.py b/boxes/generators/__init__.py index 0db58ce..add5b03 100644 --- a/boxes/generators/__init__.py +++ b/boxes/generators/__init__.py @@ -33,7 +33,7 @@ ui_groups = [ UIGroup("FlexBox", "Boxes with flex", image="RoundedBox"), UIGroup("Tray", "Trays and Drawer Inserts", image="TypeTray"), UIGroup("Shelf", "Shelves", image="DisplayShelf"), - UIGroup("SlatWall", image="SlatwallTypeTray"), + UIGroup("WallMounted", image="WallTypeTray"), UIGroup("Holes", "Hole patterns", image=""), UIGroup("Part", "Parts and Samples", image="BurnTest"), UIGroup("Misc", image="TrafficLight"), diff --git a/boxes/generators/slatwallcaliperholder.py b/boxes/generators/wallcaliperholder.py similarity index 75% rename from boxes/generators/slatwallcaliperholder.py rename to boxes/generators/wallcaliperholder.py index 122f513..0a5e59a 100644 --- a/boxes/generators/slatwallcaliperholder.py +++ b/boxes/generators/wallcaliperholder.py @@ -15,17 +15,13 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox -class SlatwallCaliper(Boxes): - """Holds a single caliper to a slat wall""" - - ui_group = "SlatWall" +class WallCaliper(WallMountedBox): + """Holds a single caliper to a wall""" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() # remove cli params you do not need self.buildArgParser(h=100) @@ -56,11 +52,7 @@ class SlatwallCaliper(Boxes): self.move(tw, h, move) def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() t = self.thickness h = self.h @@ -70,4 +62,4 @@ class SlatwallCaliper(Boxes): w = self.width self.flangedWall(w, h, flanges=[0, 2*t, 0, 2*t], edges="eeee", r=2*t, - callback=[lambda:(self.slatWallHolesAt(1.5*t, 0, h, 90), self.slatWallHolesAt(w+2.5*t, 0, h, 90))]) + callback=[lambda:(self.wallHolesAt(1.5*t, 0, h, 90), self.wallHolesAt(w+2.5*t, 0, h, 90))]) diff --git a/boxes/generators/slotwallchiselholder.py b/boxes/generators/wallchiselholder.py similarity index 84% rename from boxes/generators/slotwallchiselholder.py rename to boxes/generators/wallchiselholder.py index 9a7fce8..40dd126 100644 --- a/boxes/generators/slotwallchiselholder.py +++ b/boxes/generators/wallchiselholder.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox class FrontEdge(edges.Edge): @@ -32,16 +33,11 @@ class FrontEdge(edges.Edge): -class SlatwallChiselHolder(Boxes): - """Slat wall tool holder for chisels, files and similar tools""" - - ui_group = "SlatWall" +class WallChiselHolder(WallMountedBox): + """Wall tool holder for chisels, files and similar tools""" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=1.0) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.buildArgParser(h=120) @@ -92,12 +88,12 @@ class SlatwallChiselHolder(Boxes): t = self.thickness d = min(2*t, (wt-rt)/4.) - self.slatWallHolesAt(d, 0, self.h, 90) - self.slatWallHolesAt(n*wt-d, 0, self.h, 90) + self.wallHolesAt(d, 0, self.h, 90) + self.wallHolesAt(n*wt-d, 0, self.h, 90) for i in range(1, n): if self.brace(i): - self.slatWallHolesAt(i*wt, 0, self.h, 90) + self.wallHolesAt(i*wt, 0, self.h, 90) def topCB(self): n = self.number @@ -115,12 +111,7 @@ class SlatwallChiselHolder(Boxes): self.fingerHolesAt(i*wt, 0, l, 90) def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) - + self.generateWallEdges() t = self.thickness wt = self.tooldiameter diff --git a/boxes/generators/slatwallconsole.py b/boxes/generators/wallconsole.py similarity index 81% rename from boxes/generators/slatwallconsole.py rename to boxes/generators/wallconsole.py index 912c486..f07490a 100644 --- a/boxes/generators/slatwallconsole.py +++ b/boxes/generators/wallconsole.py @@ -15,17 +15,13 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox -class SlatwallConsole(Boxes): +class WallConsole(WallMountedBox): """Outset and angled plate to mount stuff to""" - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.buildArgParser(sx=100, h=100, outside=True) @@ -40,7 +36,7 @@ class SlatwallConsole(Boxes): posx = -0.5 * self.thickness for x in self.sx[:-1]: posx += x + self.thickness - self.slatWallHolesAt(posx, 0, self.h, 90) + self.wallHolesAt(posx, 0, self.h, 90) def frontHoles(self): posx = -0.5 * self.thickness @@ -49,12 +45,8 @@ class SlatwallConsole(Boxes): self.fingerHolesAt(posx, 0, self.front, 90) def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() if self.outside: self.sx = self.adjustSize(self.sx) diff --git a/boxes/generators/slatwalldrillbox.py b/boxes/generators/walldrillbox.py similarity index 80% rename from boxes/generators/slatwalldrillbox.py rename to boxes/generators/walldrillbox.py index 5b0e659..062b0f1 100644 --- a/boxes/generators/slatwalldrillbox.py +++ b/boxes/generators/walldrillbox.py @@ -16,17 +16,13 @@ from boxes import * from .drillstand import DrillStand +from boxes.walledges import WallMountedBox -class SlatwallDrillBox(DrillStand): +class WallDrillBox(WallMountedBox, DrillStand): """Box for drills with each compartment with a different height""" - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.buildArgParser(sx="25*6", sy="10:20:30", sh="25:40:60") self.argparser.add_argument( @@ -34,11 +30,7 @@ class SlatwallDrillBox(DrillStand): help="height difference left to right") def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() t = self.thickness sx, sy, sh = self.sx, self.sy, self.sh diff --git a/boxes/generators/slatwall.py b/boxes/generators/walledges.py similarity index 69% rename from boxes/generators/slatwall.py rename to boxes/generators/walledges.py index f236fbb..8947601 100644 --- a/boxes/generators/slatwall.py +++ b/boxes/generators/walledges.py @@ -15,32 +15,23 @@ # along with this program. If not, see . from boxes import * -from boxes import walledges +from boxes.walledges import WallMountedBox -class SlatwallEdges(Boxes): - """Shows the different edge types for slat walls""" - - ui_group = "SlatWall" # see ./__init__.py for names +class WallEdges(WallMountedBox): + """Shows the different edge types for wall systems""" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(walledges.SlatWallSettings) + super().__init__() self.buildArgParser(h=120) def render(self): - - s = walledges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.wallHolesAt = self.edges["|"] + self.generateWallEdges() h = self.h for i, c in enumerate("aAbBcCdD"): self.text(c, x=i*30+15, y=5) - self.text("slatWallHolesAt", 115, 15) + self.text("wallHolesAt", 115, 15) self.moveTo(0, 25) self.rectangularWall(40, h, "eAea", move="right") self.rectangularWall(40, h, "eBeb", move="right") diff --git a/boxes/generators/slatwallpinrow.py b/boxes/generators/wallpinrow.py similarity index 91% rename from boxes/generators/slatwallpinrow.py rename to boxes/generators/wallpinrow.py index 84a7066..44fe5b1 100644 --- a/boxes/generators/slatwallpinrow.py +++ b/boxes/generators/wallpinrow.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox class PinEdge(edges.BaseEdge): def __call__(self, length, **kw): @@ -36,16 +37,11 @@ class PinEdge(edges.BaseEdge): def margin(self): return self.settings.thickness+self.settings.pinlength -class SlatwallPinRow(Boxes): +class WallPinRow(WallMountedBox): """Outset and angled plate to mount stuff to""" - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=0.0) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.argparser.add_argument( "--pins", action="store", type=int, default=8, @@ -68,7 +64,7 @@ class SlatwallPinRow(Boxes): self.argparser.add_argument( "--hooks", action="store", type=int, default=3, - help="number of hooks into the slatwall") + help="number of hooks into the wall") self.argparser.add_argument( "--h", action="store", type=float, default=50.0, help="height of the front plate (in mm) - needs to be at least 7 time the thickness") @@ -158,11 +154,7 @@ class SlatwallPinRow(Boxes): def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() p = PinEdge(self, self) n = self.pins diff --git a/boxes/generators/slatwallplaneholder.py b/boxes/generators/wallplaneholder.py similarity index 82% rename from boxes/generators/slatwallplaneholder.py rename to boxes/generators/wallplaneholder.py index 57fceae..d4a39f7 100644 --- a/boxes/generators/slatwallplaneholder.py +++ b/boxes/generators/wallplaneholder.py @@ -15,17 +15,13 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox -class SlatwallPlaneHolder(Boxes): - """Hold a plane to a slatwall""" - - ui_group = "SlatWall" +class WallPlaneHolder(WallMountedBox): + """Hold a plane to a wall""" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.argparser.add_argument( "--width", action="store", type=float, default=80, @@ -50,11 +46,7 @@ class SlatwallPlaneHolder(Boxes): self.fingerHolesAt(2*t, 1.5*t, h+2*t, 0) def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() l, w, h = self.length, self.width, self.height t = self.thickness diff --git a/boxes/generators/slatwallpliersholder.py b/boxes/generators/wallpliersholder.py similarity index 88% rename from boxes/generators/slatwallpliersholder.py rename to boxes/generators/wallpliersholder.py index d42db69..9a95c4e 100644 --- a/boxes/generators/slatwallpliersholder.py +++ b/boxes/generators/wallpliersholder.py @@ -15,17 +15,14 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox -class SlatwallPliersHolder(Boxes): +class WallPliersHolder(WallMountedBox): """Bar to hang pliers on""" - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) + super().__init__() - self.addSettingsArgs(edges.FingerJointSettings) - self.buildArgParser(sx="100*3", y=50, h=50, outside=True) self.argparser.add_argument( @@ -71,17 +68,14 @@ class SlatwallPliersHolder(Boxes): posx = -t for dx in self.sx[:-1]: posx += dx + t - self.slatWallHolesAt(posx, 0, self.h_t, 90) + self.wallHolesAt(posx, 0, self.h_t, 90) def render(self): + self.generateWallEdges() if self.outside: self.sx = self.adjustSize(self.sx) - s = edges.SlatWallSettings(self.thickness) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) - sx, y, h = self.sx, self.y, self.h t = self.thickness diff --git a/boxes/generators/slatwallslottedholder.py b/boxes/generators/wallslottedholder.py similarity index 85% rename from boxes/generators/slatwallslottedholder.py rename to boxes/generators/wallslottedholder.py index cb6acb8..45eaeb2 100644 --- a/boxes/generators/slatwallslottedholder.py +++ b/boxes/generators/wallslottedholder.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox class FrontEdge(edges.Edge): @@ -29,16 +30,11 @@ class FrontEdge(edges.Edge): self.polyline(w, (90, r1), ds-r1-r2, (-90, r2), ws-2*r2, (-90, r2), ds-r1-r2, (90, r1), w) -class SlatwallSlottedHolder(Boxes): - """Slat wall tool holder with slots""" - - ui_group = "SlatWall" +class WallSlottedHolder(WallMountedBox): + """Wall tool holder with slots""" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=1.0) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.buildArgParser(h=120) @@ -92,12 +88,12 @@ class SlatwallSlottedHolder(Boxes): t = self.thickness d = min(2*t, (wt-ws)/4.) - self.slatWallHolesAt(d, 0, self.h, 90) - self.slatWallHolesAt(n*wt-d, 0, self.h, 90) + self.wallHolesAt(d, 0, self.h, 90) + self.wallHolesAt(n*wt-d, 0, self.h, 90) for i in range(1, n): if self.brace(i): - self.slatWallHolesAt(i*wt, 0, self.h, 90) + self.wallHolesAt(i*wt, 0, self.h, 90) def topCB(self): n = self.number @@ -115,12 +111,7 @@ class SlatwallSlottedHolder(Boxes): self.fingerHolesAt(i*wt, 0, l, 90) def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) - + self.generateWallEdges() t = self.thickness l1, l2 = self.additional_depth, self.slot_depth diff --git a/boxes/generators/slatwallstairs.py b/boxes/generators/wallstairs.py similarity index 86% rename from boxes/generators/slatwallstairs.py rename to boxes/generators/wallstairs.py index 734138c..15ac395 100644 --- a/boxes/generators/slatwallstairs.py +++ b/boxes/generators/wallstairs.py @@ -15,21 +15,17 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox -class SlatwallStairs(Boxes): +class WallStairs(WallMountedBox): """Platforms in different heights e.g. for screw drivers""" description = """You are supposed to add holes or slots to the stair tops yourself using Inkscape or another vector drawing or CAD program. sh gives height of the stairs from front to back. Note that the overall width and height is bigger than the nominal values as walls and the protrusions are not included in the measurements. """ - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() self.buildArgParser(sx="250/3", sy="40*3", sh="30:100:180") self.argparser.add_argument( @@ -67,11 +63,7 @@ sh gives height of the stairs from front to back. Note that the overall width an def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() self.extra_height = 20 t = self.thickness diff --git a/boxes/generators/slatwalltypetray.py b/boxes/generators/walltypetray.py similarity index 90% rename from boxes/generators/slatwalltypetray.py rename to boxes/generators/walltypetray.py index e08dbeb..b11fd2f 100644 --- a/boxes/generators/slatwalltypetray.py +++ b/boxes/generators/walltypetray.py @@ -16,17 +16,14 @@ from boxes import * from boxes.lids import _TopEdge +from boxes.walledges import WallMountedBox -class SlatwallTypeTray(_TopEdge): +class WallTypeTray(WallMountedBox, _TopEdge): """Type tray - allows only continuous walls""" - ui_group = "SlatWall" - def __init__(self): - Boxes.__init__(self) - self.addSettingsArgs(edges.FingerJointSettings) + super().__init__() self.addSettingsArgs(edges.StackableSettings) - self.addSettingsArgs(edges.SlatWallSettings) self.buildArgParser("sx", "sy", "h", "hi", "outside", "bottom_edge") self.argparser.add_argument( "--back_height", action="store", type=float, default=0.0, @@ -68,12 +65,7 @@ class SlatwallTypeTray(_TopEdge): def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) - + self.generateWallEdges() b = self.bottom_edge if self.outside: diff --git a/boxes/generators/slatwallwrenchholder.py b/boxes/generators/wallwrenchholder.py similarity index 87% rename from boxes/generators/slatwallwrenchholder.py rename to boxes/generators/wallwrenchholder.py index c41f401..53cf638 100644 --- a/boxes/generators/slatwallwrenchholder.py +++ b/boxes/generators/wallwrenchholder.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from boxes import * +from boxes.walledges import WallMountedBox class SlottedEdge(edges.Edge): @@ -41,16 +42,12 @@ class SlottedEdge(edges.Edge): self.polyline(0, -45) self.edge(length-l) -class SlatwallWrenchHolder(Boxes): - """Hold a set of wrenches at a slat wall""" +class WallWrenchHolder(WallMountedBox): + """Hold a set of wrenches at a wall""" - ui_group = "SlatWall" def __init__(self): - Boxes.__init__(self) - - self.addSettingsArgs(edges.FingerJointSettings) - self.addSettingsArgs(edges.SlatWallSettings) + super().__init__() # remove cli params you do not need self.buildArgParser(x=100) @@ -79,11 +76,7 @@ class SlatwallWrenchHolder(Boxes): def render(self): - # Add slat wall edges - s = edges.SlatWallSettings(self.thickness, True, - **self.edgesettings.get("SlatWall", {})) - s.edgeObjects(self) - self.slatWallHolesAt = edges.SlatWallHoles(self, s) + self.generateWallEdges() h = ((self.min_strength + self.max_strength) * self.number * 2**0.5 + self.extra_distance * (self.number - 1) diff --git a/static/samples/SlatwallCaliper-thumb.jpg b/static/samples/WallCaliper-thumb.jpg similarity index 100% rename from static/samples/SlatwallCaliper-thumb.jpg rename to static/samples/WallCaliper-thumb.jpg diff --git a/static/samples/SlatwallCaliper.jpg b/static/samples/WallCaliper.jpg similarity index 100% rename from static/samples/SlatwallCaliper.jpg rename to static/samples/WallCaliper.jpg diff --git a/static/samples/SlatwallDrillBox-thumb.jpg b/static/samples/WallDrillBox-thumb.jpg similarity index 100% rename from static/samples/SlatwallDrillBox-thumb.jpg rename to static/samples/WallDrillBox-thumb.jpg diff --git a/static/samples/SlatwallDrillBox.jpg b/static/samples/WallDrillBox.jpg similarity index 100% rename from static/samples/SlatwallDrillBox.jpg rename to static/samples/WallDrillBox.jpg diff --git a/static/samples/SlatwallPliersHolder-thumb.jpg b/static/samples/WallPliersHolder-thumb.jpg similarity index 100% rename from static/samples/SlatwallPliersHolder-thumb.jpg rename to static/samples/WallPliersHolder-thumb.jpg diff --git a/static/samples/SlatwallPliersHolder.jpg b/static/samples/WallPliersHolder.jpg similarity index 100% rename from static/samples/SlatwallPliersHolder.jpg rename to static/samples/WallPliersHolder.jpg diff --git a/static/samples/SlatwallSlottedHolder-thumb.jpg b/static/samples/WallSlottedHolder-thumb.jpg similarity index 100% rename from static/samples/SlatwallSlottedHolder-thumb.jpg rename to static/samples/WallSlottedHolder-thumb.jpg diff --git a/static/samples/SlatwallSlottedHolder.jpg b/static/samples/WallSlottedHolder.jpg similarity index 100% rename from static/samples/SlatwallSlottedHolder.jpg rename to static/samples/WallSlottedHolder.jpg diff --git a/static/samples/SlatwallTypeTray-thumb.jpg b/static/samples/WallTypeTray-thumb.jpg similarity index 100% rename from static/samples/SlatwallTypeTray-thumb.jpg rename to static/samples/WallTypeTray-thumb.jpg diff --git a/static/samples/SlatwallTypeTray.jpg b/static/samples/WallTypeTray.jpg similarity index 100% rename from static/samples/SlatwallTypeTray.jpg rename to static/samples/WallTypeTray.jpg diff --git a/static/samples/samples.sha256 b/static/samples/samples.sha256 index 3124c84..07e376e 100644 --- a/static/samples/samples.sha256 +++ b/static/samples/samples.sha256 @@ -63,11 +63,6 @@ db81bb75c30252359493e48d968268d15d28586a0cf9db125e2ccc44a8e846c6 ../static/samp 261531111eb52c5e32bcb989d74933e3177050d11361db3fbfad8193584d6980 ../static/samples/PhoneHolder.jpg ee66b1bd13c0d6b57cd796e33c1e69d53432beeda8105f8b1d7b34f2c180a8b4 ../static/samples/BurnTest.jpg 63881837da3b7e59a4b4e72574d03a3350ec719c3fcffd6f786c8f0e02212946 ../static/samples/CoffeeCapsuleHolder.jpg -3735a8b49edf905d11384ee50b49a543245bf21c1640672887208cdee8dae393 ../static/samples/SlatwallSlottedHolder.jpg -b843c04a6ec530afaf40c664479c6f1eeadc9d48f1ff7ca99bea3575da733144 ../static/samples/SlatwallDrillBox.jpg -42aee460ccffbd7487f748e917f9083fb768a7e2b5f3012f57f8f55c20425ea6 ../static/samples/SlatwallPliersHolder.jpg -4fc47992ce325ec7418ce8d23d6daaeeb273f5e7bf20b7bf675617ee900ebf81 ../static/samples/SlatwallCaliper.jpg -8083dbf31bc17ad19823be48ead7bfc45b03c024ead9b598c08bf390ea193ccd ../static/samples/SlatwallTypeTray.jpg 7ad90b16ee3c976171f5445bb4dd2cedb8652dbdc9f03e8e73040371cca76a97 ../static/samples/Platonic.jpg 003d6a7fc0dd1f3179900dc45c77f943064ed0a1177d8c56947ca6d0d4dc6a2b ../static/samples/DoubleFlexDoorBox.jpg cc3bcb52886cd96614c5064554f573826ebba8c14468553cd9778e774ca0778b ../static/samples/AngledCutJig.jpg @@ -92,3 +87,8 @@ b7b0f7f6de158ffa8a9480f3785f4c1e43adef9aeb888e45247701d39ffd5f0a ../static/samp eb4ae243297daf6d21bbfd82414d65f24940f71f1739d5945d461a5e8e0f365f ../static/samples/Silverware.jpg 435d0be38c2b0f3acf39417213d2d19143cff920139c09ce20fabb8bc091e0bd ../static/samples/AllEdges.jpg 1125e013dd4bc226cd7730c29b22d949cbb084b163f0c5e045d3f3ee8cc51cdf ../static/samples/JointPanel.jpg +4fc47992ce325ec7418ce8d23d6daaeeb273f5e7bf20b7bf675617ee900ebf81 ../static/samples/WallCaliper.jpg +b843c04a6ec530afaf40c664479c6f1eeadc9d48f1ff7ca99bea3575da733144 ../static/samples/WallDrillBox.jpg +8083dbf31bc17ad19823be48ead7bfc45b03c024ead9b598c08bf390ea193ccd ../static/samples/WallTypeTray.jpg +3735a8b49edf905d11384ee50b49a543245bf21c1640672887208cdee8dae393 ../static/samples/WallSlottedHolder.jpg +42aee460ccffbd7487f748e917f9083fb768a7e2b5f3012f57f8f55c20425ea6 ../static/samples/WallPliersHolder.jpg