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 concave polygons

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    provo,utah,USA
    Posts
    17

    Drawing concave polygons

    I have to draw convex and concave polygons. By clicking the mouse, the user adds a point and the polygon updates itself.
    How can I do it?
    I appreciate your help.
    LD

    PS: Polygon in 2D

    [This message has been edited by fandecine (edited 10-14-2002).]

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: Drawing concave polygons

    Hi !

    Take a look at the GLU tesselator, it takes a concave polygon and converts it into triangles, strips, fans or lines for you.

    (gluBeginPolygon,gluEndPolygon...)

    Mikael

Posting Permissions

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