1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/test_bend.scad
2022-06-06 13:11:46 +08:00

22 lines
480 B
OpenSCAD

use <unittest.scad>
include <bend.scad>
module test_bend_tri_frag(points, angle) {
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);
}
module test_bend() {
echo("==== test_bend_tri_frag ====");
x = 9.25;
y = 9.55;
z = 1;
bend(size = [x, y, z], angle = 270)
linear_extrude(z) text("A");
}
test_bend();