Transforming Cube Surface to Spherical Cube Surface (Generating Spherical Cube)

前端 未结 2 602
挽巷
挽巷 2021-01-29 01:16

I have the coordinates of points of an empty cube just like down below:

What I would like to do is transform that cube to something like this:

Ther

2条回答
  •  暖寄归人
    2021-01-29 02:17

    Draw grids on the faces cube and project every point that you need radially onto the sphere. Assuming the center of the cube at the origin, transform

    (x, y, z) -> (x, y, z) / √(x² + y² + z²)
    

提交回复
热议问题