Skip to content

Commit

Permalink
fix include
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish committed Jul 27, 2023
1 parent 59760b3 commit a0a87ae
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/polygon/src/polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#endif
#include <list>
#include <map>
#if !__APPLE__
#if __has_include(<memory_resource>)
#include <memory_resource>
#endif
#include <queue>
Expand Down Expand Up @@ -311,14 +311,7 @@ class Monotones {
struct VertAdj;
struct EdgePair;
enum VertType { Start, WestSide, EastSide, Merge, End, Skip };
#if __APPLE__
typedef std::list<VertAdj>::iterator VertItr;
typedef std::list<EdgePair>::iterator PairItr;

std::list<VertAdj> monotones_; // sweep-line list of verts
std::list<EdgePair> activePairs_; // west to east monotone edges
std::list<EdgePair> inactivePairs_; // completed monotones
#else
#if __has_include(<memory_resource>)
typedef std::pmr::list<VertAdj>::iterator VertItr;
typedef std::pmr::list<EdgePair>::iterator PairItr;

Expand All @@ -327,6 +320,13 @@ class Monotones {
std::pmr::list<VertAdj> monotones_{pa}; // sweep-line list of verts
std::pmr::list<EdgePair> activePairs_{pa}; // west to east monotone edges
std::pmr::list<EdgePair> inactivePairs_{pa}; // completed monotones
#else
typedef std::list<VertAdj>::iterator VertItr;
typedef std::list<EdgePair>::iterator PairItr;

std::list<VertAdj> monotones_; // sweep-line list of verts
std::list<EdgePair> activePairs_; // west to east monotone edges
std::list<EdgePair> inactivePairs_; // completed monotones
#endif
float precision_; // a triangle of this height or less is degenerate

Expand Down

0 comments on commit a0a87ae

Please sign in to comment.