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
27 lines
671 B
Java
27 lines
671 B
Java
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 );
|
|
}
|
|
}
|