TM2IN  0.5.1
check.h
Go to the documentation of this file.
1 
2 #ifndef check_hpp
3 #define check_hpp
4 
5 #include <stdio.h>
6 #include <vector>
7 
8 #include "features/Vertex.h"
9 
10 #include <CGAL/Vector_3.h>
11 #include <CGAL/Point_3.h>
12 #include <CGAL/Kernel/global_functions.h>
13 
14 class Checker{
15 private:
16  Checker(){}
17 
18 public:
21  static double threshold_collinear;
22 
23  static bool isSameX(Vertex* a, Vertex* b);
24  static bool isSameY(Vertex* a, Vertex* b);
25  static bool isSameZ(Vertex* a, Vertex* b);
26 
27  static bool isSameX(Vertex* a, Vertex* b, Vertex* c);
28  static bool isSameY(Vertex* a, Vertex* b, Vertex* c);
29  static bool isSameZ(Vertex* a, Vertex* b, Vertex* c);
30 
31  static bool isSameVertex(Vertex& v1, Vertex& v2);
32  static bool isSameVertex(Vertex* v1, Vertex* v2);
33 
34  static int compare_vertex(Vertex* v1, Vertex* v2);
35 
36  static int num_of_straight;
37  static int num_of_invalid;
38 };
39 
40 #endif /* check_hpp */
static double threshold_same_vt_distance
Definition: check.h:20
static int num_of_straight
Definition: check.h:36
static double threshold_collinear
Definition: check.h:21
static bool isSameY(Vertex *a, Vertex *b)
Definition: check.cpp:66
static bool isSameZ(Vertex *a, Vertex *b)
Definition: check.cpp:71
Definition: check.h:14
static int compare_vertex(Vertex *v1, Vertex *v2)
Definition: check.cpp:33
static bool isSameVertex(Vertex &v1, Vertex &v2)
Definition: check.cpp:27
static double squaredDistanceOfSamePoint2D
Definition: check.h:19
static bool isSameX(Vertex *a, Vertex *b)
Definition: check.cpp:61
static int num_of_invalid
Definition: check.h:37