Skip to content

feat: NURBS and TrimmedCurve enhancements - #1994

Merged
RobPasMue merged 31 commits into
mainfrom
feat/nurbs_enhancements
Jun 9, 2025
Merged

feat: NURBS and TrimmedCurve enhancements#1994
RobPasMue merged 31 commits into
mainfrom
feat/nurbs_enhancements

Conversation

@jacobrkerstetter

@jacobrkerstetter jacobrkerstetter commented May 20, 2025

Copy link
Copy Markdown
Contributor

Description

  • Added the ability to translate and rotate TrimmedCurves
  • Implemented fitting a NURBSCurve through a given set of points

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)

@jacobrkerstetter jacobrkerstetter self-assigned this May 20, 2025
@jacobrkerstetter
jacobrkerstetter requested a review from a team as a code owner May 20, 2025 19:41
@jacobrkerstetter jacobrkerstetter changed the title feat: NURBS and TrimmedCurve Enhancements feat: NURBS and TrimmedCurve enhancements May 20, 2025
@github-actions github-actions Bot added testing Anything related to tests enhancement New features or code improvements labels May 20, 2025
@codecov

codecov Bot commented May 21, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 89.09091% with 6 lines in your changes missing coverage. Please review.

Project coverage is 90.45%. Comparing base (bb8011b) to head (f17a7fe).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ansys/geometry/core/shapes/curves/nurbs.py 75.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1994      +/-   ##
==========================================
- Coverage   90.45%   90.45%   -0.01%     
==========================================
  Files         136      136              
  Lines        9730     9782      +52     
==========================================
+ Hits         8801     8848      +47     
- Misses        929      934       +5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/ansys/geometry/core/shapes/curves/curve_evaluation.py
Comment thread src/ansys/geometry/core/shapes/curves/nurbs.py Outdated
Comment thread src/ansys/geometry/core/shapes/curves/nurbs.py
Comment thread src/ansys/geometry/core/shapes/curves/nurbs.py Outdated
Comment thread src/ansys/geometry/core/shapes/curves/nurbs.py
Comment thread src/ansys/geometry/core/shapes/curves/trimmed_curve.py Outdated
Comment thread src/ansys/geometry/core/shapes/curves/trimmed_curve.py Outdated
…ansys-geometry into feat/nurbs_enhancements

# Conflicts:
#	src/ansys/geometry/core/shapes/curves/curve_evaluation.py
#	src/ansys/geometry/core/shapes/curves/trimmed_curve.py

@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.

We are missing a lot of testing on the new methods in trimmed curves. Can we add them?

Comment thread src/ansys/geometry/core/shapes/curves/circle.py
Comment thread src/ansys/geometry/core/shapes/curves/trimmed_curve.py Outdated
RobPasMue
RobPasMue previously approved these changes Jun 9, 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.

LGTM! Thanks @jacobrkerstetter - just left a small comment!

Comment thread src/ansys/geometry/core/shapes/curves/trimmed_curve.py Outdated
@RobPasMue
RobPasMue enabled auto-merge (squash) June 9, 2025 07:04
@RobPasMue
RobPasMue merged commit b86542b into main Jun 9, 2025
@RobPasMue
RobPasMue deleted the feat/nurbs_enhancements branch June 9, 2025 08:00
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.

3 participants