Commit Graph

1629 Commits

Author SHA1 Message Date
bb3027742e Updated string selector docs
Warning changed to reflect the new >> string selector.

Changed note about some types of filters not applying to edges, since
now every selector works with edges.
2021-01-05 09:54:25 +10:30
7650436a48 Add omitted line functions to autosummary (#561) 2021-01-04 09:02:42 +01:00
428354c1ab More tests for the type selector 2021-01-04 08:48:11 +01:00
48d1ebbb5d Allow all supported geoms in the type selectors 2021-01-04 08:47:02 +01:00
bd5487353f Mention >> selector in the docs 2021-01-04 08:29:36 +01:00
a74536008d More tests for >> 2021-01-03 20:27:24 +01:00
b0a4dd0f4a Allow >> wihtout index 2021-01-03 20:24:31 +01:00
440e84dcb1 Merge branch 'master' into NthSelector 2021-01-03 15:48:02 +01:00
b5fb287a35 Tests for >> 2021-01-03 15:42:52 +01:00
2ca0e398b4 Fix broken CenterNthSelector tests 2021-01-03 15:26:35 +01:00
9ca11fc3db String syntax for the CenterNthSelector
+ refactored CenterNthSelector to match DirectionNthSelector
2021-01-03 15:16:28 +01:00
a3ebdb961d Merge pull request #557 from jmwright/master
Updated changelog and version numbers
2020-12-30 05:47:23 -05:00
84acb704e0 Merge pull request #555 from just-georgeb/parametricCurveFix
Expose makeWire to parametricCurve
2020-12-29 18:16:05 -05:00
be8551097e Updated changelog and version numbers 2020-12-29 10:53:14 -05:00
337b6129c9 Assy tutorial centerOption fix (#556) 2020-12-28 20:45:28 +01:00
e6feeb9916 Expose makeWire to parametricCurve 2020-12-27 22:20:18 +00:00
e19a05d023 ParallelDirSelector now filters for geomType() == "PLANE"
In certain circumstances this will be breaking, most commonly when using
DirectionNthSelector and there was previously a non-planar face in the
list. In this case eg. ">X[2]" will have to become ">X[1]".
2020-12-25 14:30:02 +10:30
3fa9753d0a Merge pull request #550 from jmwright/master
Added installation video links to readme
2020-12-21 12:11:27 -05:00
d87abb7951 Changed wording on video links in readme 2020-12-21 08:23:57 -05:00
54987cb0f2 Added installation video links to readme 2020-12-21 08:22:25 -05:00
88714975ff More tests for selectors 2020-12-19 15:41:04 +10:30
2d3fc607e6 Code formatting 2020-12-19 13:40:45 +10:30
5b90385539 Mypy fixes 2020-12-18 20:25:00 +01:00
adadea3780 Update README.md (#525)
In the current manual there is no clear explanation on how to quickly get started to play around with CadQuery through the CQ-editor (binaries). 

Proposed change: 
Under "Getting started" start out with the thing most people running into this project for the first time will probably want to try first: just fiddle around with CQ-editor. In the CQ-editor "installation" section I'll propose a change to add binary installation instructions (which is much easier/quicker to get started with than "the Conda way").
2.1RC1
2020-12-18 08:43:31 +01:00
82a043a0be Assembly hierarchy - 2nd take (#545)
* Reworked nested assy querying

* Support subclassing

* Added docstring
2020-12-18 08:40:24 +01:00
14e5838b9f Added new selector classes to docs 2020-12-18 15:38:22 +10:30
4486381145 Added CSS for line wrapping in tables 2020-12-18 15:17:39 +10:30
a242473be9 Updated string selector doc page
Correct title underlining means the sidebar no longer shows "Combining
Selectors" as a top level item, instead it's a sub item under "String
Selectors Reference". Updated some other parts and expanded some
explanations. Resolves #531.
2020-12-18 15:14:20 +10:30
344651d1b3 Added CenterNthSelector and tests
Resolves #530.
2020-12-18 15:14:08 +10:30
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