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

Algorithms

 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 4:07
JustWorking14-Jun-11 4:07 
GeneralRe: Eye-like Algorithm Pin
Alan Balkany14-Jun-11 4:51
Alan Balkany14-Jun-11 4:51 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 20:27
JustWorking14-Jun-11 20:27 
QuestionPolygons from Points Pin
Kyudos31-May-11 15:28
Kyudos31-May-11 15:28 
AnswerRe: Polygons from Points Pin
YDaoust31-May-11 21:22
YDaoust31-May-11 21:22 
GeneralRe: Polygons from Points Pin
Kyudos1-Jun-11 13:32
Kyudos1-Jun-11 13:32 
AnswerRe: Polygons from Points Pin
Luc Pattyn1-Jun-11 15:23
sitebuilderLuc Pattyn1-Jun-11 15:23 
GeneralRe: Polygons from Points Pin
YDaoust1-Jun-11 21:16
YDaoust1-Jun-11 21:16 
Ah, this is quite different from what I had imagined (I thought of much sparser points irregularly arranged) !

There is a much simpler way then.

Consider every rectangular stich (or are they quasi-rectangular ?) in the grid in space and "cut" it with a plane at altitude 20 (say). You test every edge of the stich for intersection with this plane, just by detecting a change of sign in the Z coordinate mins 20. Then linear interpolation gives you the X and Y coordinates of the intersection point.

The Z test is such that you'll get an even number of intersections. When you have two of them, join them with a line segment; when you have four of them, join with two line segments using a nearest neighbor rule.

After doing that, you will obtain a nice polygonal decomposition of your domain. In reality, a C1 continuous approximation of the level curves. This takes two hours to implement.

If you need polylines rather than isolated line segments, it is possible (and not so difficult) to follow paths in the grid: every time you find an intersection in a stich, it is joined to a second intersection point in the same stich; this other intersection point also belongs to the neighboring stich, and so on, and so on.

Is that clear ? If you need more details, please ask me.
GeneralRe: Polygons from Points Pin
YDaoust1-Jun-11 22:37
YDaoust1-Jun-11 22:37 
GeneralRe: Polygons from Points Pin
BobJanova1-Jun-11 22:58
BobJanova1-Jun-11 22:58 
QuestionDatabase of Data Types Pin
Richard Andrew x6429-May-11 20:45
professionalRichard Andrew x6429-May-11 20:45 
AnswerRe: Database of Data Types Pin
Luc Pattyn29-May-11 21:22
sitebuilderLuc Pattyn29-May-11 21:22 
QuestionFast path finding algorithm Pin
alikalik27-May-11 7:08
alikalik27-May-11 7:08 
AnswerRe: Fast path finding algorithm Pin
AspDotNetDev27-May-11 7:31
protectorAspDotNetDev27-May-11 7:31 
AnswerRe: Fast path finding algorithm Pin
Luc Pattyn27-May-11 7:42
sitebuilderLuc Pattyn27-May-11 7:42 
GeneralRe: Fast path finding algorithm Pin
alikalik27-May-11 8:24
alikalik27-May-11 8:24 
AnswerRe: Fast path finding algorithm Pin
Luc Pattyn27-May-11 14:16
sitebuilderLuc Pattyn27-May-11 14:16 
QuestionRe: Fast path finding algorithm Pin
AspDotNetDev27-May-11 9:08
protectorAspDotNetDev27-May-11 9:08 
AnswerRe: Fast path finding algorithm Pin
David I Carter31-May-11 22:29
David I Carter31-May-11 22:29 
AnswerRe: Fast path finding algorithm Pin
Member 41945939-Aug-11 19:42
Member 41945939-Aug-11 19:42 
GeneralRe: Fast path finding algorithm Pin
Member 419459310-Aug-11 3:53
Member 419459310-Aug-11 3:53 
AnswerRe: Fast path finding algorithm Pin
BobJanova1-Jun-11 2:01
BobJanova1-Jun-11 2:01 
AnswerRe: Fast path finding algorithm Pin
dasblinkenlight1-Jun-11 6:52
dasblinkenlight1-Jun-11 6:52 
AnswerRe: Fast path finding algorithm Pin
YDaoust2-Jun-11 0:05
YDaoust2-Jun-11 0:05 
QuestionReal time peak identification Pin
Wjousts25-May-11 4:32
Wjousts25-May-11 4:32 

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.