Click here to Skip to main content
16,005,222 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp987629-Nov-08 23:06
cp987629-Nov-08 23:06 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp30-Nov-08 7:17
darrellp30-Nov-08 7:17 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98761-Dec-08 15:11
cp98761-Dec-08 15:11 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp1-Dec-08 17:19
darrellp1-Dec-08 17:19 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
darrellp1-Dec-08 19:27
darrellp1-Dec-08 19:27 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98762-Dec-08 19:54
cp98762-Dec-08 19:54 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 41945933-Dec-08 3:27
Member 41945933-Dec-08 3:27 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98763-Dec-08 10:19
cp98763-Dec-08 10:19 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
Member 41945933-Dec-08 10:58
Member 41945933-Dec-08 10:58 
GeneralRe: How to find 3rd coordinate of a triangle given 2 others Pin
cp98763-Dec-08 13:04
cp98763-Dec-08 13:04 
QuestionSegment Polygon Intersection Pin
hockymot2008_200916-Oct-08 0:28
hockymot2008_200916-Oct-08 0:28 
AnswerRe: Segment Polygon Intersection [modified] Pin
Alan Balkany16-Oct-08 3:29
Alan Balkany16-Oct-08 3:29 
AnswerRe: Segment Polygon Intersection Pin
Alan Balkany16-Oct-08 3:35
Alan Balkany16-Oct-08 3:35 
GeneralRe: Segment Polygon Intersection Pin
hockymot2008_200916-Oct-08 17:21
hockymot2008_200916-Oct-08 17:21 
GeneralRe: Segment Polygon Intersection [modified] Pin
Alan Balkany17-Oct-08 3:23
Alan Balkany17-Oct-08 3:23 
GeneralRe: Segment Polygon Intersection Pin
hockymot2008_200917-Oct-08 3:35
hockymot2008_200917-Oct-08 3:35 
GeneralRe: Segment Polygon Intersection Pin
Member 41945933-Dec-08 11:02
Member 41945933-Dec-08 11:02 
GeneralRe: Segment Polygon Intersection Pin
Alan Balkany3-Dec-08 11:07
Alan Balkany3-Dec-08 11:07 
GeneralRe: Segment Polygon Intersection Pin
Member 41945933-Dec-08 12:22
Member 41945933-Dec-08 12:22 
GeneralRe: Segment Polygon Intersection Pin
Alan Balkany4-Dec-08 3:28
Alan Balkany4-Dec-08 3:28 
GeneralRe: Segment Polygon Intersection Pin
Member 41945934-Dec-08 4:24
Member 41945934-Dec-08 4:24 
GeneralRe: Segment Polygon Intersection Pin
darrellp28-Nov-08 21:10
darrellp28-Nov-08 21:10 
Depends on your situation. You should probably do a bounding box check first since it's simple, quick and will eliminate a lot of lines.

There's an entire book essentially on this subject:
http://www.amazon.com/Real-Time-Collision-Detection-Interactive-Technology/dp/1558607323/ref=sr_1_1?ie=UTF8&s=books&qid=1227945892&sr=1-1[^]

Some of the things you need to think about:
Are your polygons convex or can they be concave?
Are you testing fixed polygons against a series of lines or does the polygon change with each test?
Are your lines more likely to miss than not?

BSP trees are worth looking into if you really want to squeeze every last drop of performance. They're a bit complex, though and mostly good for lots of lines testing against a single polygon.
Questionplz help me Pin
luna201015-Oct-08 1:50
luna201015-Oct-08 1:50 
AnswerRe: plz help me Pin
CPallini15-Oct-08 2:21
mveCPallini15-Oct-08 2:21 
AnswerRe: plz help me Pin
73Zeppelin15-Oct-08 5:27
73Zeppelin15-Oct-08 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.