Re: Math Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jordah,
somewhere in the Archives you will find a little package containing my 
arc.e module. It's for dos only, but if you simply replace pixel routine 
with setpixel, it should work in your beloved window$ too.

jiri


jordah ferguson wrote:

>
>Hi Everyone,
>     I have a problem i want to solve. i have an elliptical polygon and 
>i would like to give it a 3D look, by painting one side of its edges 
>white and the other side gray. To find the start and end point i create 
>a rectangle and disect it diogonally the 45 degree to 225 degree 
>path(edge of ellipse) is shaded white and 225 back to 45degrees 
>clockwise painted grey i.e
>                   |       /
>                   |    /
>                   |/  45degrees
>___________/)____________
>                /  |
>             /     |
>          /        |
>
>I want only the edges of the circle to be painted. Now my main problem 
>is to find a sequence containing the {x,y} points that all lie in the 
>area that needs white and a sequence conating {x,y}'s for the gray area. 
>If it is a true circle i don't think it would be that much of a hassle. 
>The only thing i surely know is that i would have to get the gradient of 
>the curves and do some calculation to get all {x,y}'s..... 
>i think who ever can make an ellipse using setpixel will find this a 
>piece of cake. 
>
> i have no resources and its been a while since i deed this stuff. Any 
>mathematicians to solve this. once i solve this then i will sure handle 
>round rectangles.
>
>Jordah
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu