int removePath ( int path ) { int prev = getPrevPath ( path ) ; int next = getNextPath ( path ) ; int geometry = getGeometryFromPath ( path ) ; if ( prev != - 1 ) setNextPath_ ( prev , next ) ; else { setFirstPath_ ( geometry , next ) ; } if ( next != - 1 ) setPrevPath_ ( next , prev ) ; else { setLastPath_ ( geometry , prev ) ; } clearPath ( path ) ; setGeometryPathCount_ ( geometry , getPathCount ( geometry ) - 1 ) ; freePath_ ( path ) ; return next ; }
Removes a path gets rid of all its vertices and returns the next one