A body with a ‘sort of curved surface’ is best approximated to some closeness by a polyhedron and any convex polyhedron with a boundary of n triangles can be expressed as the union of n tetrahedra. Non convex polyhedra too if we allow polyhedra of negative volume; the code need not even notice the sign.

Scheme code for simplex, simplex, about the code to form sphere from triangles.