Commit Graph

71 Commits

Author SHA1 Message Date
65f9608f54 Implement locations() for Wires (#475)
* Implement locations() for Wires

* Fix errors

* Test for locations on a wire

* Refactored Mixin1D

* Mypy fixes and more refactoring

* black fix

* Moved _geomAdaptor to concrete classes

* Add positionAt

* Added positions()

* positions() and positionAt() test

* Better tests

* Extended tangentAt and added docstrings

* Test for tangentAt

* Fixed defects

* Doc fix attempt

* Use autoclass on Mixins

* specify full name in sphinx
2020-10-30 22:31:51 +01:00
cac5cf92f1 Create a child workplane on a vertex (#480)
* add parent face detection to workplane()

* Update cq.py

* add nonetype check and tests

* fixed test formatting

* mypy fix attempt

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-10-15 21:10:49 +02:00
3a50edd27d Merge pull request #453 from cactrot/fontPath
Font path
2020-10-14 11:42:33 -04:00
292a0d8d0a Merge pull request #440 from CadQuery/assembly
Assembly support
2020-10-01 06:48:06 -04:00
32f25f7164 rarray: bound spacings to greater than 0 (#454)
* rarray: bound spacings to greater than 0
This addresses Issue 451

* Fix a typo. (#452)

* Fix a typo.

* Pin black version in travis

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>

* rarray: bound spacings to greater than 0
This addresses Issue 451

* Added test for rarray error handling

Co-authored-by: Kevin Menard <kevin@nirvdrum.com>
Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-09-27 17:05:04 +02:00
a1bb80741c Update test_cadquery.py
Check for non-existent file instead of trying to use it and possibly segfaulting.
2020-09-26 07:26:38 -04:00
26de7bc9c2 Update test_cadquery.py
Changed directory to point to test data.
2020-09-24 13:29:59 -04:00
00a1329c2e Update test_cadquery.py
Perhaps the call to os.path.join will allow the tests to run.
2020-09-22 21:48:26 -04:00
8dd1038226 Update test_cadquery.py
Try pulling a valid path from elsewhere in the file.
2020-09-22 17:25:20 -04:00
31d4a4f79a Update test_cadquery.py
Try just the current directory.
2020-09-22 17:08:16 -04:00
f934f45bf7 Update test_cadquery.py
Trying Unix style path.
2020-09-22 16:49:21 -04:00
6b2df42ed6 Update test_cadquery.py
Add test for "text" using fontPath keyword argument.
2020-09-22 16:36:58 -04:00
f914815019 Fixed normal test 2020-09-11 23:54:23 +02:00
dd863bdbc5 Added test for normal 2020-09-11 20:25:48 +02:00
8efb8ac338 Expose intersection joint type for shell 2020-07-24 08:41:13 +02:00
66ea7b859f Formatting and test 2020-07-23 19:55:14 +02:00
a8707cecc0 Implement locationAt (#404)
* Initial implementation of locationAt

* Added tests
2020-07-15 08:57:50 +02:00
8fc0e2173e Added test for consolidateWires 2020-07-10 18:49:13 +02:00
6990e9523a Initial offset2D implementation. 2020-07-10 17:54:56 +02:00
cf791f5fe6 Extended tests for polarArray 2020-07-09 18:26:09 +02:00
48c75cff3c Local rotation + test fixes 2020-07-09 18:16:17 +02:00
2b653887fe Implemented fully closed shelling (#394) 2020-07-08 22:11:24 +02:00
9808ccea9b Type annotations for shapes (#391)
* Started annotating shapes

* shapes pass mypy check

* Mypy completely green on CQ

* Safer downcast

* Added additonal test
2020-07-06 22:35:47 +02:00
cf860a961c Do not add plane center to objects 2020-06-23 18:18:33 +02:00
9dc94d35f2 Added tests for move(d) and locate(d) 2020-06-22 22:36:43 +02:00
191d78d558 Test fixes 2020-06-17 21:04:54 +02:00
7f333cd81a Added test for fuzzy bool op 2020-06-05 17:26:37 +02:00
db4dba44ee Test the compound fuse path 2020-06-05 17:13:13 +02:00
216332e5dd Added test for glue=True 2020-06-04 20:55:12 +02:00
5342220402 Merge pull request #349 from CadQuery/master
Pull latest changes
2020-05-08 19:48:04 +02:00
a140d1035c Add support for slicing (#339)
* Allow constructing infinite planes

* Preliminary section implementation

* Better error message

* Section related tests
2020-05-06 08:58:35 +02:00
38bb4af3b7 Merge pull request #335 from CadQuery/master
Merge latest master
2020-05-01 08:46:29 +02:00
1491e0ccf4 Merge pull request #317 from jmwright/master
Making largestDimension work as expected
2020-04-29 12:45:26 -04:00
17e12ce93a Update OCP with latest master (#332)
* Extrude with both=True fix (#321)

Extrude with both=True will result in a single solid.

* combineWithBase fix
* Allow to self-fuse a compound
* Formatting fix
* Test if extrude with both=True fuses the solids

* Fixed version number that was missed during RC2 release.

* Prepare for the 2.0 release

* Add reference to #106

* Typo fix

* Added info about breaking changes

* Fixed a typo

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>
2020-04-24 18:31:37 +02:00
7876fd0cc7 Extrude with both=True fix (#321)
Extrude with both=True will result in a single solid.

* combineWithBase fix
* Allow to self-fuse a compound
* Formatting fix
* Test if extrude with both=True fuses the solids
2020-04-16 18:14:57 +02:00
ccf4ee20c6 Reworked the largestDimension logic based on bounding box extents.
The value returned now errs on the side of being very slightly larger, which is probably good considering this method's main use it to find the distance for thru cuts.
2020-04-14 21:01:13 -04:00
5609e4c460 Rough cut of making largestDimension work as expected 2020-04-10 23:32:52 -04:00
f9a3138149 Merge branch 'master' into OCP 2020-04-08 19:03:33 +02:00
0276a8f894 Formatting fixes 2020-04-06 21:26:00 +02:00
3eb345bf02 Added tests 2020-04-06 21:20:24 +02:00
a1e0184fdc Formatting fix 2020-04-04 15:42:34 +02:00
764a934942 Added test for makeHelix 2020-04-04 15:20:04 +02:00
eda79b40e9 Merge branch 'master' into OCP 2020-03-22 17:53:01 +01:00
e655098834 Improve formatting 2020-03-19 18:51:15 +01:00
71080aff59 test tangentArcPoint with 3-tuple argument 2020-03-19 18:36:44 +01:00
228ca55786 Renamed tangentArcEndpoint to tangentArc 2020-03-19 21:21:01 +10:30
ae305501e1 Merge branch 'master' into marcus7070/tangentArc 2020-03-19 08:46:22 +01:00
a499a4b5d3 Ellipse (#265)
* added ellipse

* removed unused math imports

* added method ellipseArc and adapted method ellipse to circle

* introduced sense for ellipse building

* adapted ellipse test cases

* exclude vscode config folder

* use gp_Ax2(p, zdir, xdir) for ellipse building

* ran black against the changes

* Fix docstring of makeEllipse

Co-Authored-By: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>

* Fix return value in docstring of makeEllips

Co-Authored-By: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>

* Formatting fix

* Increase test coverage

* Formatting fixes

* Add test for makeEllipse

* Test fix

* Formatting + typo fix

Co-authored-by: Bernhard <bwalter42@gmail.com>
Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-03-15 14:04:48 +01:00
b89bc44f86 Added Workplane.tangentArcToPoint, occ_impl.shapes.Edge.makeTangentArc 2020-03-14 19:44:11 +10:30
b9d3a1c187 Spline tangnet fix for offset workplane (#293)
Fixes #292
2020-03-06 22:18:31 +01:00