/** * Tests whether this triangle is adjacent to the outside of the subdivision. * * @return true if the triangle is adjacent to the subdivision exterior */ public boolean isBorder() { for (int i = 0; i < 3; i++) { if (getAdjacentTriangleAcrossEdge(i) == null) return true; } return false; }
public boolean isBorder(int i) { return getAdjacentTriangleAcrossEdge(i) == null; }
public int getAdjacentTriangleEdgeIndex(int i) { return getAdjacentTriangleAcrossEdge(i).getEdgeIndex(getEdge(i).sym()); }