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:
@@ -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();
|
Reference in New Issue
Block a user