Skip to content
Snippets Groups Projects
Commit 3531c085 authored by Berk Geveci's avatar Berk Geveci Committed by Code Review
Browse files

Merge topic 'vtkCachingInterpolatedVelocityField-bug-fix' into master

b64fb665 Fixed bug in vtkCachingInterpolatedVelocityField.
parents 83b9c8c1 b64fb665
Branches
Tags
No related merge requests found
......@@ -286,9 +286,14 @@ int vtkCachingInterpolatedVelocityField::FunctionValues(
}
else
{
data->DataSet->GetCell(this->LastCellId, this->TempCell);
vtkGenericCell* tmpCell = 0;
if (this->LastCellId >= 0)
{
data->DataSet->GetCell(this->LastCellId, this->TempCell);
tmpCell = this->TempCell;
}
this->LastCellId =
data->DataSet->FindCell(x, this->TempCell, data->Cell, -1,
data->DataSet->FindCell(x, tmpCell, data->Cell, this->LastCellId,
data->Tolerance, subId, data->PCoords, &this->Weights[0]);
if (this->LastCellId != -1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment