Picking a vtkPolyData with degenerate cells
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If a degenerate triangle with two identical vertices is traversed by vtkCellPicker, a crash is caused.
Stack: vtkPicker::Pick vtkCellPicker::IntersectWithLine vtkTriangle::IntersectWithLine vtkTriangle::EvaluatePosition vtkLine::DistanceToLine
"denom" on line 272 (vtkLine.cxx) will evaluate to zero and will cause a division by zero error. Perhaps, a check here to return -1 if denom == 0, then a check in vtkTriangle::EvaluatePosition to return -1 (ie numerical error) if vtkLine::DistanceToLine returns -1 vtkTriangle::IntersectWithLine should also check for a error from vtkTriangle::EvaluatePosition and vtkLine::DistanceToLine and return 0;