Skip to content

Better API for accessing coordinates on a Mesh #5993

@trexfeathers

Description

@trexfeathers

✨ 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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions