mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-24 07:13:34 +02:00
refactored
This commit is contained in:
@@ -17,10 +17,13 @@ module hull_polyline3d(points, thickness) {
|
|||||||
leng = len(points);
|
leng = len(points);
|
||||||
|
|
||||||
module hull_line3d(index) {
|
module hull_line3d(index) {
|
||||||
|
point1 = points[index - 1];
|
||||||
|
point2 = points[index];
|
||||||
|
|
||||||
hull() {
|
hull() {
|
||||||
translate(points[index - 1])
|
translate(point1)
|
||||||
sphere(half_thickness);
|
sphere(half_thickness);
|
||||||
translate(points[index])
|
translate(point2)
|
||||||
sphere(half_thickness);
|
sphere(half_thickness);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user