Fix lineTo to do nothing instead of raising error when 0 length#1606
Open
endikallanomatxin wants to merge 2 commits intoCadQuery:masterfrom
Open
Fix lineTo to do nothing instead of raising error when 0 length#1606endikallanomatxin wants to merge 2 commits intoCadQuery:masterfrom
endikallanomatxin wants to merge 2 commits intoCadQuery:masterfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1606 +/- ##
==========================================
- Coverage 94.86% 94.83% -0.04%
==========================================
Files 28 28
Lines 6231 6233 +2
Branches 1264 1265 +1
==========================================
Hits 5911 5911
- Misses 193 194 +1
- Partials 127 128 +1 ☔ View full report in Codecov by Sentry. |
Member
|
Why is this desired? 0 length line sounds like a user mistake that should result in an error. |
Author
|
When automating parametric design, it can be more comfortable not having to deal with the edge case of 0 length. At least in my case, it allowed for easier and more flexible parametric modelling. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before the change it raised an error when startPoint and endPoint were equal