From 69cce454fb23d143fde477a1ad9f318215e986b4 Mon Sep 17 00:00:00 2001 From: Brandon Lai-Cheong <blaicheo@uwaterloo.ca> Date: Fri, 8 Nov 2024 11:13:57 -0500 Subject: [PATCH] init new union --- src/union.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/union.cpp b/src/union.cpp index 6c11663..9e17540 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 -- GitLab