-
Notifications
You must be signed in to change notification settings - Fork 38
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
Removed Offset
#324
Conversation
Updated and added other join tests. Unify knots for polyline.
Removed Offset class and OffsetTests.
@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 |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
What type of PR is this? (check all applicable)
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?
Added to documentation?