mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-12 01:04:25 +02:00
2 bug fixes
This commit is contained in:
@@ -556,7 +556,7 @@ module dovetail(gender, length, l, width, w, height, h, angle, slope, taper, bac
|
|||||||
reverse(concat(smallend_points, xflip(p=reverse(smallend_points)))),
|
reverse(concat(smallend_points, xflip(p=reverse(smallend_points)))),
|
||||||
reverse(concat(bigend_points, xflip(p=reverse(bigend_points))))
|
reverse(concat(bigend_points, xflip(p=reverse(bigend_points))))
|
||||||
],
|
],
|
||||||
convexity=4
|
slices=0, convexity=4
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
children();
|
children();
|
||||||
|
@@ -911,8 +911,8 @@ module convex_offset_extrude(
|
|||||||
top = struct_set(argspec, top, grow=false);
|
top = struct_set(argspec, top, grow=false);
|
||||||
bottom = struct_set(argspec, bottom, grow=false);
|
bottom = struct_set(argspec, bottom, grow=false);
|
||||||
|
|
||||||
offsets_bot = rounding_offsets(bottom, -1);
|
offsets_bot = _rounding_offsets(bottom, -1);
|
||||||
offsets_top = rounding_offsets(top, 1);
|
offsets_top = _rounding_offsets(top, 1);
|
||||||
|
|
||||||
// "Extra" height enlarges the result beyond the requested height, so subtract it
|
// "Extra" height enlarges the result beyond the requested height, so subtract it
|
||||||
bottom_height = len(offsets_bot)==0 ? 0 : abs(select(offsets_bot,-1)[1]) - struct_val(bottom,"extra");
|
bottom_height = len(offsets_bot)==0 ? 0 : abs(select(offsets_bot,-1)[1]) - struct_val(bottom,"extra");
|
||||||
|
Reference in New Issue
Block a user