From 9f4657cc64b9218938de71e6073f10c1db51577f Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 11 Jan 2022 09:07:09 +0100 Subject: [PATCH] RegularBox: Improve defaults and docs Reduce surroundingspaces as it is likely that fingers won't fit for small boxes or one with many sides. Also add proper description instead of inheriting the one from bayonet box directly. --- boxes/generators/regularbox.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/boxes/generators/regularbox.py b/boxes/generators/regularbox.py index 01b4d09..7244749 100644 --- a/boxes/generators/regularbox.py +++ b/boxes/generators/regularbox.py @@ -21,11 +21,16 @@ import copy class RegularBox(BayonetBox): """Box with regular polygon as base""" + description = """For short side walls that don't fit a connecting finger reduce *surroundingspaces* and *finger* in the Finger Joint Settings. + +The lids needs to be glued. For the bayonet lid all outside rings attach to the bottom, all inside rings to the top. +""" + ui_group = "Box" def __init__(self): Boxes.__init__(self) - self.addSettingsArgs(edges.FingerJointSettings) + self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=1) self.buildArgParser("h", "outside") self.argparser.add_argument( "--radius", action="store", type=float, default=50.0,