mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
fix joiners bug
This commit is contained in:
parent
14e12d8456
commit
eb286717ec
@ -625,13 +625,13 @@ module dovetail(gender, width, height, slide, h, w, angle, slope, thickness, tap
|
||||
orient = is_def(orient) ? orient
|
||||
: gender == "female" ? DOWN
|
||||
: UP;
|
||||
count = num_defined([angle,slope]);
|
||||
count2 = num_defined([taper,back_width]);
|
||||
count3 = num_defined([chamfer, radius]);
|
||||
dummy =
|
||||
assert(count<=1, "Do not specify both angle and slope")
|
||||
assert(count2<=1, "Do not specify both taper and back_width")
|
||||
assert(count3<=1 || (radius==0 && chamfer==0), "Do not specify both chamfer and radius");
|
||||
count = num_defined([angle,slope]);
|
||||
count2 = num_defined([taper,back_width]);
|
||||
count3 = num_defined([chamfer, radius]);
|
||||
slope = is_def(slope) ? slope :
|
||||
is_def(angle) ? 1/tan(angle) : 6;
|
||||
extra_slop = gender == "female" ? 2*get_slop() : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user