Skip to content

Commit 94257e4

Browse files
committed
[TEST] Adding asserts to marching cubes test
1 parent 176c6f6 commit 94257e4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_modules/test_marching_cubes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,20 @@ def test_marching_cubes_implementation():
3838
# assert arrays.scalar_field_matrix.shape == (3, 8_000) # * 3 surfaces, 8000 points
3939

4040
marching_cubes.set_meshes_with_marching_cubes(model)
41+
42+
# Assert
43+
assert model.solutions.block_solution_type == RawArraysSolution.BlockSolutionType.DENSE_GRID
44+
assert model.solutions.dc_meshes is None
45+
assert model.structural_frame.structural_groups[0].elements[0].vertices.shape == (600, 3)
46+
assert model.structural_frame.structural_groups[1].elements[0].vertices.shape == (860, 3)
47+
assert model.structural_frame.structural_groups[2].elements[0].vertices.shape == (1_256, 3)
48+
assert model.structural_frame.structural_groups[2].elements[1].vertices.shape == (1_680, 3)
4149

4250
if PLOT:
4351
gpv = require_gempy_viewer()
4452
gtv: gpv.GemPyToVista = gpv.plot_3d(
4553
model=model,
4654
show_data=True,
47-
image=False,
55+
image=True,
4856
show=True
4957
)

0 commit comments

Comments
 (0)