depthDelta static method
Compute the change in depth as an edge is crossed from R to L
Implementation
static int depthDelta(Label label) {
int lLoc = label.getLocationWithPosIndex(0, Position.LEFT);
int rLoc = label.getLocationWithPosIndex(0, Position.RIGHT);
if (lLoc == Location.INTERIOR && rLoc == Location.EXTERIOR)
return 1;
else if (lLoc == Location.EXTERIOR && rLoc == Location.INTERIOR) return -1;
return 0;
}