mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 00:17:34 +02:00
fixed bug in contour function handling
This commit is contained in:
@@ -1093,7 +1093,8 @@ function _contour_pixels(pixsize, bbox, fieldarray, fieldfunc, pixcenters, isova
|
|||||||
// get center value of pixel
|
// get center value of pixel
|
||||||
if (pixcenters)
|
if (pixcenters)
|
||||||
is_def(fieldfunc)
|
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],
|
pixcoord = [x,y],
|
||||||
pixfound_isoval = (min(pf) < isovalue && isovalue < max(pf)),
|
pixfound_isoval = (min(pf) < isovalue && isovalue < max(pf)),
|
||||||
|
Reference in New Issue
Block a user