8000 Removed ``Offset`` by sonomirco · Pull Request #324 · GSharker/G-Shark · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Removed Offset #324

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

Merged
merged 9 commits into from
Sep 3, 2021
Merged

Removed Offset #324

merged 9 commits into from
Sep 3, 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 removed the Offset class and moved the offset method into the single curve classes.

Related Tickets & Documents

This PR closes #311

Added tests?

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

Added to documentation?

  • 📓 docs
  • 🙅 no documentation needed

@sonomirco sonomirco added the refactor 🧰 Pull requests that perform maintenance on the project but add no features or bug fixes. label Sep 2, 2021
@sonomirco sonomirco self-assigned this Sep 2, 2021
@sonomirco
Copy link
Collaborator Author

@cesarecaoduro @d3ssy in this PR was merged this PR #323

Point3 pt1 = joinedCurve.PointAtLength(15);
Point3 pt2 = joinedCurve.PointAtLength(21.5);
Point3 pt3 = joinedCurve.PointAtLength(27.5);
Point3 pt4 = joinedCurve.PointAtLength(35.2);

// Arrange
Copy link
Collaborator

Choose a reason for hiding this comment

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

Assert

pt1.Equals(expectedPt1).Should().BeTrue();
pt2.Equals(expectedPt2).Should().BeTrue();
pt3.Equals(expectedPt3).Should().BeTrue();
pt4.Equals(expectedPt4).Should().BeTrue();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again here we should just do joinedCurve.Equals(expectedCurve) to test for equality, and expectedCurve defined explicitly in Arrange section.

@@ -197,6 +198,23 @@ public Line Flip()
return new Line(EndPoint, StartPoint);
}

/// <summary>
/// Computes the offset of the line.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should specify in which direction the offset is created relative to plane?

@d3ssy d3ssy merged commit fba14a5 into develop Sep 3, 2021
@sonomirco sonomirco deleted the dev/mibi/refactor-offset branch September 3, 2021 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Refactor Offset
2 participants
0