Skip to content

Commit f5f722b

Browse files
committed
refactoring 2
1 parent 25a5ec6 commit f5f722b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vtkPolyDataContactFilter.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ int vtkPolyDataContactFilter::RequestData (vtkInformation *request, vtkInformati
136136

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

139-
if (contLines->GetNumberOfCells() == 0) {
140-
vtkErrorMacro("There is no contact.");
141-
return 1;
142-
}
143-
144139
if (aborted) {
145140
vtkErrorMacro("Bad shaped cells detected.");
146141
return 1;
@@ -156,6 +151,11 @@ int vtkPolyDataContactFilter::RequestData (vtkInformation *request, vtkInformati
156151
return 1;
157152
}
158153

154+
if (contLines->GetNumberOfCells() == 0) {
155+
vtkErrorMacro("There is no contact.");
156+
return 1;
157+
}
158+
159159
contLines->GetCellData()->AddArray(contA);
160160
contLines->GetCellData()->AddArray(contB);
161161

0 commit comments

Comments
 (0)