Skip to content

Conversation

@mattiskoh
Copy link
Contributor

What type of change is this?

  • [x ] Bug fix in a backwards-compatible manner.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • [x ] I added a line to the CHANGELOG.md file in the Unreleased section under the most fitting heading (e.g. Added, Changed, Removed).
  • [ x] I ran all tests on my computer and it's all green (i.e. invoke test).
  • [ x] I ran lint on my computer and there are no errors (i.e. invoke lint).

Copy link
Member

@beverlylytle beverlylytle left a comment

Choose a reason for hiding this comment

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

Looks good! Just the one comment to address, and then we merge!

return self.divide_polyline_by_length(segment_length, False)

def divide_polyline_by_length(self, length, strict=True):
def divide_polyline_by_length(self, length, strict=True, tol=1e-06):
Copy link
Member

Choose a reason for hiding this comment

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

Add tol to the parameters list in the docstring, please...

Copy link
Member

Choose a reason for hiding this comment

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

oh, also, there shouldn't be blank lines between the parameters... it makes the docs look funny... see https://compas.dev/compas/latest/api/generated/compas.geometry.Polyline.divide_polyline_by_length.html#compas.geometry.Polyline.divide_polyline_by_length

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just fyi, in offset_polyline tol isn't referenced!

def offset_polyline(polyline, distance, normal=[0.0, 0.0, 1.0], tol=1e-6):

Will make the changes though!

@beverlylytle beverlylytle merged commit 836c109 into compas-dev:main Mar 30, 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.

2 participants