Curvilinear perspective: Convert 3D to 2D

前端 未结 2 1529
無奈伤痛
無奈伤痛 2021-02-01 07:44

I\'m looking for the mathematical expression converting a 3D coordinate (x0,y0,z0) to a 2D (x1,y1) coordinate in a curvilinear perspective of radius

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 08:02

    About one year later , the solution was really simple. For a point having the coordinates:

    (x1,y1,z1)
    

    Then, to transform this point in a curvilinear drawing of radius R:

    dist=sqrt(x1^2 + y1^2 + z1^2)
    
    x= R*(1+x/dist)
    y= R*(1+y/dist)
    

    I can now generate my own drawings (image via wikipedia) :-)

    Curvilinear drawing.

提交回复
热议问题