mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-12-09 15:29:09 +00:00
fixed bug in contour function handling
This commit is contained in:
parent
f5492a7c28
commit
3a1f851c3b
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue