Skip to content

feat: add face color, round info, bring measure tools to linux#1732

Merged
jacobrkerstetter merged 31 commits into
mainfrom
feat/workflow_10_additions
Feb 14, 2025
Merged

feat: add face color, round info, bring measure tools to linux#1732
jacobrkerstetter merged 31 commits into
mainfrom
feat/workflow_10_additions

Conversation

@jacobrkerstetter

@jacobrkerstetter jacobrkerstetter commented Feb 6, 2025

Copy link
Copy Markdown
Contributor

Description

Adding various features needed for workflow 10. Includes Face RoundInfo, Face/Body ClosestSeparation, and Face Colors.

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)

- get round info + test
- get closest separation (body to body) + test
- wip design insert file with body names
implemented face colors
working on coloring tessellations
- face get color efficiency fix
- body export_gltf for exporting single bodies
@jacobrkerstetter jacobrkerstetter self-assigned this Feb 6, 2025
@jacobrkerstetter jacobrkerstetter requested a review from a team as a code owner February 6, 2025 20:37
@github-actions github-actions Bot added testing Anything related to tests enhancement New features or code improvements labels Feb 6, 2025
Comment thread src/ansys/geometry/core/connection/conversions.py
Comment thread src/ansys/geometry/core/designer/body.py Outdated
Comment thread src/ansys/geometry/core/designer/body.py Outdated
Comment thread src/ansys/geometry/core/designer/body.py Outdated
Comment thread src/ansys/geometry/core/designer/body.py Outdated
Comment thread src/ansys/geometry/core/designer/face.py Outdated
Comment thread src/ansys/geometry/core/designer/geometry_commands.py Outdated
Comment thread src/ansys/geometry/core/designer/geometry_commands.py
Comment thread src/ansys/geometry/core/math/bbox.py Outdated
Comment thread src/ansys/geometry/core/math/bbox.py Outdated
jacobrkerstetter and others added 7 commits February 7, 2025 08:13
- activated MeasurementTools for CoreService
- refactored intersecting bounding boxes to meet standards
- abstracted color conversion to hex to auxiliary method
- added tests for all features
@RobPasMue

RobPasMue commented Feb 11, 2025

Copy link
Copy Markdown
Member

@jacobrkerstetter - can we improve the title of the PR? I know it makes sense for you (us) since we know what workflow 10 stands for but let's assign it a more feature-oriented name if possible =)

@github-actions github-actions Bot added the maintenance Package and maintenance related label Feb 11, 2025
@jacobrkerstetter jacobrkerstetter changed the title feat: workflow 10 additions feat: Adding RF Report Features (face color, separation, and rounds) Feb 11, 2025
Comment thread tests/integration/test_design.py Outdated
@jonahrb jonahrb requested a review from RobPasMue February 12, 2025 20:16
@github-actions github-actions Bot removed the maintenance Package and maintenance related label Feb 12, 2025
@jonahrb jonahrb changed the title feat: Adding RF Report Features (face color, separation, and rounds) feat: add face color, round info, bring measure tools to linux Feb 12, 2025
Comment thread src/ansys/geometry/core/modeler.py Outdated
jrwest440
jrwest440 previously approved these changes Feb 12, 2025

@RobPasMue RobPasMue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jacobrkerstetter - left some comments, the PR is in a very good state, they are mostly minor modifications. Thanks for all the work! Once the requests go in, I will approve and merge =)

Comment thread src/ansys/geometry/core/designer/face.py Outdated
Comment thread src/ansys/geometry/core/designer/face.py Outdated
Comment thread src/ansys/geometry/core/designer/face.py Outdated
Comment thread src/ansys/geometry/core/designer/face.py Outdated
Comment thread src/ansys/geometry/core/math/bbox.py Outdated
Comment thread src/ansys/geometry/core/tools/measurement_tools.py Outdated
Comment thread tests/integration/test_measurement_tools.py
Comment thread tests/integration/test_measurement_tools.py Outdated
Comment thread tests/integration/test_plotter.py
Comment thread tests/test_math.py
Comment thread src/ansys/geometry/core/tools/measurement_tools.py Outdated

@RobPasMue RobPasMue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks for this contribution!

@codecov

codecov Bot commented Feb 14, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 88.65979% with 11 lines in your changes missing coverage. Please review.

Project coverage is 90.84%. Comparing base (0cd31db) to head (401eaf3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ansys/geometry/core/misc/auxiliary.py 72.22% 5 Missing ⚠️
src/ansys/geometry/core/math/misc.py 84.61% 2 Missing ⚠️
src/ansys/geometry/core/connection/conversions.py 50.00% 1 Missing ⚠️
src/ansys/geometry/core/designer/face.py 97.22% 1 Missing ⚠️
src/ansys/geometry/core/math/bbox.py 91.66% 1 Missing ⚠️
src/ansys/geometry/core/tools/measurement_tools.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1732      +/-   ##
==========================================
+ Coverage   90.81%   90.84%   +0.03%     
==========================================
  Files          92       92              
  Lines        8080     8152      +72     
==========================================
+ Hits         7338     7406      +68     
- Misses        742      746       +4     

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

@RobPasMue RobPasMue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! We can merge

@jacobrkerstetter jacobrkerstetter merged commit 1439fe4 into main Feb 14, 2025
@jacobrkerstetter jacobrkerstetter deleted the feat/workflow_10_additions branch February 14, 2025 15:04
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 testing Anything related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants