views:

1751

answers:

3
+1  A: 

You may first need to use a transformation matrix to project the 3D object on a 2D plane. http://en.wikipedia.org/wiki/Graphical_projection, choose the one that best fits your needs.

As a second step, you will then want to use the general conversions to bring the coordinates into the Euclidian space. http://en.wikipedia.org/wiki/Curvilinear_coordinates

Krugar
thanks but this doesn't help much. The wikipedia page is full of mathematical functions. Which one should I choose ?
Pierre
Well, that is why to my knowledge there is no single formula to convert those coordinates because it will depend on the type of 3d projection you want to do into a Cartesian 2d plane. You need to decide that first. Chose a projection that best fits you and apply its formula to translate your coordinates to the cartesian system. Now you will be ready to apply the simple formulas in the second webpage to translate your cartesian coordinates into an Euclidian coordinate system.
Krugar
Problem diagnosis: Good question, too good wikipedia article.Happens to me too from time to time.Solution: Use google to search for supplementary information or ask on a math forum.Also, maybe Wolfram Research offers better organized information.
Quandary
+4  A: 

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.

Pierre
A: 

ha ha this is very funny that we have to convert 3d into 2d... ;-)

meooo