src/ccstruct/seam.cpp
void SEAM::BreakPieces(const std::vector<SEAM *> &seams, const std::vector<TBLOB *> &blobs,
                       int first, int last) {
  for (int x = first; x < last; ++x) {
    seams[x]->Reveal();
  }

  TESSLINE *outline = blobs[first]->outlines;
  int next_blob = first + 1;

  while (outline != nullptr && next_blob <= last) {
    if (outline->next == blobs[next_blob]->outlines) {
      outline->next = nullptr;
      outline = blobs[next_blob]->outlines;
      ++next_blob;
    } else {
      outline = outline->next;
    }
  }
}
// Break up the blobs in this chain so that they are all independent.
// This operation should undo the affect of join_pieces.
/* static */
Break up the blobs in this chain so that they are all independent.
This operation should undo the affect of join_pieces.
static
Break up the blobs in this chain so that they are all independent . This operation should undo the affect of join_pieces . static
void SEAM::BreakPieces(const std::vector<SEAM *> &seams, const std::vector<TBLOB *> &blobs,
                       int first, int last) {
  for (int x = first; x < last; ++x) {
    seams[x]->Reveal();
  }
  TESSLINE *outline = blobs[first]->outlines;
  int next_blob = first + 1;
  while (outline != nullptr && next_blob <= last) {
    if (outline->next == blobs[next_blob]->outlines) {
      outline->next = nullptr;
      outline = blobs[next_blob]->outlines;
      ++next_blob;
    } else {
      outline = outline->next;
    }
  }
}
void SEAM :: BreakPieces ( const std :: vector < SEAM * > & seams , const std :: vector < TBLOB * > & blobs , int first , int last ) { for ( int x = first ; x < last ; ++ x ) { seams [ x ] -> Reveal ( ) ; } TESSLINE * outline = blobs [ first ] -> outlines ; int next_blob = first + 1 ; while ( outline != nullptr && next_blob <= last ) { if ( outline -> next == blobs [ next_blob ] -> outlines ) { outline -> next = nullptr ; outline = blobs [ next_blob ] -> outlines ; ++ next_blob ; } else { outline = outline -> next ; } } }
Break up the blobs in this chain so that they are all independent.
Break up the blobs in this chain so that they are all independent .