-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedgeChange.cpp
More file actions
43 lines (36 loc) · 1.04 KB
/
Copy pathedgeChange.cpp
File metadata and controls
43 lines (36 loc) · 1.04 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include <vector>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polygon_2.h>
#include <CGAL/intersections.h>
#include <CGAL/convex_hull_2.h>
#include "geoUtil.hpp"
#include "genericUtil.hpp"
#include "edgeChange.hpp"
using namespace std;
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Point_2<K> Point;
typedef CGAL::Segment_2<K> Segment;
typedef CGAL::Polygon_2<K> Polygon;
typedef K::Intersect_2 Intersect;
typedef Polygon::Vertex_iterator VertexIterator;
typedef Polygon::Edge_const_iterator EdgeIterator;
typedef CGAL::CartesianKernelFunctors::Intersect_2<K> Intersect;
EdgeChange::EdgeChange(Point l,Point r, Segment currentEdge, int newArea){
left = l;
right = r;
segment = currentEdge;
area = newArea;
}
const Point EdgeChange::getLeft(){
return this->left;
}
const Point EdgeChange::getRight(){
return this->right;
}
const double EdgeChange::getArea(){
return this->area;
}
const Segment EdgeChange::getSegment(){
return this->segment;
}