From bebad7515d3f0b39028b4d29172bef17cfc3f80d Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Feb 2014 16:09:26 +0400 Subject: [PATCH] Improve the clearness of the message in case of the ELNO surface filter is used instead of ELNO mesh for non 3D datasets. --- src/Plugins/MEDReader/IO/vtkELNOSurfaceFilter.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Plugins/MEDReader/IO/vtkELNOSurfaceFilter.cxx b/src/Plugins/MEDReader/IO/vtkELNOSurfaceFilter.cxx index 31fdbce9..4c03ef0e 100644 --- a/src/Plugins/MEDReader/IO/vtkELNOSurfaceFilter.cxx +++ b/src/Plugins/MEDReader/IO/vtkELNOSurfaceFilter.cxx @@ -47,8 +47,7 @@ vtkELNOSurfaceFilter::~vtkELNOSurfaceFilter() { } -int vtkELNOSurfaceFilter::RequestData(vtkInformation *request, - vtkInformationVector **input, vtkInformationVector *output) +int vtkELNOSurfaceFilter::RequestData(vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output) { vtkUnstructuredGrid *usgIn=vtkUnstructuredGrid::SafeDownCast( input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())); @@ -92,7 +91,7 @@ int vtkELNOSurfaceFilter::RequestData(vtkInformation *request, if(originalPointIds==NULL) { - vtkErrorMacro("vtkPVGeometryFilter return NULL 'vtkOriginalPointIds' array"); + vtkErrorMacro("It appears that your dataset is not reduced using vtkPVGeometryFilter (NULL 'vtkOriginalPointIds).\n==================================================================================================\nProbably your dataset is not 3D.\nIf it is not a 3D dataset you are expected to use ELNO Mesh filter instead of ELNO Surface filter.\n==================================================================================================\n"); return 0; } -- 2.39.2