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

unify_cycles / face_adjaccency #1411

Open
romanarust opened this issue Nov 14, 2024 · 2 comments
Open

unify_cycles / face_adjaccency #1411

romanarust opened this issue Nov 14, 2024 · 2 comments

Comments

@romanarust
Copy link
Member

Describe the bug

I have a set of vertices and faces from a correct, closed mesh, but the function unify_cycles fails. The reason for this is that when there are more than 100 faces, a different function (_face_vertices) is used for face adjacency. However, in my case, this function produces a different, and wrong result than face_adjacency, because the parameters of this function aren’t dependent on the input.

How would it be best to proceed: I could propose a fix, but should the parameters be determined based on the input (i.e determine the radius on the longest edge?), or should the user be allowed to select which function to use (unify_cycles(fast=True))? My understanding is that the _face_adjacency function was intended to increase performance. Wouldn’t it make sense for this to be user-controlled?

@tomvanmele
Copy link
Member

tomvanmele commented Nov 14, 2024

perhaps both?

  • user is allowed to choose, with the default switch for over 100 faces
  • radius is None by default and in that case is computed based on some kind of heuristic
  • radius is available as a top-level parameter so it can be set by the user in case of awkward mesh geometries

@romanarust
Copy link
Member Author

romanarust commented Nov 14, 2024

ok thank you, I'll propose something

@romanarust romanarust mentioned this issue Nov 14, 2024
10 tasks
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

No branches or pull requests

2 participants