| 38 | namespace { |
| 39 | template <typename T, typename Cmp = std::less<T>> |
| 40 | bool has_intersection(const std::set<T, Cmp>& A, |
| 41 | const std::set<T, Cmp>& B) { |
| 42 | auto itA = A.begin(); |
| 43 | auto itB = B.begin(); |
| 44 | |
| 45 | while (itA != A.end() && itB != B.end()) { |
| 46 | if (Cmp()(*itA, *itB)) { |
| 47 | ++itA; |
| 48 | } else if (Cmp()(*itB, *itA)) { |
| 49 | ++itB; |
| 50 | } else { |
| 51 | return true; |
| 52 | } |
| 53 | } |
| 54 | return false; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | bool OpenCascadeKernel::convert(const taxonomy::loft::ptr loft, TopoDS_Shape& result) { |