fix boundary condition on lookuptable
This commit is contained in:
parent
089016c987
commit
4e18d957d1
|
|
@ -126,7 +126,7 @@ void LGlyphLayer::updateData(int t) {
|
||||||
for (vtkIdType n=0; n < this->points->GetNumberOfPoints(); n++) {
|
for (vtkIdType n=0; n < this->points->GetNumberOfPoints(); n++) {
|
||||||
int beachedFor = this->particlesBeached->GetValue(n);
|
int beachedFor = this->particlesBeached->GetValue(n);
|
||||||
// first check: only update non-beached particles.
|
// first check: only update non-beached particles.
|
||||||
if (beachedFor < this->beachedAtNumberOfTimes) {
|
if (beachedFor < this->beachedAtNumberOfTimes-1) {
|
||||||
this->points->GetPoint(n, point);
|
this->points->GetPoint(n, point);
|
||||||
// second check: only update points within our grid's boundary.
|
// second check: only update points within our grid's boundary.
|
||||||
if (point[0] <= this->uvGrid->lonMin() or point[0] >= this->uvGrid->lonMax() or point[1] <= this->uvGrid->latMin() or point[1] >= this->uvGrid->latMax()) {
|
if (point[0] <= this->uvGrid->lonMin() or point[0] >= this->uvGrid->lonMax() or point[1] <= this->uvGrid->latMin() or point[1] >= this->uvGrid->latMax()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue