Skip to content

Commit ffe00ea

Browse files
committed
[test-trianguration.l] test two cases (test-triangulation-with-hole)
1 parent 19bc583 commit ffe00ea

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

irteus/test/test-triangulation.l

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,24 @@
3737
nil
3838
))
3939

40-
(defun triangulation-with-multi-hole ()
40+
(defun triangulation-with-multi-hole (param-id)
4141
(let ((plate (make-cube 1000 1000 5))
4242
(params ;; params for holes (list (list segments radius center) .. )
43-
(list
44-
(list 9 87.841726125643674550 (float-vector -250.0 -250.0 0.0))
45-
(list 6 36.824839027036261996 (float-vector -250.0 250.0 0.0))
46-
(list 9 52.020745915260789616 (float-vector 250.0 -250.0 0.0))
47-
(list 10 51.644968476707617810 (float-vector 250.0 250.0 0.0))
48-
(list 6 63.093857512806295063 (float-vector 0.0 0.0 0.0))
49-
))
43+
(case param-id
44+
(0 (list
45+
(list 9 87.841726125643674550 (float-vector -250.0 -250.0 0.0))
46+
(list 6 36.824839027036261996 (float-vector -250.0 250.0 0.0))
47+
(list 9 52.020745915260789616 (float-vector 250.0 -250.0 0.0))
48+
(list 10 51.644968476707617810 (float-vector 250.0 250.0 0.0))
49+
(list 6 63.093857512806295063 (float-vector 0.0 0.0 0.0))
50+
))
51+
(1 (list
52+
(list 9 87.8 (float-vector -250.0 -250.0 0.0))
53+
(list 6 36.8 (float-vector -250.0 250.0 0.0))
54+
(list 9 52.0 (float-vector 250.0 -250.0 0.0))
55+
(list 10 51.6 (float-vector 250.0 250.0 0.0))
56+
(list 6 63.0 (float-vector 0.0 0.0 0.0))
57+
))))
5058
aface faces lines)
5159

5260
;; make plate with holes
@@ -84,8 +92,12 @@
8492
(triangulation-concave)
8593
)
8694

87-
(deftest test-triangulation-with-hole
88-
(triangulation-with-multi-hole)
95+
(deftest test-triangulation-with-hole-0
96+
(triangulation-with-multi-hole 0)
97+
)
98+
99+
(deftest test-triangulation-with-hole-1
100+
(triangulation-with-multi-hole 1)
89101
)
90102

91103
(eval-when (load eval)

0 commit comments

Comments
 (0)