mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-04-21 22:32:05 +02:00
fixed bug in contour function handling
This commit is contained in:
parent
f5492a7c28
commit
3a1f851c3b
@ -1093,7 +1093,8 @@ function _contour_pixels(pixsize, bbox, fieldarray, fieldfunc, pixcenters, isova
|
||||
// get center value of pixel
|
||||
if (pixcenters)
|
||||
is_def(fieldfunc)
|
||||
? fieldfunc(x+hp, y+hp) : 0.25*(f0 + f1 + f2 + f3)
|
||||
? min(1e9,max(-1e9,fieldfunc(x+hp.x, y+hp.y)))
|
||||
: 0.25*(f0 + f1 + f2 + f3)
|
||||
],
|
||||
pixcoord = [x,y],
|
||||
pixfound_isoval = (min(pf) < isovalue && isovalue < max(pf)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user