Skip to content
Snippets Groups Projects
Commit 256d277d authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot
Browse files

Merge topic 'fix_linesource_fpe'


8cd1e423 fix a fpe on zero length Lines

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !6377
parents 6d4a4bbf 8cd1e423
No related branches found
No related tags found
No related merge requests found
......@@ -250,9 +250,12 @@ int vtkLineSource::RequestData(vtkInformation* vtkNotUsed(request),
}
// now normalize the tcoord
for (vtkIdType cc = 1; cc < numPts; ++cc)
if (length_sum)
{
newTCoords->SetTypedComponent(cc, 0, newTCoords->GetTypedComponent(cc, 0) / length_sum);
for (vtkIdType cc = 1; cc < numPts; ++cc)
{
newTCoords->SetTypedComponent(cc, 0, newTCoords->GetTypedComponent(cc, 0) / length_sum);
}
}
// Update ourselves and release memory
......
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