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

Joincurve and extrema #336

Merged
merged 7 commits into from
Sep 7, 2021
Merged

Joincurve and extrema #336

merged 7 commits into from
Sep 7, 2021

Conversation

sonomirco
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🔖 Release
  • 🚩 Other

Description

This PR adds a quick sort algo used by the JoinCurve to order the curves, and expose the Extrema as a method into the NurbsCurve.

Related Tickets & Documents

This PR closes #331
This PR closes #335

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📓 docs
  • 🙅 no documentation needed

@sonomirco sonomirco added enhancement 📢 Issues describing an enhancement or pull requests adding an enhancement. refactor 🧰 Pull requests that perform maintenance on the project but add no features or bug fixes. labels Sep 7, 2021
@sonomirco sonomirco self-assigned this Sep 7, 2021
/// </summary>
/// <param name="curves">The sets of curve to sort.</param>
/// <returns>The set of curves sorted.</returns>
public static List<NurbsCurve> QuickSortCurve(IList<NurbsCurve> curves)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why in Trigonometry?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I know.
I moved it into CurveHelpr.
If we start to have more sorting algos in the future, we can call them into another class, or make this one even more generic.

@sonomirco sonomirco merged commit 4c379f5 into develop Sep 7, 2021
@sonomirco sonomirco deleted the dev/mibi/joincurve-and-extrema branch September 9, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 📢 Issues describing an enhancement or pull requests adding an enhancement. refactor 🧰 Pull requests that perform maintenance on the project but add no features or bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JoinCurve curves order and direction Expose Extrema as a method into NurbsCurve
2 participants