Skip to content
Permalink
8f54553923
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (21 sloc) 764 Bytes
public class Face {
HalfEdge outerComponent;
ArrayList<HalfEdge> innerComponents;
public Face(HalfEdge ref, PointList points) {
if (CompGeo.signedArea(ref) < 0) { outerComponent = ref; }
else { outerComponent = CompGeo.findTightOuterBoundary(ref, points); }
innerComponents = CompGeo.findFriends(outerComponent, points);
}
public void printFace() {
System.out.println("Outer Face:");
if (outerComponent != null) { outerComponent.printRNext(); }
System.out.println();
System.out.println("Inner Components:");
int num = innerComponents.size();
for (int i = 0; i < num; i++) {
System.out.println("COMPONENT[" + i + "]");
innerComponents.get(i).printRNext();
}
System.out.println();
}
}