Results 1 to 7 of 7

Thread: what is a polygon?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312

    what is a polygon?

    hehe, someone must know, someone i know thinks its faces, and it ihnk its triangles!

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    OK no offense but I busted a seam laughing over this one. Remember your basic highschool math:

    Polygon: a closed curve with straight sides

    Translation: a bunch of little lines that all touch each other
    Ex: squares, triangles, pentagons, and anything else that doesn't have holes.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3
    Zaei
    Guest
    A curve doesnt, by definition, have straight edges =).

    Any 2 dimensional figure with 3 or more straight edges is a polygon. When moving into 3 dimensions, the figure must be coplanar.

    Z.

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    *AHEM*

    First, a curve CAN be a straight segment; ever take calculus? Or algebra II? or geometry? or 1st grade math? (j/k on the last one)

    Second, it MUST BE CLOSED. All segments must contact exactly two others on their endpoints. Crossing lines and lines that don't touch disqualify a curve from being a polygon.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    Zaei
    Guest
    My bad. No, ive never taken Calculus =(, and didnt learn a thing in Algebra II (knew most every bit of it already...). I bow to your superior knowledge =).

    Z.

  6. #6
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    *cough* ...

    Since we're in a game programming forum here the definition of a polygon would be:

    A class containing at least:
    - 3 corner points (or links to them) that are stored in a certain direction (cw or ccw)
    - Can also support a color
    - And/or several maps (like a texture)
    - Other Properties, depending on how you need it (ie. if this polygon is collidable, transparent, etc.)

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312
    <pre>
    <html>
    <h1>hi
    </html>

    <font color=#008000>'Code improved by </font><a href="http://fox.acky.net/downloads/vbtool.zip"><font color=#000000>v</font><font color=#100000>B</font><font color=#200000>u</font><font color=#300000>l</font><font color=#400000>l</font><font color=#500000>e</font><font color=#600000>t</font><font color=#700000>i</font><font color=#800000>n Tool 2.0</font></a>
    </pre>

    h0h0h0, just trying that out, i dunno what the hell it does though, certainly didnt improve that code!

    thanx fo rthe polygon help

Posting Permissions

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



Click Here to Expand Forum to Full Width