Skip to content
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

Merged
merged 4 commits into from
Aug 3, 2020
Merged

Feature reorient faces #104

merged 4 commits into from
Aug 3, 2020

Conversation

bigfooted
Copy link

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
$

@bigfooted
Copy link
Author

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

@@ -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,
Copy link
Collaborator

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.

input.close();

// NB: cgal has a check here to see if the input geometry is triangulated
// do we want it here?
Copy link
Collaborator

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.

@nschloe
Copy link
Collaborator

nschloe commented Aug 3, 2020

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

No, it passes. The failure is from gh-actions which doesn't have a recent-enough cgal. Ignore that.

@nschloe
Copy link
Collaborator

nschloe commented Aug 3, 2020

LGTM, thanks!

@nschloe nschloe merged commit 98e69f9 into meshpro:master Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants