Skip to content

Commit 6221372

Browse files
committed
Remove old tests
1 parent 52b491f commit 6221372

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/test_ffdparams.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -292,27 +292,3 @@ def test_set_modification_parameters_to_zero(self):
292292
params.array_mu_y, np.zeros(shape=(5, 5, 5)))
293293
np.testing.assert_almost_equal(
294294
params.array_mu_z, np.zeros(shape=(5, 5, 5)))
295-
296-
def test_calculate_bb_dimensions(self):
297-
min_vals = np.zeros(3)
298-
max_vals = np.ones(3)
299-
cube = BRepPrimAPI_MakeBox(1, 1, 1).Shape()
300-
params = FFDParameters()
301-
xyz_min, xyz_max = params._calculate_bb_dimension(cube)
302-
np.testing.assert_almost_equal(xyz_min, min_vals, decimal=5)
303-
np.testing.assert_almost_equal(xyz_max, max_vals, decimal=5)
304-
305-
def test_calculate_bb_dimensions_triangulate(self):
306-
a = gp_Pnt(-1, -1, -1)
307-
b = gp_Pnt(3, 3, 3)
308-
309-
box = BRepPrimAPI_MakeBox(a, b).Shape()
310-
sphere = BRepPrimAPI_MakeSphere(3).Shape()
311-
section = BRepAlgoAPI_Cut(box, sphere).Shape()
312-
params = FFDParameters()
313-
xyz_min, xyz_max = params._calculate_bb_dimension(
314-
section, triangulate=True)
315-
correct_min = -1 * np.ones(3)
316-
correct_max = 3 * np.ones(3)
317-
np.testing.assert_almost_equal(xyz_min, correct_min, decimal=1)
318-
np.testing.assert_almost_equal(xyz_max, correct_max, decimal=1)

0 commit comments

Comments
 (0)