1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-05-14 01:35:26 +02:00

added test_rounded_cylinder

This commit is contained in:
Justin Lin 2017-06-01 09:25:17 +08:00
parent b3cfeab7f7
commit abacadf074
2 changed files with 26 additions and 0 deletions

@ -7,6 +7,7 @@ include <test_hexagons.scad>;
// 3D
include <test_rounded_cube.scad>;
include <test_rounded_cylinder.scad>;
// 2D Shape
include <test_shape_arc.scad>;

@ -0,0 +1,25 @@
include <unittest.scad>;
module test_rounded_cylinder() {
echo("==== test_rounded_cylinder ====");
include <rounded_cylinder.scad>;
h = 25;
module test_center_half_trapezium(center_pt, shape_pts) {
assertEqualPoint([0, 0, h / 2], center_pt);
expected_shape = [[0, -12.5], [15.5689, -12.5], [17.424, -11.8577], [18.4847, -10.2057], [18.3543, -8.3858], [10.7543, 10.6142], [9.469, 12.098], [7.9689, 12.5], [0, 12.5]];
assertEqualPoints(expected_shape, shape_pts);
}
rounded_cylinder(
radius = [20, 10],
h = h,
round_r = 3
);
}
test_rounded_cylinder();