1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

added test hook

This commit is contained in:
Justin Lin 2017-06-25 11:54:19 +08:00
parent 61284cb524
commit a2d5fb8459

View File

@ -66,7 +66,16 @@ module ellipse_extrude(semi_minor_axis, height, center = false, convexity = 10,
}
}
translate([0, 0, center == true ? -h / 2 : 0])
center_offset = [0, 0, center == true ? -h / 2 : 0];
translate(center_offset)
extrude()
children();
// hook for testing
test_ellipse_extrude_fzc(child_fs, pre_zs, center_offset);
}
// override for testing
module test_ellipse_extrude_fzc(child_fs, pre_zs, center_offset) {
}