src/ccstruct/stepblob.cpp
void C_BLOB::CheckInverseFlagAndDirection() {
  C_OUTLINE_IT ol_it(&outlines);
  for (ol_it.mark_cycle_pt(); !ol_it.cycled_list(); ol_it.forward()) {
    C_OUTLINE *outline = ol_it.data();
    if (outline->turn_direction() < 0) {
      outline->reverse();
      reverse_outline_list(outline->child());
      outline->set_flag(COUT_INVERSE, true);
    } else {
      outline->set_flag(COUT_INVERSE, false);
    }
  }
}
// Sets the COUT_INVERSE flag appropriately on the outlines and their
// children recursively, reversing the outlines if needed so that
// everything has an anticlockwise top-level.
Sets the COUT_INVERSE flag appropriately on the outlines and their
children recursively, reversing the outlines if needed so that
everything has an anticlockwise top-level.
Sets the COUT_INVERSE flag appropriately on the outlines and their children recursively reversing the outlines if needed so that everything has an anticlockwise top - level .
void C_BLOB::CheckInverseFlagAndDirection() {
  C_OUTLINE_IT ol_it(&outlines);
  for (ol_it.mark_cycle_pt(); !ol_it.cycled_list(); ol_it.forward()) {
    C_OUTLINE *outline = ol_it.data();
    if (outline->turn_direction() < 0) {
      outline->reverse();
      reverse_outline_list(outline->child());
      outline->set_flag(COUT_INVERSE, true);
    } else {
      outline->set_flag(COUT_INVERSE, false);
    }
  }
}
void C_BLOB :: CheckInverseFlagAndDirection ( ) { C_OUTLINE_IT ol_it ( & outlines ) ; for ( ol_it . mark_cycle_pt ( ) ; ! ol_it . cycled_list ( ) ; ol_it . forward ( ) ) { C_OUTLINE * outline = ol_it . data ( ) ; if ( outline -> turn_direction ( ) < 0 ) { outline -> reverse ( ) ; reverse_outline_list ( outline -> child ( ) ) ; outline -> set_flag ( COUT_INVERSE , true ) ; } else { outline -> set_flag ( COUT_INVERSE , false ) ; } } }
Sets the COUT_INVERSE flag appropriately on the outlines and their
children recursively, reversing the outlines if needed so that
everything has an anticlockwise top-level.
Sets the COUT_INVERSE flag appropriately on the outlines and their children recursively reversing the outlines if needed so that everything has an anticlockwise top - level .