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

Better API for accessing coordinates on a Mesh #5993

Open
trexfeathers opened this issue Jun 6, 2024 · 0 comments · May be fixed by #6055
Open

Better API for accessing coordinates on a Mesh #5993

trexfeathers opened this issue Jun 6, 2024 · 0 comments · May be fixed by #6055
Assignees

Comments

@trexfeathers
Copy link
Contributor

✨ Feature Request

It should be easier to access the desired coordinate within a Mesh, taking into account that location and axis are commonly used filters, and that these are often dynamic.

Motivation

I'm always frustrated when I have to write code like this:

# Location is either "edge" or "face" - get the relevant coord.
kwargs = {f"include_{location}s": True, "axis": axis}
location_coord = self.mesh.coord(**kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants