Commit Graph

1300 Commits

Author SHA1 Message Date
ad078c70f3 Code formatting 2020-12-18 14:46:00 +10:30
6d2f3ba7b9 Refactored selectors
Added NthSelector abstract class and refactored RadiusNthSelector,
DirectionMinMaxSelector and DirectionNthSelector. Closes #517.
2020-12-18 14:46:00 +10:30
f3751c25b2 additional checks in testParallelPlaneFaceFilter 2020-12-18 14:46:00 +10:30
a576f1d404 Fix github-linguist statistics (#547)
* Added .gitattributes

Tell git that the test/testdata/ files and Jupyter Notebooks are binary
files, ie. do not display diffs and do not touch line endings in those
files.

* Moved 'CQ examples.ipynb' to examples directory

Now github-linguist will classify it as documentation, and the massive
line count in that file will stop skewing the language statistics for
CadQuery on Github.
2020-12-15 18:40:18 +01:00
6a6e39f7a7 Merge pull request #541 from marcus7070/selector-tests
Expanded selector tests
2020-12-13 20:23:31 -05:00
ac585b4ff1 Add glue option to combine() (#535)
* Update cq.py

Add glue option to combine()

* Update test_cadquery.py

Add test of glue=True to combine()

* Update test_cadquery.py

update testcombine()

* Update cq.py

Reformat combine()

* Reformat Black

* Update test_cadquery.py

Added tol=None to testCombine()

* Update test_cadquery.py

Correct testCombine()

* Update test_cadquery.py

* Update test_cadquery.py

* Update test_cadquery.py

Black formatting

* Update test_cadquery.py
2020-12-11 08:56:06 +01:00
de2cef9580 Expanded selector tests 2020-12-11 10:28:49 +10:30
a03648c842 Change to ProjectedOrigin (#532)
* Change to ProjectedOrigin

* Fix most tests

* Fix remaining tests

* Fix example building

* Update selector docs

* Fix the bottle+formatting changes

* Renamed centered to xycentered

* Ignore utils for coverage calculation
2020-12-08 18:32:57 +01:00
52ae38596f Merge pull request #536 from jmwright/master
Fixed code typos in revolve example
2020-12-08 07:31:04 -05:00
a0c04154bc Fixed code typos in revolve example 2020-12-08 06:43:44 -05:00
c42fa77ac0 Add mirror from face features (with example now fixed) (#527)
* Add the ability to mirror from a selected face

* Fix errors in example.rst

* Add mirror from face features (with example now fixed)

* recommit merge conflicts in shape.py that were stopping CI merging into master

* use correct variable name when selecting face

* formatting with black v19 instead of black v21

* add missing string literal types and clean up docstring

* Add volume assertions to the test cases

* black formatting

* Mypy fix

* Restructured mirror

* update examples to use basePoint instead of basePointVector

* Add tests for other workplane strings and non union option to increate code coverage

* Add test to check that exception is thown for incorrect input

* Go back to basePointVector

* Update arg naming in examples

* Mirror all objects

* Typo fix

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-12-08 08:26:53 +01:00
1b52f10771 Merge pull request #528 from jmwright/master
[WIP] - Trying to move to env variable in Appveyor
2020-12-04 12:06:40 -05:00
c14ab6b4d7 Trying to move to env variable in Appveyor 2020-12-01 12:23:43 -05:00
cf275b0ec0 Constraints docs [WIP] (#524)
* Initial version of the constraints docs

* Adding the assy section

* apireference cleanup

* Include cutouts

* Roadmap cleanup

* _query cleanup

* Black fix

* Add RadiusNthSelector again

* Typo fix

* Paste error fix

* Show detailed selector docs

* Another typo fix

* Mention other constrain overload

* Added test for end()
2020-11-30 13:41:34 +01:00
3914bc3445 occ_impl doc strings (#491)
* Added and cleaned up some docstrings for Shape

* a typo
2020-11-30 11:58:15 +01:00
b22436c59e Implement tag based constraint definition (#514)
* Refactor tags

* Use pyparsing for query parsing and implement tags

* Black and mypy fixes

* Allow "_" in names and tags

* Added tests

* Fixed constrain with tag test

* Better docstring for _query

* Typo fix
2020-11-24 17:46:21 +01:00
78d100dd05 Merge pull request #504 from marcus7070/marcus7070/edgeRadius
Radius selector
2020-11-20 07:01:50 -05:00
ec9cd46ea6 Merge pull request #482 from CadQuery/vrml-export
VRML export
2020-11-19 08:52:03 -05:00
17ad179dca Mention VRML in the README 2020-11-19 08:58:32 +01:00
5ec49c6cd1 Cover all code paths in VRML export 2020-11-19 08:22:35 +01:00
9b9723ceba Pin OCP to 7.4 2020-11-19 08:20:21 +01:00
821886f08a Add Mac OS exception to Mixin1D.radius 2020-11-18 20:32:10 +10:30
255b464509 Added RadiusNthSelector 2020-11-18 19:39:20 +10:30
3136ede020 Added radius method to Mixin1D 2020-11-18 19:39:17 +10:30
5eebcd5b45 Use OCP 7.4 for now 2020-11-18 17:22:21 +10:30
28d6089527 Expose mode for sweep operations. (#496)
* Expose mode for sweep operations

* Additional sweep functionality

* Fix sweep in cq

* Expose the new sweep args in Workplane

* fixed aux spine handling

* sweep test with a fixed normal

* Test aux spine sweep

* Added more tests

* Reformat sweep docs
2020-11-10 16:51:11 +01:00
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
5b5d8e0572 More consistent handling of BoundaryBox tolerance (#490) 2020-10-24 15:31:29 +02:00
23b2a10399 Merge pull request #488 from jmwright/master
Added alternative conda installation instructions to readme
2020-10-22 13:16:38 -04:00
469ca41b6d Added alternative conda installation instructions to readme 2020-10-20 08:00:56 -04:00
ddca79b615 Merge pull request #485 from jmwright/master
Change install instructions in readme to focus on master conda install
2020-10-15 16:20:58 -04:00
8d4f42cada Change install instructions in readme to focus on master conda install 2020-10-15 15:22:47 -04: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
de2da03a97 Merge pull request #484 from jmwright/master
Added a Mention of the Discord Channel to the Readme
2020-10-14 15:03:35 -04:00
ffcb69efd4 Changed the wording of the Discord section. 2020-10-14 14:26:43 -04:00
29d2f28faa Added Discord link to readme 2020-10-14 14:24:45 -04:00
f4ca83315a Go back to the older format 2020-10-14 19:19:39 +02:00
d43ed8f665 Added test 2020-10-14 19:07:47 +02:00
36ce899dfe Simple shape vrml export 2020-10-14 19:01:01 +02:00
6f8aca8299 Added mesh method 2020-10-14 19:00:47 +02:00
5b5fa71620 Switch to XCAF format 2020-10-14 18:51:30 +02:00
3a50edd27d Merge pull request #453 from cactrot/fontPath
Font path
2020-10-14 11:42:33 -04:00
7f26c3b3c6 exclude tests from the installing packages (#478)
fixes https://github.com/CadQuery/cadquery/issues/181
2020-10-13 18:28:25 +02:00
c3e9ef5485 Fixed parametricCurve() to use correct stop point (#477) 2020-10-13 08:43:47 +02:00
a947d0b4be Formatting fix 2020-10-11 16:09:53 +02:00
cea5bf6c6c Rework makeText
Use name based on the path for registering
2020-10-11 14:40:48 +02:00
7fd45e00ce Remove note about CQ-editor py3.7 requirement (#474) 2020-10-10 15:54:59 +02:00
292a0d8d0a Merge pull request #440 from CadQuery/assembly
Assembly support
2020-10-01 06:48:06 -04:00
21f7f48161 Mention assemblies in the README 2020-10-01 08:52:03 +02:00
8f62fc54dd Review fixes 2020-10-01 08:33:03 +02:00