-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain_test.py
105 lines (89 loc) · 3.71 KB
/
main_test.py
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#========[ IMPORTS ]========
from testing import *
import logging
# Setting up so that in the logs the file name shows up
#logger = logging.getLogger(__name__)
#========[ FUNCTIONS ]========
class Test_Main():
def test_bvh_3(self):
logging.debug('Testing BVH 3: bounding box function || 0/5 Passed')
test_bvh_3.test_BoundingBox()
logging.debug('Testing BVH 3: bvh function || 1/5 Passed')
test_bvh_3.test_bvh()
logging.debug('Testing BVH 3: build bvh function || 2/5 Passed')
test_bvh_3.test_build_bvh()
logging.debug('Testing BVH 3: bvh node function || 3/5 Passed')
test_bvh_3.test_BVHNode()
logging.debug('Testing BVH 3: compute bounding box || 4/5 Passed')
test_bvh_3.test_compute_bounding_box()
test_bvh_3.test_distance_point_to_face()
test_bvh_3.test_distance_point_to_segment()
test_bvh_3.test_example()
test_bvh_3.test_face_centroid()
test_bvh_3.test_find_closest_face()
test_bvh_3.test_is_point_in_triangle()
logging.info('Testing BVH 3: =====[ 5/5 PASSED ]=====')
def test_bvh_4(self):
test_bvh_4.test_BoundingBox()
test_bvh_4.test_bvh()
test_bvh_4.test_build_bvh()
test_bvh_4.test_BVHNode()
test_bvh_4.test_compute_bounding_box()
test_bvh_4.test_distance_point_to_face()
test_bvh_4.test_distance_point_to_segment()
test_bvh_4.test_example()
test_bvh_4.test_face_centroid()
test_bvh_4.test_find_closest_face()
test_bvh_4.test_is_point_in_triangle()
test_bvh_4.test_is_point_in_quad()
logging.info('Testing Object: =====[ 5/5 PASSED ]=====')
def test_chamfer(self):
test_chamfer.test_chamfer_distance()
logging.info('Testing Chamfer Distance: =====[ 1/1 PASSED ]=====')
def test_classes(self):
test_classes.test_Object()
logging.info('Testing Object: =====[ 5/5 PASSED ]=====')
def test_conversion(self):
test_conversion.test_node_arc_incidence_matrix()
test_conversion.test_numpyToVTK()
test_conversion.test_toarray()
test_conversion.test_toarray_without_loss()
test_conversion.test_tofloat()
test_conversion.test_tolist()
test_conversion.test_trimesh_to_vtk()
def test_kaolin_distance(self):
test_kao_dist.test_kaolin_point_to_mesh_2()
def test_neighbours(self):
test_neighbours.test_nearest_neighbours_using_sklearn()
test_neighbours.test_find()
test_neighbours.test_get_nearest()
test_neighbours.test_nearest_neighbours()
test_neighbours.test_nearest_neighbours_generator()
def test_nricp(self):
test_nricp.test_non_rigid_icp()
test_nricp.test_non_rigid_icp_generator()
test_nricp.test_non_rigid_icp_generator_handler()
def test_plan(self):
test_plan.test_vector()
test_plan.test_norm()
test_plan.test_divide()
test_plan.test_mul()
test_plan.test_produit_scalaire()
test_plan.test_produit_vectoriel()
test_plan.test_sum_vect()
test_plan.test_Plan()
test_plan.test_dist_face()
test_plan.test_norm2()
#test_plan.test_find_vertex()
def test_plot(self):
test_plot.test_plot_alignment_multiple()
test_plot.test_plot_alignment_single()
def test_pretreat(self):
test_pretreat.test_fillYZ()
test_pretreat.test_replace()
test_pretreat.test_pretreating()
def test_rotation_translate(self):
test_rotation_translate.test_axis_rotation()
test_rotation_translate.test_origin_rotation()
def test_solver(self):
test_solver.test_spsolve()