Skip to content

Commit 11db134

Browse files
committed
mesh.io.from_vertices_and_simplices: use new force_positive_orientation
1 parent 287f4c1 commit 11db134

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

meshmode/mesh/io.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -399,18 +399,10 @@ def from_vertices_and_simplices(
399399

400400
grp = make_group_from_vertices(vertices, simplices, order)
401401

402-
if fix_orientation:
403-
if grp.dim != vertices.shape[0]:
404-
raise ValueError("can only fix orientation of volume meshes")
405-
406-
from meshmode.mesh.processing import (
407-
find_volume_mesh_element_group_orientation, flip_element_group)
408-
orient = find_volume_mesh_element_group_orientation(vertices, grp)
409-
grp = flip_element_group(vertices, grp, orient < 0)
410-
411402
return make_mesh(
412403
vertices=vertices, groups=[grp],
413-
is_conforming=True)
404+
is_conforming=True,
405+
force_positive_orientation=fix_orientation)
414406

415407
# }}}
416408

0 commit comments

Comments
 (0)