Skip to content
Snippets Groups Projects
Commit db8657af authored by Yohann Bearzi (Kitware)'s avatar Yohann Bearzi (Kitware) Committed by Cory Quammen
Browse files

Unblocking pipeline of vtkPTextureMapToSphere

(cherry picked from commit 3444bb8d)
parent 1bdfd054
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,12 @@ int vtkTextureMapToSphere::RequestData(vtkInformation* vtkNotUsed(request),
vtkDataSet* input = vtkDataSet::SafeDownCast(inInfo->Get(vtkDataObject::DATA_OBJECT()));
vtkDataSet* output = vtkDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
if (!input || !output)
{
vtkErrorMacro(<< "Invalid input or output");
return 1;
}
vtkFloatArray* newTCoords;
vtkIdType numPts = input->GetNumberOfPoints();
vtkIdType ptId;
......@@ -59,7 +65,8 @@ int vtkTextureMapToSphere::RequestData(vtkInformation* vtkNotUsed(request),
if (numPts < 1)
{
vtkErrorMacro(<< "Can't generate texture coordinates without points");
// Needs to be called in case MPI is in use
this->ComputeCenter(input);
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment