public void calculateDimensions() {
		// Reset all the outside points to 0
		leftmostPoint = rightmostPoint = 0;
		lowestPoint = highestPoint = 0;
		farthestPoint = nearestPoint = 0;
		// For each triangle,
		for (int triangle = 0; triangle < triangles.length; triangle++) {
			// Get the triangle
			Triangle checkTriangle = (Triangle) triangles[triangle];
			// For each vertex in that triangle
			for (int vertex = 1; vertex <= 3; vertex++) {
				Vertex checkVertex = checkTriangle.getPoint(vertex);
				if (checkVertex.pos.x < leftmostPoint) {
					leftmostPoint = checkVertex.pos.x;
				} else if (checkVertex.pos.x > rightmostPoint) {
					rightmostPoint = checkVertex.pos.x;
				}
				if (checkVertex.pos.y < lowestPoint) {
					lowestPoint = checkVertex.pos.y;
				} else if (checkVertex.pos.y > highestPoint) {
					highestPoint = checkVertex.pos.y;
				}
				if (checkVertex.pos.z < nearestPoint) {
					nearestPoint = checkVertex.pos.z;
				} else if (checkVertex.pos.z > farthestPoint) {
					farthestPoint = checkVertex.pos.z;
				}
			}
		}
	}