MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / Reset

Method Reset

CPP/Clipper2Lib/src/clipper.engine.cpp:786–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784
785
786 void ClipperBase::Reset()
787 {
788 if (!minima_list_sorted_)
789 {
790 std::stable_sort(minima_list_.begin(), minima_list_.end(), LocMinSorter()); //#594
791 minima_list_sorted_ = true;
792 }
793 LocalMinimaList::const_reverse_iterator i;
794 for (i = minima_list_.rbegin(); i != minima_list_.rend(); ++i)
795 InsertScanline((*i)->vertex->pt.y);
796
797 current_locmin_iter_ = minima_list_.begin();
798 actives_ = nullptr;
799 sel_ = nullptr;
800 succeeded_ = true;
801 }
802
803
804#ifdef USINGZ

Callers

nothing calls this directly

Calls 3

LocMinSorterClass · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected