File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments