public boolean isEdge ( GeometryIndex index ) { if ( index . hasChild ( ) ) { return isEdge ( index . getChild ( ) ) ; } return index . getType ( ) == GeometryIndexType . TYPE_EDGE ; }
Does the given index point to an edge or not? We look at the deepest level to check this .