Skip to content

Commit 710d26e

Browse files
committed
corrected compute in place error.
1 parent 162f5a2 commit 710d26e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lyceanem/geometry/geometryfunctions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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])

0 commit comments

Comments
 (0)