Commit b0ad1f35 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: in GetEdge, introduced last delta.,

parent 3cdd9ebb
......@@ -23,7 +23,6 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
static vtkPolygon poly;
static vtkMath math;
static vtkPlane plane;
static vtkLine line;
// Description:
// Deep copy of cell.
......@@ -235,9 +234,10 @@ void vtkTriangle::Contour(float value, vtkFloatScalars *cellScalars,
vtkCell *vtkTriangle::GetEdge(int edgeId)
{
static vtkLine line;
int edgeIdPlus1 = edgeId + 1;
if ((edgeIdPlus1 + 1) > 2) edgeIdPlus1 = 0;
if (edgeIdPlus1 > 2) edgeIdPlus1 = 0;
// load point id's
line.PointIds.SetId(0,this->PointIds.GetId(edgeId));
......
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