mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 20:40:28 +02:00
refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user