Thread: How to draw a Star-Shaped regular Polygon??

  1. #1
    Registered User
    Join Date
    Oct 2004

    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??


  2. #2
    Registered User
    Join Date
    Mar 2002
    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


    Windows,, Windows, DirectX


    Linux, DevC++ 4.9, Windows, OpenGL


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, 01:25 PM
  2. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 11: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, 06:57 PM