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

Dev/guma/curve split extension methods #247

Merged
merged 14 commits into from
Aug 18, 2021

Conversation

d3ssy
Copy link
Collaborator

@d3ssy d3ssy commented Aug 17, 2021

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

  • ✨ Feature

Description

Adds extension methods to ICurve: SubCurve and SplitAt with multiple parameters.

Related Tickets & Documents

Closes #226

Added tests?

  • 👍 yes

Added to documentation?

  • 📓 docs

@d3ssy d3ssy requested a review from sonomirco August 17, 2021 10:11
Copy link
Collaborator

@cesarecaoduro cesarecaoduro left a comment

Choose a reason for hiding this comment

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

the code looks ok, if we want to clean it a bit more before merging that will be perfect

@@ -26,7 +26,7 @@ public static NurbsSurface[] Split(this NurbsSurface surface, double parameter,
{
throw new ArgumentNullException(nameof(surface));
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

spaces can be removed

src/GShark/Core/BoundingBoxTree/LazyCurveBBT.cs Outdated Show resolved Hide resolved
{
return false;
}

if (Knots.Count != other.Knots.Count)
if (!Knots.SequenceEqual(other.Knots))
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove curly braces if there is only one line of code?

src/GShark/Geometry/NurbsCurve.cs Show resolved Hide resolved
@cesarecaoduro cesarecaoduro merged commit 6a0dbcd into develop Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Curve split extension method and overloads
3 participants