4 #define REGULAR_VERTEX 0 11 #define ANTICLOCKWISE 3 18 set<DCELHalfEdge *, func>
tree;
28 dif = (b->
y - a->
y) * (c->
x - b->
x) - (b->
x - a->
x) * (c->
y - b->
y);
31 }
else if (dif > 0 ) {
58 for (
int i = 0; i <
vlen; i++) {
98 set<DCELHalfEdge *, func>::iterator it;
100 if (it !=
tree.begin()) {
116 set<DCELHalfEdge *, func>::iterator it;
118 if (it !=
tree.begin()) {
139 set<DCELHalfEdge *, func>::iterator it;
141 if (it !=
tree.begin()) {
int type
Definition: DCELVertex.h:15
DCELHalfEdge * edge
Definition: DCELVertex.h:10
DCELHalfEdge * twin
Definition: DCELHalfEdge.h:14
int orientation(DCELVertex *a, DCELVertex *b, DCELVertex *c)
Orientation.
Definition: monotone.h:26
VertexList Vertices
Definition: origin.h:13
#define START_VERTEX
Definition: monotone.h:5
DCELVertex * origin
Definition: DCELHalfEdge.h:17
void HANDLE_REGULAR_VERTEX(DCELVertex *v)
Definition: monotone.h:129
void insertDiagonal(DCELVertex *v1, DCELVertex *v2)
Definition: origin.h:105
bool below(DCELVertex *v1, DCELVertex *v2)
Bool Check Below.
Definition: monotone.h:41
void form_vertex_type()
form_vertex_type
Definition: monotone.h:55
void HANDLE_SPLIT_VERTEX(DCELVertex *v)
Definition: monotone.h:97
#define END_VERTEX
Definition: monotone.h:6
int vlen
Definition: monotone.h:20
Definition: DCELVertex.h:2
#define SPLIT_VERTEX
Definition: monotone.h:8
void split_into_monotone()
VERTEX HANDLING.
Definition: monotone.h:156
DCELHalfEdge * getPrev()
Half Edges.
Definition: DCELHalfEdge.h:36
#define COLLINEAR
Definition: monotone.h:9
DCELVertex * helper
Definition: DCELHalfEdge.h:18
double x
Definition: DCELVertex.h:8
#define REGULAR_VERTEX
Definition: monotone.h:4
#define MERGE_VERTEX
Definition: monotone.h:7
int length
Definition: VertexList.h:13
double y
Definition: DCELVertex.h:9
void HANDLE_END_VERTEX(DCELVertex *v)
VERTEX HANDLING.
Definition: monotone.h:89
#define CLOCKWISE
Definition: monotone.h:10
bool left_edgeto_vertex(const DCELHalfEdge *e1, const DCELHalfEdge *e2)
Definition: monotone.h:47
void HANDLE_START_VERTEX(DCELVertex *v)
form_vertex_type
Definition: monotone.h:81
#define ANTICLOCKWISE
Definition: monotone.h:11
set< DCELHalfEdge *, func > tree
Definition: monotone.h:18
Definition: DCELHalfEdge.h:8
DCELVertex * next
Definition: DCELVertex.h:18
void HANDLE_MERGE_VERTEX(DCELVertex *v)
Definition: monotone.h:110
DCELVertex * head
Definition: VertexList.h:9