We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287f4c1 commit 11db134Copy full SHA for 11db134
1 file changed
meshmode/mesh/io.py
@@ -399,18 +399,10 @@ def from_vertices_and_simplices(
399
400
grp = make_group_from_vertices(vertices, simplices, order)
401
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
411
return make_mesh(
412
vertices=vertices, groups=[grp],
413
- is_conforming=True)
+ is_conforming=True,
+ force_positive_orientation=fix_orientation)
414
415
# }}}
416
0 commit comments