|
37 | 37 | nil |
38 | 38 | )) |
39 | 39 |
|
40 | | -(defun triangulation-with-multi-hole () |
| 40 | +(defun triangulation-with-multi-hole (param-id) |
41 | 41 | (let ((plate (make-cube 1000 1000 5)) |
42 | 42 | (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 | + )))) |
50 | 58 | aface faces lines) |
51 | 59 |
|
52 | 60 | ;; make plate with holes |
|
84 | 92 | (triangulation-concave) |
85 | 93 | ) |
86 | 94 |
|
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) |
89 | 101 | ) |
90 | 102 |
|
91 | 103 | (eval-when (load eval) |
|
0 commit comments