Skip to content
Snippets Groups Projects
Commit 69cce454 authored by Brandon Lai-Cheong's avatar Brandon Lai-Cheong
Browse files

init new union

parent 1fa96490
No related branches found
No related tags found
1 merge request!2init new union
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment