Although these can be used for maps between the surfaces the intended purpose is mapping the volume. I’ll make no comments on reductions for that case. This is going to be even terser than the square/disc post and I’ll skip on things like showing the Jacobian and comments about adding bias to remove degenerate regions (or even that they exist).
I will use the convention that
In this post I’ll normalize the volume distortion values for the plots. The volume of cube is eight, the ball is
Define a signum like function:
Proof-of-concept C code here.
Radial Stretching cube/ball
As with square/disc the most straight forward map is radial stretch. Cube to ball:
The Jacobian determinate:
The volume distortion (determinate multiplied by
Ball to cube:
Fong cube/ball
Fong1 derives a number of 3D blending equations as an extension of his 2D work.
One of which is a cube to ball:
We could rewrite the numerator a couple of way that drops the additional products to three. The Jacobian determinate:
The volume distortion:
Fong derives the ball to cube map, however it involves solving a cubic so I’ll give it a pass for now.
Nowell cube/ball
Nowell in a blog post2 presented a cube to ball map:
The volume distortion:
As far as I know nobody has bothered to derive the inverse function3. The density distribution could make worthwhile to solve at some point, but not today.
Volume preserving cylinder/ball bi-Lipschitz
A paper from 2008 4 derives a volume preserving cylinder to ball map (generalized to
The volume preserving map of cylinder
The cases correspond to points inside and outside of the embedded conic respectively.
The ball to cylinder map into two steps. First a common term
Then the cylinder can be expressed as:
As many cube/cylinder/ball maps as you can shake a disc at
Given the volume preserving cylinder/ball map (let’s call it
And the ball to cube map:
The volume distortion of the resulting map is simply (rescaled) area distortion of
Volume preserving cube/ball
The same paper as cylinder/ball gives the concentric disc method to complete a volume preserving cube/ball map.
Approximate volume preserving
Disc radial stretch
Disc squircle
Disc elliptical