Fix inconsistencies

Use linked hash set for reproducibility when required
Split chain generation into three smaller methods
Fixed error when certain chains skip certain vertices, specifically after splitting a partition
Hide internal classes
Add conversion to external classes when returning data
Update the polygon viewer
Update chain intersections in parallel
Sort edges cleaner
Resolve some TODOs
This commit is contained in:
2025-05-23 00:35:39 -04:00
parent e5f98f6844
commit 29a0c04fae
5 changed files with 480 additions and 278 deletions

View File

@@ -0,0 +1,26 @@
package com.aaaaahhhhhhh.bananapuncher714.mesh;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Chain {
protected List< Point > points = new ArrayList< Point >();
protected List< Chain > intersections = new ArrayList< Chain >();
public Point getStart() {
return points.get( 0 );
}
public Point getEnd() {
return points.get( points.size() - 1 );
}
public List< Point > getPoints() {
return Collections.unmodifiableList( points );
}
public List< Chain > getIntersections() {
return Collections.unmodifiableList( intersections );
}
}