@@ -125,29 +125,21 @@ def test_oriented_bounding_box_numpy(coords, expected):
125125 assert TOL .is_allclose (result , expected_values )
126126
127127
128- @pytest .mark .parametrize (
129- "filename, expected" ,
130- [
131- [
132- "bbox_points_00.json" ,
133- [
134- [- 16.324597659837302 , 17.160372549942966 , 3.56729 ],
135- [- 16.324597659837302 , 17.160372549942966 , 2.45 ],
136- [- 15.960798521686625 , 13.229144025284555 , 2.45 ],
137- [- 15.960798521686625 , 13.229144025284555 , 3.56729 ],
138- [- 18.2385089496689 , 16.983257616692406 , 3.56729 ],
139- [- 18.2385089496689 , 16.983257616692406 , 2.45 ],
140- [- 17.874709811518226 , 13.052029092033992 , 2.45 ],
141- [- 17.874709811518226 , 13.052029092033992 , 3.56729 ],
142- ],
143- ]
144- ],
145- )
146- def test_oriented_bounding_box_numpy_from_fixtures (filename , expected ):
128+ def test_oriented_bounding_box_numpy_from_fixtures ():
147129 if compas .IPY :
148130 return
149131
150- coords = compas .json_load (os .path .join (HERE , "fixtures" , filename ))
132+ coords = compas .json_load (os .path .join (HERE , "fixtures" , "bbox_points_00.json" ))
133+ expected = [
134+ [- 16.324597659837302 , 17.160372549942966 , 3.56729 ],
135+ [- 16.324597659837302 , 17.160372549942966 , 2.45 ],
136+ [- 15.960798521686625 , 13.229144025284555 , 2.45 ],
137+ [- 15.960798521686625 , 13.229144025284555 , 3.56729 ],
138+ [- 18.2385089496689 , 16.983257616692406 , 3.56729 ],
139+ [- 18.2385089496689 , 16.983257616692406 , 2.45 ],
140+ [- 17.874709811518226 , 13.052029092033992 , 2.45 ],
141+ [- 17.874709811518226 , 13.052029092033992 , 3.56729 ],
142+ ]
151143
152144 from compas .geometry import oriented_bounding_box_numpy
153145
0 commit comments