Skip to content

Commit

Permalink
Rename _swtemplate.py to _walltemplate.py
Browse files Browse the repository at this point in the history
Move to "new" boxes.walledges infrastructure

Resolves: #730
  • Loading branch information
florianfesti committed Dec 9, 2024
1 parent 266d68a commit da9bdad
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@
# mypy: ignore-errors

from boxes import *
from boxes.walledges import _WallMountedBox


class SlatwallXXX(Boxes): # Change class name!
class WallXXX(_WallMountedBox): # Change class name!
"""DESCRIPTION"""

ui_group = "SlatWall"

def __init__(self) -> None:
Boxes.__init__(self)
super().__init__(self)

self.addSettingsArgs(edges.FingerJointSettings)
self.addSettingsArgs(edges.SlatWallSettings)

# remove cli params you do not need
self.buildArgParser(x=100, sx="3*50", y=100, sy="3*50", h=100, hi=0)
Expand All @@ -37,10 +34,6 @@ def __init__(self) -> None:
help="DESCRIPTION")

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() # creates the aAbBcCdD| edges

# render your parts here

0 comments on commit da9bdad

Please sign in to comment.