mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
refactor
This commit is contained in:
parent
e2958b6ae1
commit
06c1ef94bc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user