Commit b9d4ca74 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

BUG: Do not abort on degenerate faces.

parent 4e286504
......@@ -2137,6 +2137,9 @@ public:
vtkIdType cellIdx,
int orientationChanged)
{
// Ignore degenerate faces.
if ((faceIds[0] == faceIds[1]) || (faceIds[1] == faceIds[2])) return;
assert("pre: ordered ids" && faceIds[0]<faceIds[1]
&& faceIds[1]<faceIds[2]);
......@@ -2293,7 +2296,7 @@ public:
//-----------------------------------------------------------------------------
// Implementation of the public class.
vtkCxxRevisionMacro(vtkUnstructuredGridVolumeZSweepMapper, "1.7");
vtkCxxRevisionMacro(vtkUnstructuredGridVolumeZSweepMapper, "1.8");
vtkStandardNewMacro(vtkUnstructuredGridVolumeZSweepMapper);
vtkCxxSetObjectMacro(vtkUnstructuredGridVolumeZSweepMapper, RayIntegrator,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment