@@ -151,12 +151,9 @@ def test_single_cell_split( test_case: TestCase ) -> None:
151151 assert pointsOut .GetNumberOfPoints (
152152 ) == test_case .pointsExp .shape [ 0 ], f"Number of points is expected to be { test_case .pointsExp .shape [0 ]} ."
153153 pointCoords : npt .NDArray [ np .float64 ] = vtk_to_numpy ( pointsOut .GetData () )
154- print ( "Points coords: " , cellTypeName , pointCoords .tolist () )
155154 assert np .array_equal ( pointCoords .ravel (), test_case .pointsExp .ravel () ), "Points coordinates mesh are wrong."
156155
157156 cellsOut : vtkCellArray = output .GetCells ()
158- typesArray0 : npt .NDArray [ np .int64 ] = vtk_to_numpy ( output .GetDistinctCellTypesArray () )
159- print ( "typesArray0" , cellTypeName , typesArray0 )
160157
161158 assert cellsOut is not None , "Cells from output mesh are undefined."
162159 assert cellsOut .GetNumberOfCells () == len (
@@ -167,7 +164,6 @@ def test_single_cell_split( test_case: TestCase ) -> None:
167164 assert types is not None , "Cell types must be defined"
168165 typesArray : npt .NDArray [ np .int64 ] = vtk_to_numpy ( types .GetCellTypesArray () )
169166
170- print ( "typesArray" , cellTypeName , typesArray )
171167 # Pyramid splitting produces both pyramids (first 6 cells) and tetrahedra (last 4 cells)
172168 if test_case .cellType == VTK_PYRAMID :
173169 assert typesArray .size == 2 , "Pyramid splitting should produce 2 distinct cell types"
@@ -183,8 +179,6 @@ def test_single_cell_split( test_case: TestCase ) -> None:
183179 cellsOutObs : list [ int ] = [ ptIds .GetId ( j ) for j in range ( ptIds .GetNumberOfIds () ) ]
184180 nbPtsExp : int = len ( test_case .cellsExp [ i ] )
185181 actualCellType : int = output .GetCellType ( i )
186- print ( "cell type" , cellTypeName , i , vtkCellTypes .GetClassNameFromTypeId ( actualCellType ) )
187- print ( "cellsOutObs: " , cellTypeName , i , cellsOutObs )
188182 assert ptIds is not None , "Point ids must be defined"
189183 assert ptIds .GetNumberOfIds () == nbPtsExp , f"Cells must be defined by { nbPtsExp } points."
190184 assert cellsOutObs == test_case .cellsExp [ i ], "Cell point ids are wrong."
@@ -234,7 +228,6 @@ def test_multi_cells_mesh_split() -> None:
234228 elif cellType == VTK_PYRAMID :
235229 nbPyr += 1
236230
237- print ( f"Input mesh contains: { nbHex } hexahedra, { nbTet } tetrahedra, { nbPyr } pyramids" )
238231 assert nbHex == 3 , "Expected 3 hexahedra in input mesh"
239232 assert nbTet == 36 , "Expected 36 tetrahedra in input mesh"
240233 assert nbPyr == 18 , "Expected 18 pyramids in input mesh"
@@ -248,8 +241,6 @@ def test_multi_cells_mesh_split() -> None:
248241 # Calculate expected number of cells using the formula
249242 # 1 hex -> 8 hexes, 1 tet -> 8 tets, 1 pyramid -> 6 pyramids + 4 tets = 10 cells
250243 expectedNbCells = nbHex * 8 + nbTet * 8 + nbPyr * 10
251- print ( f"Expected number of cells: { expectedNbCells } (3*8 + 36*8 + 18*10)" )
252- print ( f"Actual number of cells: { output .GetNumberOfCells ()} " )
253244 assert output .GetNumberOfCells () == expectedNbCells , \
254245 f"Expected { expectedNbCells } cells, got { output .GetNumberOfCells ()} "
255246
@@ -266,7 +257,6 @@ def test_multi_cells_mesh_split() -> None:
266257 elif cellType == VTK_PYRAMID :
267258 nbPyrOut += 1
268259
269- print ( f"Output mesh contains: { nbHexOut } hexahedra, { nbTetOut } tetrahedra, { nbPyrOut } pyramids" )
270260 # Expected output: 3*8=24 hexes, 36*8 + 18*4=360 tets, 18*6=108 pyramids
271261 assert nbHexOut == 3 * 8 , f"Expected { 3 * 8 } hexahedra in output, got { nbHexOut } "
272262 assert nbTetOut == 36 * 8 + 18 * 4 , f"Expected { 36 * 8 + 18 * 4 } tetrahedra in output, got { nbTetOut } "
@@ -301,7 +291,6 @@ def test_multi_polygon_mesh_split() -> None:
301291 elif cellType == VTK_TRIANGLE :
302292 nbTriangle += 1
303293
304- print ( f"Input mesh contains: { nbQuad } quads, { nbTriangle } triangles" )
305294 assert nbQuad == 2 , "Expected 2 quads in input mesh"
306295 assert nbTriangle == 4 , "Expected 4 triangles in input mesh"
307296
@@ -314,8 +303,6 @@ def test_multi_polygon_mesh_split() -> None:
314303 # Calculate expected number of cells using the formula
315304 # 1 quad -> 4 quads, 1 triangle -> 4 triangles
316305 expectedNbCells = nbQuad * 4 + nbTriangle * 4
317- print ( f"Expected number of cells: { expectedNbCells } (2*4 + 4*4)" )
318- print ( f"Actual number of cells: { output .GetNumberOfCells ()} " )
319306 assert output .GetNumberOfCells () == expectedNbCells , \
320307 f"Expected { expectedNbCells } cells, got { output .GetNumberOfCells ()} "
321308
@@ -329,7 +316,6 @@ def test_multi_polygon_mesh_split() -> None:
329316 elif cellType == VTK_TRIANGLE :
330317 nbTriangleOut += 1
331318
332- print ( f"Output mesh contains: { nbQuadOut } quads, { nbTriangleOut } triangles" )
333319 # Expected output: 2*4=8 quads, 4*4=16 triangles
334320 assert nbQuadOut == 2 * 4 , f"Expected { 2 * 4 } quads in output, got { nbQuadOut } "
335321 assert nbTriangleOut == 4 * 4 , f"Expected { 4 * 4 } triangles in output, got { nbTriangleOut } "
0 commit comments