How to create a custom shape?

Started by hak47, September 03, 2010, 04:25:49 AM

Previous topic - Next topic

hak47

Hi, i'm a newbie of JPCT and very interesting in this.
I want create an custom shape Object3D (Ex: ellipse) if i know x,y,z equation
(x^2 / a^2)+(y^2 / b^2)+ (z^2 / c^2) = 1
Can i do that?
Thanks!!

EgonOlsen

That formular describes all the points that lie on the ellipse. I'm not sure if this is really helpful when creating a polygon mesh. I would rather take the sin/cos-approach for this. However, you can create custom objects by using the addTriangle(...) methods in Object3D. How to obtain the triangles' coordinates is up to you.

hak47