-
Notifications
You must be signed in to change notification settings - Fork 56
Add logic to the close() command - second version #257
Conversation
❌ Build cadquery 1.0.30 failed (commit a4d2e65b67 by @gntech) |
@dcowden and @fragmuffin this pull request is ready for review or merge. It is the same code as in the previous pull request but all in a single commit. |
@gntech this looks ok to me, but we need to get the builds passing before we can merge. The python3 build is failing and the appveyor (windows) build is as well |
@gntech I ran the 3 tests from #238...
But I guess this raises the question:
I'm thinking it probably should be, in which case test 1 is irrelevant. |
@fragmuffin Good question, I agree that it should be mandatory to call the close() function before extruding. As a comparison; In other CAD software it is possible to extrude a non-closed profile and then do what is called a "thin extrude". I do not know it this is even possible with opencascade but in order to allow for it we should not auto close wires. |
It appears this is ready to go, once Adam gets the miniconda issue sorted out. That should fix the appveyor and python 3 builds |
✅ Build cadquery 1.0.33 completed (commit 9ad0295e1c by @gntech) |
@gntech Could you please pull master into this branch? AppVeyor is fixed, and hopefully a pull will fix the Travis build. |
commit b281a4c Author: Gustav Näslund <gustav@gntech.se> Date: Fri Apr 27 07:17:39 2018 +0200 Fix converting to global coords in threePointArc Add more elaborate testcases with workplane origin moved and comparing the result of volumes created by threePointArc and sagittaArc. commit 679eb21 Author: Gustav Näslund <gustav@gntech.se> Date: Thu Apr 26 22:21:06 2018 +0200 Use local coordinates and not global coordinates in close() When getting the endPoint in close() ; use local coordinates and not global coordinates. It does matter when the origin of the workplane is moved. commit d458dcb Author: Gustav Näslund <gustav@gntech.se> Date: Wed Apr 25 17:47:02 2018 +0200 Add logic to the close command If start and end point of a set of 2d edges coincide; create a wire directly. If there is a distance between start and end point; add a line segment before creating the wire.
@jmwright Ok, now I have rebased this branch on latest master |
✅ Build cadquery 1.0.34 completed (commit 81353ee9e3 by @gntech) |
Codecov Report
@@ Coverage Diff @@
## master #257 +/- ##
==========================================
+ Coverage 92.74% 92.79% +0.04%
==========================================
Files 10 10
Lines 2206 2207 +1
==========================================
+ Hits 2046 2048 +2
+ Misses 160 159 -1
Continue to review full report at Codecov.
|
@gntech Thanks for all your work on this contribution, and thanks to everyone else who participated. |
This is a squashed version of pull request #255
commit b281a4c
Author: Gustav Näslund gustav@gntech.se
Date: Fri Apr 27 07:17:39 2018 +0200
commit 679eb21
Author: Gustav Näslund gustav@gntech.se
Date: Thu Apr 26 22:21:06 2018 +0200
commit d458dcb
Author: Gustav Näslund gustav@gntech.se
Date: Wed Apr 25 17:47:02 2018 +0200