isCollapsed method

bool isCollapsed()

An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V).

Implementation

bool isCollapsed() {
  if (!label!.isArea()) return false;
  if (pts.length != 3) return false;
  if (pts[0].equals(pts[2])) return true;
  return false;
}