MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / has_intersection

Function has_intersection

src/ifcgeom/kernels/opencascade/loft.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace {
39template <typename T, typename Cmp = std::less<T>>
40bool 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
58bool OpenCascadeKernel::convert(const taxonomy::loft::ptr loft, TopoDS_Shape& result) {

Callers 1

convertMethod · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected