removed anchoring from regions until we figure it out

This commit is contained in:
Alex Matulich
2025-03-12 02:49:06 -07:00
parent 93d8ee7b6b
commit c4ad297cc0

View File

@@ -2891,7 +2891,7 @@ module metaballs2d(spec, bounding_box, pixel_size, pixel_count, isovalue=1, clos
wid = 0.5 * (is_num(pixel_size) ? pixel_size : min(pixel_size)); wid = 0.5 * (is_num(pixel_size) ? pixel_size : min(pixel_size));
for(a=regionlist[1]) for(a=regionlist[1])
color(a[0]==0 ? "gray" : a[0]>0 ? "#3399FF" : "#FF9933") color(a[0]==0 ? "gray" : a[0]>0 ? "#3399FF" : "#FF9933")
region(a[1], cp=cp, anchor=anchor, spin=spin, atype=atype); region(a[1]);
// display metaball as outline // display metaball as outline
attachable(anchor, spin, two_d=true, region=regionlist[0]) { attachable(anchor, spin, two_d=true, region=regionlist[0]) {
stroke(regionlist[0], width=wid, closed=true); stroke(regionlist[0], width=wid, closed=true);
@@ -2899,7 +2899,7 @@ module metaballs2d(spec, bounding_box, pixel_size, pixel_count, isovalue=1, clos
} }
} else { // debug==false, just display the metaball surface } else { // debug==false, just display the metaball surface
attachable(anchor, spin, two_d=true, region=regionlist) { attachable(anchor, spin, two_d=true, region=regionlist) {
region(regionlist, cp=cp, anchor=anchor, spin=spin, atype=atype); region(regionlist);
children(); children();
} }
} }