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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user