1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
This commit is contained in:
Justin Lin 2021-10-01 08:08:11 +08:00
parent e2958b6ae1
commit 06c1ef94bc
2 changed files with 8 additions and 6 deletions

View File

@ -18,9 +18,9 @@ module hull_polyline2d(points, width = 1) {
hull() {
translate(point1)
circle(half_width);
children();
translate(point2)
circle(half_width);
children();
}
// hook for testing
@ -28,7 +28,8 @@ module hull_polyline2d(points, width = 1) {
}
for(i = [1:leng - 1]) {
hull_line2d(i);
hull_line2d(i)
circle(half_width);
}
}

View File

@ -18,9 +18,9 @@ module hull_polyline3d(points, diameter = 1) {
hull() {
translate(point1)
sphere(radius);
children();
translate(point2)
sphere(radius);
children();
}
// hook for testing
@ -28,7 +28,8 @@ module hull_polyline3d(points, diameter = 1) {
}
for(i = [1:leng - 1]) {
hull_line3d(i);
hull_line3d(i)
sphere(radius);
}
}