1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-24 07:13:34 +02:00

refactored

This commit is contained in:
Justin Lin
2017-06-08 14:34:52 +08:00
parent 9dbc55f1d1
commit 4accdf78d6

View File

@@ -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);
} }
} }