mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-12-15 12:42:43 +00:00
fix joiners bug
This commit is contained in:
parent
14e12d8456
commit
eb286717ec
1 changed files with 3 additions and 3 deletions
|
|
@ -625,13 +625,13 @@ module dovetail(gender, width, height, slide, h, w, angle, slope, thickness, tap
|
||||||
orient = is_def(orient) ? orient
|
orient = is_def(orient) ? orient
|
||||||
: gender == "female" ? DOWN
|
: gender == "female" ? DOWN
|
||||||
: UP;
|
: UP;
|
||||||
|
count = num_defined([angle,slope]);
|
||||||
|
count2 = num_defined([taper,back_width]);
|
||||||
|
count3 = num_defined([chamfer, radius]);
|
||||||
dummy =
|
dummy =
|
||||||
assert(count<=1, "Do not specify both angle and slope")
|
assert(count<=1, "Do not specify both angle and slope")
|
||||||
assert(count2<=1, "Do not specify both taper and back_width")
|
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");
|
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 :
|
slope = is_def(slope) ? slope :
|
||||||
is_def(angle) ? 1/tan(angle) : 6;
|
is_def(angle) ? 1/tan(angle) : 6;
|
||||||
extra_slop = gender == "female" ? 2*get_slop() : 0;
|
extra_slop = gender == "female" ? 2*get_slop() : 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue