mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 01:34:12 +02:00
rename
This commit is contained in:
@@ -14,17 +14,15 @@ points = [
|
|||||||
|
|
||||||
if(style == "ISOLINES") {
|
if(style == "ISOLINES") {
|
||||||
for(row = marching_squares(points, 0.1)) {
|
for(row = marching_squares(points, 0.1)) {
|
||||||
for(line = row) {
|
for(isoline = row) {
|
||||||
p0 = [line[0][0], line[0][1]];
|
hull_polyline2d(isoline, width = .1);
|
||||||
p1 = [line[1][0], line[1][1]];
|
|
||||||
hull_polyline2d([p0, p1], width = .1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for(row = marching_squares(points, [-.2, .2])) {
|
for(row = marching_squares(points, [-.2, .2])) {
|
||||||
for(iso_band = row) {
|
for(isoband = row) {
|
||||||
polygon([for(p = iso_band) [p[0], p[1]]]);
|
polygon([for(p = isoband) [p[0], p[1]]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -112,8 +112,8 @@ points = [
|
|||||||
|
|
||||||
for(z = [0:40:255]) {
|
for(z = [0:40:255]) {
|
||||||
for(row = marching_squares(points, z)) {
|
for(row = marching_squares(points, z)) {
|
||||||
for(line = row) {
|
for(isoline = row) {
|
||||||
hull_polyline2d(line, width = .25);
|
hull_polyline2d(isoline, width = .25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user