PDA

View Full Version : Who can help me with this problem ?

cebner
04-12-2003, 09:46 AM
Hello,
I am not quite new in programming OpenGl but i need some help with this problem.

To my problem. Please first look at this pictrue (http://webinsel.lion.cc/ibiza/130083/picture1.jpg
as you can see i get 2 different Diameters D1 and D2. You can see this circle as a ellipse, so D1 and D2 are the 2 half axes.
I get all n time/way new measurment datas.
K1 and K2, with this value i get the information about the position of the ellipse. http://webinsel.lion.cc/ibiza/130083/picture2.jpg

So this information i had to visual. I dont't want to texture it, no shadow etc. only draw some lines. What and How should i do ?

Lot's of thanks
christian

[This message has been edited by cebner (edited 04-13-2003).]

cBe
04-12-2003, 11:54 PM
points for the ellipse
for ( angle=0.0; angle <2*PI; angle += PI/100)
{
r = 1.0 /sqrt(cos(angle)*cos(angle)/D1+
sin(angle)*sin(angle)/D2);
fprintf(result,"%.3f %.3f\n",
r*cos(angle), r* sin(angle));
}

---
cBe