1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/test_rounded_square.scad

17 lines
722 B
OpenSCAD
Raw Normal View History

2022-06-06 13:11:46 +08:00
use <unittest.scad>
include <rounded_square.scad>
2020-01-27 16:03:11 +08:00
module test_rounded_square(position, points) {
assertEqualPoint([25, 25], position);
assertEqualPoints(
[[20, -25], [21.9471, -24.6053], [23.5868, -23.4835], [24.6602, -21.8118], [25, -20], [25, 20], [24.6053, 21.9471], [23.4835, 23.5868], [21.8118, 24.6602], [20, 25], [-20, 25], [-21.8118, 24.6602], [-23.4835, 23.5868], [-24.6053, 21.9471], [-25, 20], [-25, -20], [-24.6602, -21.8118], [-23.5868, -23.4835], [-21.9471, -24.6053], [-20, -25]],
points
);
}
2017-05-25 11:51:54 +08:00
module test_rounded_square_size_corner() {
2017-05-25 14:05:19 +08:00
echo("==== test_rounded_square_size_corner ====");
2017-05-25 11:51:54 +08:00
rounded_square(size = 50, corner_r = 5);
}
2020-01-27 16:03:11 +08:00
test_rounded_square_size_corner();