Click here to Skip to main content
15,888,461 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Snake game problem Pin
Luc Pattyn13-Jan-10 14:40
sitebuilderLuc Pattyn13-Jan-10 14:40 
AnswerRe: Snake game problem Pin
pewtas23-Feb-10 20:16
pewtas23-Feb-10 20:16 
GeneralRe: Snake game problem Pin
venomation4-Mar-10 1:25
venomation4-Mar-10 1:25 
QuestionGeometry problem Pin
Daniel.Sturza27-Dec-09 3:03
Daniel.Sturza27-Dec-09 3:03 
AnswerRe: Geometry problem Pin
Luc Pattyn27-Dec-09 3:10
sitebuilderLuc Pattyn27-Dec-09 3:10 
GeneralRe: Geometry problem [modified] Pin
Daniel.Sturza27-Dec-09 3:45
Daniel.Sturza27-Dec-09 3:45 
AnswerRe: Geometry problem Pin
harold aptroot27-Dec-09 4:33
harold aptroot27-Dec-09 4:33 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 5:31
Daniel.Sturza27-Dec-09 5:31 
I know this is a hard one ... I've been trying to find a workable solution for a week now.
So ... they are segments indeed - nothing to do about that. But any idea if they weren't is also welcome. (I've tried something where each polygon is just a intersection of semi-planes plus a lot of orientation vectors, but nothing has come yet ...)
What these segment represent ? Shapes - 2D slices through complex mechanical 3D objects or assemblies manually retouched (rightfully or not). Or in the worst case a series of slices one over the other in the same spot (actually this is more the case - I have very few simple shapes). There is nothing specific about them in the meaning they are either closed polygons or not, concave/convex or not or undefinable. They are somehow grouped (per initial object), but doesn't follow any logic in the order of definition. I found simple rectangles defined by 4 segments in 1,2,3,4 counterclockwise order starting from the top as often as 1,3,2,4 (side - opposite side). Arcs/circles/curves are defined as a fragmented series of segments, but not necessarily in order. Don't start me on the more complex shapes. But I did managed to order them so they follow a logic order (ccw from Ox) and where they intersect I broke each of them in two so I can have only adjacent polygons and not crossing ones. (The actual definitions for these shapes comes from some dxf files - if it matters). But I still have single segments not connected to anything else.

As per condition c) ... that is the biggest problem : I need the biggest rectangle where I can fit something without touching anything else.
Where I can be a little malleable is the (Xref,Yref) point. This is now the geometric center of culling polygon that enclose the original object.
AnswerRe: Geometry problem Pin
Luc Pattyn27-Dec-09 5:28
sitebuilderLuc Pattyn27-Dec-09 5:28 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 5:52
Daniel.Sturza27-Dec-09 5:52 
GeneralRe: Geometry problem Pin
Luc Pattyn27-Dec-09 6:10
sitebuilderLuc Pattyn27-Dec-09 6:10 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 7:13
Daniel.Sturza27-Dec-09 7:13 
AnswerRe: Geometry problem Pin
ProtoBytes28-Dec-09 6:21
ProtoBytes28-Dec-09 6:21 
AnswerRe: Geometry problem [modified] Pin
ProtoBytes28-Dec-09 9:05
ProtoBytes28-Dec-09 9:05 
GeneralRe: Geometry problem Pin
Daniel.Sturza28-Dec-09 16:06
Daniel.Sturza28-Dec-09 16:06 
GeneralRe: Geometry problem Pin
belzu29-Dec-09 4:52
belzu29-Dec-09 4:52 
AnswerRe: Geometry problem Pin
belzu29-Dec-09 4:35
belzu29-Dec-09 4:35 
AnswerRe: Geometry problem Pin
Skippums13-Jan-10 11:32
Skippums13-Jan-10 11:32 
QuestionPair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes24-Dec-09 12:11
ProtoBytes24-Dec-09 12:11 
RantRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes29-Dec-09 14:26
ProtoBytes29-Dec-09 14:26 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan29-Dec-09 23:05
mveRichard MacCutchan29-Dec-09 23:05 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes30-Dec-09 6:27
ProtoBytes30-Dec-09 6:27 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan30-Dec-09 10:52
mveRichard MacCutchan30-Dec-09 10:52 
QuestionGraph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 6:21
harold aptroot23-Dec-09 6:21 
AnswerRe: Graph algorithms on bitgraphs Pin
Luc Pattyn23-Dec-09 7:00
sitebuilderLuc Pattyn23-Dec-09 7:00 

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.