How to draw a Star-Shaped regular Polygon??

This is a discussion on How to draw a Star-Shaped regular Polygon?? within the C++ Programming forums, part of the General Programming Boards category; I need to know about the algorithm to draw a star-shaped polygon. My problem is : give a (x,y) co-ordinate ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Question How to draw a Star-Shaped regular Polygon??

    I need to know about the algorithm to draw a star-shaped polygon. My problem is : give a (x,y) co-ordinate and a lenth d, how i use Bresenham or DDA algorithm to draw a star-shaped???

    In addition: How i can draw a line with negative ordinate , such as : from (3,5) to (-12,6).
    How to convert the descartes co-ordinate to screen co-ordinate??

    Thanks

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    I suspect the ways to do this are as varied as are the number of operating systems and/or graphical user interface you are trying to use. Please post what operating system you use, the compiler you are using, the target system you are writing for and any graphics library you are using: for example

    Windows, MSVC6.0, Console Program, ASCII art

    or

    Windows, VS.net, Windows, DirectX

    or

    Linux, DevC++ 4.9, Windows, OpenGL

    etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Point in polygon test - spherical coords
    By bhdz in forum C Programming
    Replies: 1
    Last Post: 11-07-2007, 12:25 PM
  2. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 10:56 PM
  3. draw function HELP!!!
    By sunoflight77 in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 11:28 PM
  4. IDEA: Polygon unions and intersections
    By Magos in forum Contests Board
    Replies: 3
    Last Post: 05-21-2003, 07:16 PM
  5. ray casting
    By lambs4 in forum Game Programming
    Replies: 62
    Last Post: 01-09-2003, 05:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21