2020 10 18 Long merged lines - syntaxmonkey/Thesis GitHub Wiki

In the current implementation, the lines span a single region. We make attempts to "merge" lines between regions. However, the seams between the regions, the connection points between the lines are still very much visible.

We will attempt to merge the lines such that they are continuous across multiple regions. Also, instead of simply connecting the lines between different regions, we will attempt to redraw the lines through each region.

Reduce the number of regions

Before attempting to create multi-region continuous lines, we will attempt to etch the images with reduced number of regions: 50 and 100.

Result

Although the regions are larger and hence the lines are longer, the resulting images lose some features in the image.

Extra long lines

We want to merge lines such that they appear continuous across multiple regions.

Current approach

Currently we pair the end points that are closest together along an edge. We average the end points and then set the end points to the average location.

Desired approach

To make the lines appear continuous across several regions, we will make the following modifications to the process.

  1. The first option is to merge the closest point pairs. This has the consequence of leaving some lines dangling.
  2. The second option is to merge all closest point pairs. This has the consequence of leaving no dangling lines.

Bridson_Common.findClosestIndex()

This is the current method that finds the two closest end points.

Let's pair all endpoints

Write a method to pair all endpoints.