2020 08 23 Merging lines between regions - syntaxmonkey/Thesis GitHub Wiki
Merge lines between regions
We can now merge lines between points. Before merging, the lines come close together. The following screen shot shows the discontinuity. The Yellow 'x' indicate the endpoints for the left region. The green 'x' indicate the endpoints of the right region. The red lines are the region separators.
With merging, we can connect two lines across the two regions. The screen shot below shows one pair of lines connected.
Increase blur of region mask each iteration
In certain cases, a trifinder cannot be generated for certain regions.
On solution is to increase the blur factor used on the raster mask.
This seems to work.
Improving line merging
When the lines in different regions have different angles, merging the lines does not produce a v-shaped line that doesn't look like a single continuous line.
One option for improve the appearance of the line is to remove the end points from both lines. The second point from the end then becomes the new end points. The middle location between the two points becomes the new intersection between the two lines. This approach requires the two lines to have at least 3 points.
Control angle of lines
We can now control the general angle of the lines in the original mesh regions. Because there are contours in the regions, the contour lines are not going to follow the intended angle directly. Here are a few images
0 degrees
45 degrees