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.
This commit is contained in:
Florian Festi 2022-01-11 09:07:09 +01:00
parent d29c8f7138
commit 9f4657cc64
1 changed files with 6 additions and 1 deletions

View File

@ -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,