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

started contourizing

parent 61c7ff5c
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,8 @@
#include <vector>
#include <optional>
#include <intersections/intersections.h>
std::vector<Point> contourize(std::vector<Point> points) {
}
#include <contourize/contourize.h>
#include <triangulation/triangulation.h>
std::vector<Triangle> unionize(Triangle t1, Triangle t2) {
......@@ -22,7 +20,7 @@ std::vector<Triangle> unionize(Triangle t1, Triangle t2) {
return std::vector{t1, t2};
}
std::vector<Point> contour = contourize();
std::vector<Point> contour = contourize(t1, t2, newIntersections);
return triangulate(contour);
}
......
#include "gtest/gtest.h"
#include <contourize/contourize.h>
#include <intersections/intersections.h>
TEST(ContourizeTest, TwoTriangles) {
auto t1 = Triangle(Point(0,0), Point(2,3), Point(5,0), 0);
auto t2 = Triangle(Point(3,1), Point(4,3), Point(6,1), 0);
auto newIntersections = intersections(t1, t2);
auto contour = contourize(t1, t2, newIntersections);
//EXPECT_EQ();
}
\ No newline at end of file
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