Commit 75868ab3 authored by David Thompson's avatar David Thompson
Browse files

Eliminate an uninitialized-use warning.

parent 14f65676
......@@ -260,7 +260,10 @@ int vtkLagrangeCurve::Triangulate(
for (int i = 0; i < nseg; ++i)
{
vtkLine* approx = this->GetApproximateLine(i);
this->SubCellCoordinatesFromId(ijk, i);
if (!this->SubCellCoordinatesFromId(ijk, i))
{
continue;
}
if (approx->Triangulate(
(ijk[0] + ijk[1] + ijk[2]) % 2,
this->TmpIds.GetPointer(),
......
......@@ -498,7 +498,10 @@ int vtkLagrangeHexahedron::Triangulate(
for (int i = 0; i < nhex; ++i)
{
vtkHexahedron* approx = this->GetApproximateHex(i);
this->SubCellCoordinatesFromId(ijk, i);
if (!this->SubCellCoordinatesFromId(ijk, i))
{
continue;
}
if (approx->Triangulate(
(ijk[0] + ijk[1] + ijk[2]) % 2,
this->TmpIds.GetPointer(),
......
......@@ -319,7 +319,10 @@ int vtkLagrangeQuadrilateral::Triangulate(
for (int i = 0; i < nquad; ++i)
{
vtkQuad* approx = this->GetApproximateQuad(i);
this->SubCellCoordinatesFromId(ijk, i);
if (!this->SubCellCoordinatesFromId(ijk, i))
{
continue;
}
if (approx->Triangulate(
(ijk[0] + ijk[1] + ijk[2]) % 2,
this->TmpIds.GetPointer(),
......
......@@ -564,7 +564,10 @@ int vtkLagrangeWedge::Triangulate(
for (int i = 0; i < nwedge; ++i)
{
vtkWedge* approx = this->GetApproximateWedge(i);
this->SubCellCoordinatesFromId(ijk, i);
if (!this->SubCellCoordinatesFromId(ijk, i))
{
continue;
}
if (approx->Triangulate(
(ijk[0] + ijk[1] + ijk[2]) % 2,
this->TmpIds.GetPointer(),
......
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