Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Drawing an Arc in 3D

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2010
    Posts
    4

    Drawing an Arc in 3D

    Hey Guys,

    im trying to draw an arc in an 3D space. So i have two points p1 and p2 (start and endpoint of the arc) and the angle between these two points. Now i want to draw an arc between these two points but i dont know how to do that

    *EDIT*: Of course i have centerpoint too!

    I know that i can calculate x and y by using cos und sin functions but i dont know how to calculate the z coordinate

    Can anybody help me ?

    greetings raven22k
    Last edited by raven22k; 05-07-2012 at 07:57 AM.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128
    Why don't you go for something like http://en.wikipedia.org/wiki/B%C3%A9zier_curve ? Or generally splines?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •