parent
41165731c9
commit
29183ed7ed
|
@ -2187,6 +2187,7 @@ Values:
|
||||||
* absolute_params
|
* absolute_params
|
||||||
|
|
||||||
* bottom_hook : "hook" : "spring", "stud" or "none"
|
* bottom_hook : "hook" : "spring", "stud" or "none"
|
||||||
|
* pitch : 101.6 : vertical spacing of slots middle to middle (in mm)
|
||||||
|
|
||||||
* relative (in multiples of thickness)
|
* relative (in multiples of thickness)
|
||||||
|
|
||||||
|
@ -2197,6 +2198,7 @@ Values:
|
||||||
|
|
||||||
absolute_params = {
|
absolute_params = {
|
||||||
"bottom_hook" : ("hook", "spring", "stud", "none"),
|
"bottom_hook" : ("hook", "spring", "stud", "none"),
|
||||||
|
"pitch" : 101.6,
|
||||||
}
|
}
|
||||||
|
|
||||||
relative_params = {
|
relative_params = {
|
||||||
|
@ -2274,13 +2276,14 @@ class SlatWallEdge(BaseEdge):
|
||||||
self.polyline(length)
|
self.polyline(length)
|
||||||
|
|
||||||
def __call__(self, length, **kw):
|
def __call__(self, length, **kw):
|
||||||
step = 101.6 # 4"
|
pitch = self.settings.pitch
|
||||||
tht, thb = self._top_hook_len()
|
tht, thb = self._top_hook_len()
|
||||||
bht, bhb = self._bottom_hook_len()
|
bht, bhb = self._bottom_hook_len()
|
||||||
|
|
||||||
if length >= step + tht + bhb and self.settings.bottom_hook != "none":
|
if (length >= pitch + tht + bhb and
|
||||||
top_len = ((length-tht-1) // step) * step - thb - bht
|
self.settings.bottom_hook != "none"):
|
||||||
bottom_len = (length-tht) % step - bhb
|
top_len = ((length-tht-1) // pitch) * pitch - thb - bht
|
||||||
|
bottom_len = (length-tht) % pitch - bhb
|
||||||
else:
|
else:
|
||||||
top_len = length-tht-thb
|
top_len = length-tht-thb
|
||||||
bottom_len = None
|
bottom_len = None
|
||||||
|
|
Loading…
Reference in New Issue