/** * Creates a new triangle from the given edges. * * @param edge an array of the edges of the triangle in CCW order */ public QuadEdgeTriangle(QuadEdge[] edge) { this.edge = (QuadEdge[]) Arrays.copyOf(edge, edge.length); // link the quadedges back to this triangle for (int i = 0; i < 3; i++) { edge[i].setData(this); } }