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

PYTHON: Add helper methods to be able to easily create all the geometries. #981

Conversation

joeykleingers
Copy link
Contributor

@joeykleingers joeykleingers commented May 29, 2024

Adds the following helper methods to be able to easily create all the geometries:

nx.CreateGeometry.create_image_geometry
nx.CreateGeometry.create_rect_grid_geometry
nx.CreateGeometry.create_vertex_geometry
nx.CreateGeometry.create_edge_geometry
nx.CreateGeometry.create_triangle_geometry
nx.CreateGeometry.create_quad_geometry
nx.CreateGeometry.create_tetrahedral_geometry
nx.CreateGeometry.create_hexahedral_geometry

Also adds parameter names to the ChoicesParameter binding.

@joeykleingers joeykleingers self-assigned this May 29, 2024
@joeykleingers joeykleingers added the enhancement New feature or request label May 29, 2024
@imikejackson
Copy link
Contributor

We talked about the API returning a Result<> object.

@joeykleingers
Copy link
Contributor Author

We talked about the API returning a Result<> object.

They all return Result objects.

@joeykleingers joeykleingers force-pushed the topic/Py_CreateGeometryHelperMethods branch 2 times, most recently from d7abb61 to a6591a1 Compare June 3, 2024 13:23
@JDuffeyBQ
Copy link
Collaborator

Were we going to merge the various ArrayHandlingType enums/values for these bindings?

@imikejackson
Copy link
Contributor

@JDuffeyBQ Those changes should be on #983

@JDuffeyBQ
Copy link
Collaborator

Ah then that enum should be bound using py::enum_ here.

@imikejackson imikejackson force-pushed the topic/Py_CreateGeometryHelperMethods branch from a6591a1 to 4913a7c Compare June 3, 2024 15:48
@joeykleingers
Copy link
Contributor Author

This is ready for review again.

@joeykleingers joeykleingers merged commit d05231c into BlueQuartzSoftware:develop Jun 4, 2024
8 checks passed
@imikejackson imikejackson deleted the topic/Py_CreateGeometryHelperMethods branch June 5, 2024 01:07
imikejackson pushed a commit to imikejackson/simplnx that referenced this pull request Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants