Splitting landscape into chunks in 2.1.3

Topics: User Forum
Oct 6, 2010 at 4:02 PM

I know that large tex2pol landscapes should be split into chunks, but how do I do it? If I want to do it like in the manual (vertically), how does it happen? I know this has been discussed before, but I haven't found any concrete examples, and I've ran out of ideas.

Shouldn't be too hard, right?

Coordinator
Oct 7, 2010 at 8:04 AM

It is not too hard. One way of doing it is to do it manually, another is to calculate the AABB of the polygon, walk x pixels along the X-axis (on the boundary of the AABB) , insert the first point of a line and then the next point of the line at (x,y)+y. Now you have a line that you can check for intersections against your polygon. Insert points in the polygon where the line intersects the polygon. There you have it.