diff --git a/src/union.cpp b/src/union.cpp index 6c1166353f9529d95ed52608cfc57ccac32f317f..9e17540353678311fcd6380f9516aaa309e4a353 100644 --- a/src/union.cpp +++ b/src/union.cpp @@ -5,6 +5,19 @@ #include <intersections.h> #include <triangulation.h> +std::vector<Triangle> unionize2(const Triangle &t1, const Triangle &t2) { + // if neighbours, do nothing + if (t1.neighbours(t2)) { + return std::vector{t1, t2}; + } + + // look for points in triangles + // if 0 points in triangles + // check if triangles intersect + // if 1 point in triangle + // +} + std::vector<Triangle> unionize(const Triangle &t1, const Triangle &t2) { // if neighbours, do nothing