Reset the Box at the begin when you want to calculate an environment box, by using the method GetMaxBox
xyz P1 = new xyz(3, 2, 1); xyz P2 = new xyz(-4,1, 5); Box B = ResetBox(); B = B.GetMaxBox(P1); B = B.GetMaxBox(P2); // now B encapsulate the Points P1 and P2. // his Origin is at (-4, 1, 1) // his Size is ( 7, 1, 4 )