-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature reorient faces #104
Conversation
The build fails, but I got the same thing when I tried to auto-install pygalmesh on my computer. I think it has to do something with the pip version. I had to manually install pygalmesh using python3 install |
pygalmesh/main.py
Outdated
@@ -194,6 +194,7 @@ def generate_volume_mesh_from_surface_mesh( | |||
cell_radius_edge_ratio=0.0, | |||
cell_size=0.0, | |||
verbose=True, | |||
reorient=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, default False
. Also in the C++ below.
src/generate_from_off.cpp
Outdated
input.close(); | ||
|
||
// NB: cgal has a check here to see if the input geometry is triangulated | ||
// do we want it here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. I'm not aware of any problems without the test.
No, it passes. The failure is from gh-actions which doesn't have a recent-enough cgal. Ignore that. |
LGTM, thanks! |
Fix face orientation of input mesh. Default is false. use --reorient or -t to activate
how to test: remesh a surface and then create a volume mesh from this surface:
$ pygalmesh-remesh-surface lion-head.off lionhead_remesh.off -e 0.025 -a 25 -s 0.1 -d 0.001
$ pygalmesh-volume-from-surface lionhead_remesh.off lionhead_remesh_vol.vtu
RuntimeError: Invalid input file "/tmp/tmpnq6ln74_.off"
If this is due to wrong face orientation, retry with the option --reorient "
$ pygalmesh-volume-from-surface lionhead_remesh.off lionhead_remesh_vol.vtu --reorient
$