From: vsr Date: Tue, 25 Feb 2014 12:09:26 +0000 (+0400) Subject: Improve the clearness of the message in case of the ELNO surface filter is used inste... X-Git-Tag: V7_3_1rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bebad7515d3f0b39028b4d29172bef17cfc3f80d;p=modules%2Fparavis.git Improve the clearness of the message in case of the ELNO surface filter is used instead of ELNO mesh for non 3D datasets. --- 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; }