Commit 63d2efef authored by Will Schroeder's avatar Will Schroeder
Browse files

ERR: Fixed memory allocation problem.

parent 8bace968
......@@ -27,7 +27,7 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
class vlTriangleFilter : public vlPolyToPolyFilter
{
public:
vlTriangleFilter() : PassVerts(0), PassLines(0) {};
vlTriangleFilter() : PassVerts(1), PassLines(1) {};
~vlTriangleFilter() {};
char *GetClassName() {return "vlTriangleFilter";};
void PrintSelf(ostream& os, vlIndent indent);
......
......@@ -35,7 +35,7 @@ void vlTriangleFilter::Execute()
newPolys = new vlCellArray();
// approximation
numCells = this->GetNumberOfPolys() + this->GetNumberOfStrips();
numCells = this->Input->GetNumberOfPolys() + this->Input->GetNumberOfStrips();
newPolys->Allocate(newPolys->EstimateSize(numCells,3),3*numCells);
// pass through triangles; triangulate polygons if necessary
......
Markdown is supported
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