Calculates the surface area of a cuboid as 2 × (depth×width + width×height + height×depth): three pairs of matching faces. The space diagonal is also shown.
A cuboid has six faces, and opposite faces are identical rectangles. So you need the areas of only three different faces, each counted twice.
The line joining the two most distant corners, the space diagonal, comes from applying the Pythagorean theorem twice.
With the defaults, , and :
Surface area is a sum of face areas, so its unit is a length squared (cm²), not a length cubed like the volume (cm³). Forgetting the factor of 2 and stopping at halves the answer. The diagonal reported here is the space diagonal, the one running through the inside of the solid, not a diagonal drawn on a single face. All three edges must be positive.