File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,8 @@ def compute_areas(field_data):
269269 """
270270 import pyvista as pv
271271 temp_pv = pv .from_meshio (field_data ).extract_surface ()
272- temp_pv .compute_cell_sizes (length = False ,volume = False )
273- field_data = pv . to_meshio ( temp_pv )
272+ field_data = pv . to_meshio ( temp_pv .compute_cell_sizes (length = False ,volume = False ) )
273+
274274 # cell_areas = []
275275 # for inc, cell in enumerate(field_data.cells):
276276 #
@@ -362,8 +362,8 @@ def compute_normals(mesh):
362362 """
363363 import pyvista as pv
364364 temp_pv = pv .from_meshio (mesh ).extract_surface ()
365- temp_pv .compute_normals ()
366- mesh = pv . to_meshio ( temp_pv )
365+ mesh = pv . to_meshio ( temp_pv .compute_normals () )
366+
367367 # cell_normal_list = []
368368 # for inc, cell in enumerate(mesh.cells):
369369 # # print(cell.type, cell.data.shape[0])
You can’t perform that action at this time.
0 commit comments