A three-dimensional superellipsoid with corner sharpness controlled by a slider. The width and height of the MathCell have been increased to show the graphic more clearly. The isosurface is generated using marching cubes.
This superellipsoid is defined by the equation
\[ |x|^n + |y|^n + |z|^n = 1 \]Complete code for this example: