From Chris McGlone, "PlygonZ copy constructor: added allocation and copying of zarray"

This commit is contained in:
Robert Osfield
2006-12-05 14:58:38 +00:00
parent 3177494aa4
commit 8e0bb5f6ef

View File

@@ -1003,10 +1003,12 @@ PolygonZ::PolygonZ(const PolygonZ &p):
parts[i] = p.parts[i];
points = new Point[numPoints];
zArray = new Double[numPoints]; // jcm
mArray = new Double[numPoints];
for( i = 0; i < numPoints; i++ )
{
points[i] = p.points[i];
zArray[i] = p.zArray[i]; // jcm
mArray[i] = p.mArray[i];
}
}