1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-25 23:46:32 +02:00

add angle_threshold param

This commit is contained in:
Justin Lin
2021-02-11 14:31:28 +08:00
parent 113a0a5b77
commit dbf6df4dff
3 changed files with 29 additions and 10 deletions

View File

@@ -39,5 +39,21 @@ module test_bezier_smooth_closed() {
assertEqualPoints(expected, actual);
}
module test_bezier_smooth_angle_threshold() {
echo("==== test_bezier_smooth_angle_threshold ====");
round_d = 15;
path_pts = [
[0, 0, 0],
[0, 40, 0],
[0, 60, 0],
[0, 70, 1]
];
assert(path_pts == bezier_smooth(path_pts, round_d, angle_threshold = 15));
}
test_bezier_smooth_no_closed();
test_bezier_smooth_closed();
test_bezier_smooth_closed();
test_bezier_smooth_angle_threshold();