PDA

Click to See Complete Forum and Search --> : what is a polygon?


JafferAB
Nov 6th, 2001, 05:37 PM
hehe, someone must know, someone i know thinks its faces, and it ihnk its triangles!

mlewis
Nov 6th, 2001, 06:04 PM
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.

Zaei
Nov 6th, 2001, 06:07 PM
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.

mlewis
Nov 6th, 2001, 06:31 PM
*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.

Zaei
Nov 6th, 2001, 06:57 PM
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.

Fox
Nov 7th, 2001, 06:51 AM
*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.)

JafferAB
Nov 7th, 2001, 06:57 AM
<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 :D