removeChain(face, edgeFrom, edgeTo) {
        // Special case: all edges removed
        if (edgeTo.next === edgeFrom) {
            this.deleteFace(face);
            return;
        }
        for (let edge = edgeFrom; edge !== edgeTo.next; edge = edge.next) {
            face.remove(edge);
            this.edges.delete(edge);      // delete from PlanarSet of edges and update index
            if (face.isEmpty()) {
                this.deleteFace(face);    // delete from PlanarSet of faces and update index
                break;
            }
        }
    }
/**
     * Delete chain of edges from the face.
     * @param {Face} face Face to remove chain
     * @param {Edge} edgeFrom Start of the chain of edges to be removed
     * @param {Edge} edgeTo End of the chain of edges to be removed
     */
Delete chain of edges from the face.
@param {Face} face Face to remove chain
@param {Edge} edgeFrom Start of the chain of edges to be removed
@param {Edge} edgeTo End of the chain of edges to be removed
Delete chain of edges from the face . @param { Face } face Face to remove chain @param { Edge } edgeFrom Start of the chain of edges to be removed @param { Edge } edgeTo End of the chain of edges to be removed
removeChain(face, edgeFrom, edgeTo) {
        if (edgeTo.next === edgeFrom) {
            this.deleteFace(face);
            return;
        }
        for (let edge = edgeFrom; edge !== edgeTo.next; edge = edge.next) {
            face.remove(edge);
            this.edges.delete(edge);      
            if (face.isEmpty()) {
                this.deleteFace(face);    
                break;
            }
        }
    }
removeChain ( face , edgeFrom , edgeTo ) { if ( edgeTo . next === edgeFrom ) { this . deleteFace ( face ) ; return ; } for ( let edge = edgeFrom ; edge !== edgeTo . next ; edge = edge . next ) { face . remove ( edge ) ; this . edges . delete ( edge ) ; if ( face . isEmpty ( ) ) { this . deleteFace ( face ) ; break ; } } }
Delete chain of edges from the face.
Delete chain of edges from the face .
// Special case: all edges removed // delete from PlanarSet of edges and update index // delete from PlanarSet of faces and update index