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

feat: named selection functionality #1768

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

jacobrkerstetter
Copy link
Contributor

@jacobrkerstetter jacobrkerstetter commented Feb 21, 2025

Description

  • move_rotate / move_translate implemented to transform named selections
  • enhanced reading existing designs to take more information from named selections
  • enhanced creating new name selections from client-side designs

Issue linked

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate unit tests.
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved to the PR if any.
  • I have assigned this PR to myself.
  • I have added the minimum version decorator to any new backend method implemented.
  • I have made sure that the title of my PR follows Conventional commits style (e.g. feat: extrude circle to cylinder)

jkerstet added 4 commits February 18, 2025 11:26
need read existing design functionality
implemented MoveRotate and MoveTranslate for named selections
@jacobrkerstetter jacobrkerstetter self-assigned this Feb 21, 2025
@jacobrkerstetter jacobrkerstetter changed the title feat: Named Selection Functionality feat: named selection functionality Feb 21, 2025
@github-actions github-actions bot added the enhancement New features or code improvements label Feb 21, 2025
@jacobrkerstetter jacobrkerstetter marked this pull request as ready for review February 24, 2025 16:20
@jacobrkerstetter jacobrkerstetter requested a review from a team as a code owner February 24, 2025 16:20
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 88.15789% with 9 lines in your changes missing coverage. Please review.

Project coverage is 90.90%. Comparing base (cdd6dc4) to head (b8e838f).

Files with missing lines Patch % Lines
src/ansys/geometry/core/designer/selection.py 75.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1768      +/-   ##
==========================================
+ Coverage   90.88%   90.90%   +0.02%     
==========================================
  Files          92       92              
  Lines        8357     8423      +66     
==========================================
+ Hits         7595     7657      +62     
- Misses        762      766       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@RobPasMue RobPasMue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good! Left some comments, request review again once addressed

bodies=bodies,
faces=faces,
edges=edges,
beams=[beam.id for beam in result.beams],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be Beam objects, not just IDs.

jkerstet and others added 4 commits February 27, 2025 10:56
- adjusted import test for new model
- added Quantity input type for new geometry commands
- adjusted NamedSelection constructor -- beams still a question
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NamedSelection class should contain the members of the Named Selection
3 participants