From 3d7986f130a2a8c836cbadee3bf6ca4106ee2828 Mon Sep 17 00:00:00 2001 From: "suks.ae" Date: Sat, 2 Apr 2022 09:52:34 +0200 Subject: [PATCH] updated list of used edge characters in documentation added reserved chars for generator use changed generator template to reserved char --- boxes/generators/_template.py | 2 +- documentation/src/api_edges.rst | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/boxes/generators/_template.py b/boxes/generators/_template.py index 66e3fc9..9f19d12 100644 --- a/boxes/generators/_template.py +++ b/boxes/generators/_template.py @@ -51,7 +51,7 @@ class BOX(Boxes): # Change class name! space = 10, finger=10, width=self.thickness) p = edges.FingerJointEdge(self, s) - p.char = "p" + p.char = "a" # 'a', 'A', 'b' and 'B' is reserved for beeing used within generators self.addPart(p) # render your parts here diff --git a/documentation/src/api_edges.rst b/documentation/src/api_edges.rst index d4aac0c..a4c8b8b 100644 --- a/documentation/src/api_edges.rst +++ b/documentation/src/api_edges.rst @@ -28,6 +28,9 @@ classes have a number of methods to deal with these kind of offsets. A set of instances are kept the ``.edges`` attribute of the ``Boxes`` class. It is a dict with strings of length one as keys: +* aAbB : reserved to be used in generators +* c : ClickConnector +* C : ClickEdge * d : DoveTailJoint * D : DoveTailJointCounterPart * e : Edge @@ -38,8 +41,26 @@ A set of instances are kept the ``.edges`` attribute of the * h : FingerHoleEdge * ijk : Hinge (start, end, both sides) * IJK : HingePin (start, end, both sides) +* L : LidHoleEdge +* l : LidEdge +* M : LidSideLeft +* m : LidLeft +* N : LidSideRight +* n : LidRight +* Oo : ChestHinge +* Pp : ChestHingeTop +* Q : ChestHingeFront +* q : ChestHingePin +* R : RackEdge * s : StackableEdge * S : StackableEdgeTop +* ลก : StackableFeet +* T : RoundedTriangleFingerHolesEdge +* t : RoundedTriangleEdge +* uUvV : CabinetHingeEdge +* X : FlexEdge +* Z : GroovedEdgeCounterPart +* z : GroovedEdge Edge base class ---------------