finally calculating the zpp, zmin, and zmax correctly I think. Still not sure how to set the ecYs and ecXs in the set3Dmodelcoords