suprafun / straightedge

Automatically exported from code.google.com/p/straightedge
0 stars 0 forks source link

Routing with an surrounding Polygon #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi.
Your work is nice.
but i have a problem with Routing over an area with blocking.

So i have 1 Polygon that is the border of the area and i have multiple Polygons 
that represents blocking

i've found nothing about how to specify a surrounding Polygon

your algorithm would route around the area not through it.

thanks for helping :)

Original issue reported on code.google.com by youse...@gmail.com on 15 Jun 2011 at 11:20

GoogleCodeExporter commented 8 years ago
Hi,

Thanks, I'm glad you like it. 

Currently there is no support for restricting movement within a polygon 
obstacle. Obstacles can not be penetrated.

To have the effect that you want, you need to make the bordering polygon edge 
lines a series of polygons, like a fence. That way you can be inside the fenced 
area and still move around since you're not inside an obstacle.

Cheers,
Keith 

Original comment by keith...@gmail.com on 16 Jun 2011 at 1:59

GoogleCodeExporter commented 8 years ago
But how make this fence out of n points? I couldn't find a nice way to do it. 
I'd like to be able to add n line segments and buffer them into a nice wall.

Original comment by IvanovAn...@gmail.com on 15 Jan 2014 at 5:33