mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-13 02:32:09 +10:00
Improved trace proximity calculation to avoid showing false positives
This commit is contained in:
@@ -885,8 +885,13 @@ public class DrawingManager {
|
|||||||
List<ContinuityArea> continuityAreas = getContinuityAreas();
|
List<ContinuityArea> continuityAreas = getContinuityAreas();
|
||||||
Stroke s = ObjectCache.getInstance().fetchBasicStroke(threshold - 1); // value eyeballed for
|
Stroke s = ObjectCache.getInstance().fetchBasicStroke(threshold - 1); // value eyeballed for
|
||||||
// approx good results
|
// approx good results
|
||||||
List<Area> expanded = continuityAreas.parallelStream()
|
|
||||||
.map((a) -> new Area(s.createStrokedShape(a.getArea()))).collect(Collectors.toList());
|
List<Area> areas = new ArrayList<>(continuityAreas.stream().map(ContinuityArea::getArea).toList());
|
||||||
|
AreaUtils.crunchAreas(areas, null);
|
||||||
|
|
||||||
|
List<Area> expanded = areas.parallelStream()
|
||||||
|
.map((a) -> new Area(s.createStrokedShape(a))).toList();
|
||||||
|
|
||||||
List<Area> intersections = new ArrayList<Area>();
|
List<Area> intersections = new ArrayList<Area>();
|
||||||
for (int i = 0; i < expanded.size() - 1; i++) {
|
for (int i = 0; i < expanded.size() - 1; i++) {
|
||||||
for (int j = i + 1; j < expanded.size(); j++) {
|
for (int j = i + 1; j < expanded.size(); j++) {
|
||||||
|
|||||||
@@ -297,6 +297,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Increased tolerance of sticky points on guitar pickup terminals in order to make it easier for leads to make proper contact and for the circuit analyzer to work</description>
|
<description>Increased tolerance of sticky points on guitar pickup terminals in order to make it easier for leads to make proper contact and for the circuit analyzer to work</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Improved trace proximity calculation to avoid showing false positives</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>BUG_FIX</changeType>
|
<changeType>BUG_FIX</changeType>
|
||||||
<description>If the internet connection is present, but unstable, the application starts but nothing can be clicked until the connection restores</description>
|
<description>If the internet connection is present, but unstable, the application starts but nothing can be clicked until the connection restores</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user