CalcTf3D: Made temp variables into member