1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/test/test_hull_polyline3d.scad
2021-02-24 14:33:57 +08:00

38 lines
754 B
OpenSCAD

use <unittest.scad>;
include <hull_polyline3d.scad>;
module test_hull_polyline3d_line_segment(index, point1, point2, radius) {
points = [
[1, 2, 3],
[4, -5, -6],
[-1, -3, -5],
[0, 0, 0]
];
diameter = 1;
assertEqualPoint(points[index - 1], point1);
assertEqualPoint(points[index], point2);
assertEqualNum(diameter, radius * 2);
}
module test_hull_polyline3d() {
echo("==== test_hull_polyline3d ====");
points = [
[1, 2, 3],
[4, -5, -6],
[-1, -3, -5],
[0, 0, 0]
];
diameter = 1;
hull_polyline3d(
points = points,
diameter = diameter,
$fn = 3
);
}
test_hull_polyline3d();