|
(0013730)
|
|
Zhanping Liu
|
|
2008-10-06 10:40
|
|
BUG 0006603 has been fixed. The problem was due to the inappropriate
selection of the tolerance (the initial value is too coarse), line #246 in
vtkProbeFilter::ProbeEmptyPoints(...). Now the actual sampling rate is
considered in determining the tolerance (see line #249 to line #264) and
the problem disappears.
If the squared tolerance is too large as is the case with the original code (0.005), a given sampling point, e.g., point #47 (whose coordinates are 0.47, 0.94), is mistakenly considered as grid point 8 (point Id = 8), i.e., the center of the plane because the squared distance between point #47 and the center is 0.0045. As a consequence, the proprty (temperature here) at the center point is simply taken as the one at the sample (point #47) and therefore a fluctuation occurs between point #46 and point 0000054.
Now that the bug has been fixed, point #47 is considered to be within cell (triangle here) #5 and bary-centric interpolation is accordingly applied to obtain a correct temperature value at point #47 (the same for #47 ~ #53), both visually AND in terms of the line-based profile investigation.
Thanks.
new revision: 1.95; previous revision: 1.94 |
|