-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
30 lines (22 loc) · 875 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#include "geometry/geometry.hpp"
#include "utils.hpp"
#include "ui.hpp"
#include "triangles.hpp"
#include "std_vector.hpp"
#include "octree.hpp"
using namespace geometry;
using namespace std;
using namespace octree;
int main ()
{
auto input = get_user_input();
vector<triangle_t> triangles = get_triangles(input);
auto min_max_points = find_extreme_points(input.second);
tree_t<pair<triangle_t, size_t>> tree {min_max_points.first, min_max_points.second};
insert_triangles(tree, triangles);
// auto triangles_indexes = get_intersected_triangles_indexes(find_triangles_intersections(triangles));
auto triangles_indexes = get_intersected_triangles_indexes(find_triangles_intersections(tree));
sort_triangle_indexes(triangles_indexes);
println<int>(triangles_indexes);
}