Skip to content

Commit

Permalink
refactoring 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy84 committed Jan 5, 2024
1 parent 25a5ec6 commit f5f722b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vtkPolyDataContactFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ int vtkPolyDataContactFilter::RequestData (vtkInformation *request, vtkInformati

obbA->IntersectWithOBBTree(obbB, mat, InterOBBNodes, this);

if (contLines->GetNumberOfCells() == 0) {
vtkErrorMacro("There is no contact.");
return 1;
}

if (aborted) {
vtkErrorMacro("Bad shaped cells detected.");
return 1;
Expand All @@ -156,6 +151,11 @@ int vtkPolyDataContactFilter::RequestData (vtkInformation *request, vtkInformati
return 1;
}

if (contLines->GetNumberOfCells() == 0) {
vtkErrorMacro("There is no contact.");
return 1;
}

contLines->GetCellData()->AddArray(contA);
contLines->GetCellData()->AddArray(contB);

Expand Down

0 comments on commit f5f722b

Please sign in to comment.