addEndpoints method
void
addEndpoints()
Adds entries for the first and last points of the edge to the list
Implementation
void addEndpoints() {
int maxSegIndex = edge.pts.length - 1;
add(edge.pts[0], 0, 0.0);
add(edge.pts[maxSegIndex], maxSegIndex, 0.0);
}