boolean sweepVertical ( EditShape shape , double tolerance ) { setEditShape_ ( shape ) ; m_b_cracked = false ; m_tolerance = tolerance ; m_tolerance_sqr = tolerance * tolerance ; m_complications = false ; boolean bresult = sweepImpl_ ( ) ; if ( ! m_complications ) { int filtered = shape . filterClosePoints ( tolerance , true , false ) ; m_complications = filtered == 1 ; bresult |= filtered == 1 ; } if ( m_vertex_cluster_index != - 1 ) { m_shape . removeUserIndex ( m_vertex_cluster_index ) ; m_vertex_cluster_index = - 1 ; } m_shape = null ; return bresult ; }
Does one pass sweep vertically