From f5f722b7b0e1b7205d66bacd9975d2ccc5440c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20R=C3=B6mer?= Date: Fri, 5 Jan 2024 09:48:30 +0100 Subject: [PATCH] refactoring 2 --- vtkPolyDataContactFilter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vtkPolyDataContactFilter.cxx b/vtkPolyDataContactFilter.cxx index bc651da..6907eda 100644 --- a/vtkPolyDataContactFilter.cxx +++ b/vtkPolyDataContactFilter.cxx @@ -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; @@ -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);