Skip to content
Snippets Groups Projects
Commit 3444bb8d authored by Yohann Bearzi (Kitware)'s avatar Yohann Bearzi (Kitware)
Browse files

Unblocking pipeline of vtkPTextureMapToSphere

parent b172eb1f
Branches
Tags
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.
Please register or to comment