1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 17:42:44 +01:00
dotSCAD/test/test_bend.scad
2019-06-11 14:32:21 +08:00

23 lines
526 B
OpenSCAD

module test_bend() {
include <unittest.scad>;
include <bend.scad>;
x = 9.25;
y = 9.55;
z = 1;
module test_bend_tri_frag(points, angle) {
echo("==== test_bend_tri_frag ====");
expected_points = [[0, 0], [0.1927, 1.9566], [0.3854, 0], [0, 0]];
expected_angle = 11.25;
assertEqualPoints(expected_points, points);
assertEqualNum(expected_angle, angle);
}
bend(size = [x, y, z], angle = 270)
linear_extrude(z) text("A");
}
test_bend();