Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, degenerate_762), 642 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Finding parcels in a road network [Re: PadMalcom] #431372
10/15/13 10:14
10/15/13 10:14
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Originally Posted By: PadMalcom
How do I find the neighbour? My roads consist of ~100 vertices.

I mean that the neighbors to be computed are the crossroads. The roads are created from crossroad to crossroad as links, aren't they? So the points on the shape are crossroads. The segments between points need to follow the road path that connects them, straight or curved, it is not important.

Originally Posted By: PadMalcom
What if a shape is not closed? If you watch a voronoi diagramm it has ends that don't form a polygon.

The shape surrounds deadends and always closes itself. Look at this picture:

The only problem is to identify witch shape is the outside, but not really a problem: it is the largest one.

Originally Posted By: PadMalcom
Furthermore, there can be more than 2 networks that are not connected. Again a special case that is not covered by your idea.

In the moment you have the outside shapes of more than one net, they need to be considered as inside shapes of a global outern shape.


Originally Posted By: PadMalcom
But thanks anyway! I'm very glad you are thinking with me!

Happy to help... if that helps wink

Re: Finding parcels in a road network [Re: txesmi] #431407
10/15/13 19:47
10/15/13 19:47
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
I went from theory to practice.

download




Left click to create new cross points. Drag a cross point to another cross point to connect them. Don't try to cross lines without a cross point because it will probably crash... it is just a simple example for proving that the method works wink

Re: Finding parcels in a road network [Re: txesmi] #431412
10/15/13 20:10
10/15/13 20:10
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Very nice example txesmi. Thanks for sharing!

Re: Finding parcels in a road network [Re: oliver2s] #431422
10/15/13 22:12
10/15/13 22:12
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Pleased to be useful grin

I commented the code a bit in order to be more understandable.

Salud!

Re: Finding parcels in a road network [Re: txesmi] #431433
10/16/13 07:02
10/16/13 07:02
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Nice example, but now try to generate a mesh or a polygon out of all the black areas. Oh and please consider such a network, too laugh



EDIT: This example should result in 2 polygons / meshes.

Last edited by PadMalcom; 10/16/13 07:02.
Re: Finding parcels in a road network [Re: PadMalcom] #431440
10/16/13 08:21
10/16/13 08:21
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
It is clear that the method is only valid to identify the figures that make up the interstices: a necessary first step to end up doing what you want.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1