|
-
Nov 6th, 2001, 06:37 PM
#1
Thread Starter
Hyperactive Member
what is a polygon?
hehe, someone must know, someone i know thinks its faces, and it ihnk its triangles!
-
Nov 6th, 2001, 07:04 PM
#2
Frenzied Member
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.
-
Nov 6th, 2001, 07:07 PM
#3
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.
-
Nov 6th, 2001, 07:31 PM
#4
Frenzied Member
*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.
-
Nov 6th, 2001, 07:57 PM
#5
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.
-
Nov 7th, 2001, 07:51 AM
#6
PowerPoster
*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.)
-
Nov 7th, 2001, 07:57 AM
#7
Thread Starter
Hyperactive Member
<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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|