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

How does pytetgen generate region markers? #109

Closed
2 tasks
stefsmeets opened this issue Oct 5, 2021 · 3 comments
Closed
2 tasks

How does pytetgen generate region markers? #109

stefsmeets opened this issue Oct 5, 2021 · 3 comments

Comments

@stefsmeets
Copy link
Contributor

stefsmeets commented Oct 5, 2021

Test how pytetgen works with region markers.

  • If we use default region markers (just -A), can we use pytetgen for that?
  • How does pytetgen handle region markers?

Follow-up from #108

@stefsmeets
Copy link
Contributor Author

Region attributes are not supported by pytetgen.

Open issue on pytetgen requesting support for region attributes: pyvista/tetgen#22

@stefsmeets
Copy link
Contributor Author

The snipped below uses pytetgen to generate a tetragonal mesh. The -A flag currently does nothing.

import tetgen
from nanomesh.mesh_container import TetraMesh

polydata = contour.to_polydata()

tgen = tetgen.TetGen(polydata)
tgen.tetrahedralize(order=1, switches='pAq1.2')

grid = tgen.grid
tetramesh =  TetraMesh.from_pyvista_unstructured_grid(grid)

## region attributes where??

tetramesh.plot_itk()

@stefsmeets
Copy link
Contributor Author

This is no longer needed with the current system in place. If pytetgen ever gets support for regions, this can be re-opened.

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

1 participant