1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-30 09:49:59 +02:00

flat isolines/isobands

This commit is contained in:
Justin Lin
2020-03-24 07:27:29 +08:00
parent 3921f5c7fc
commit 5c37382c26
5 changed files with 35 additions and 47 deletions

View File

@@ -118,10 +118,8 @@ module image_slicer(levels, level_step, contour_width) {
module contours(points, z, contour_width) {
union() {
for(row = marching_squares(points, [0, z])) {
for(iso_band = row) {
polygon([for(p = iso_band) [p[0], p[1]]]);
}
for(iso_band = marching_squares(points, [0, z])) {
polygon([for(p = iso_band) [p[0], p[1]]]);
}
}
}