1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-04 13:57:33 +02: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() { hull() {
translate(point1) translate(point1)
circle(half_width); children();
translate(point2) translate(point2)
circle(half_width); children();
} }
// hook for testing // hook for testing
@@ -28,7 +28,8 @@ module hull_polyline2d(points, width = 1) {
} }
for(i = [1:leng - 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() { hull() {
translate(point1) translate(point1)
sphere(radius); children();
translate(point2) translate(point2)
sphere(radius); children();
} }
// hook for testing // hook for testing
@@ -28,7 +28,8 @@ module hull_polyline3d(points, diameter = 1) {
} }
for(i = [1:leng - 1]) { for(i = [1:leng - 1]) {
hull_line3d(i); hull_line3d(i)
sphere(radius);
} }
} }