Commit Graph

40 Commits

Author SHA1 Message Date
9e481b41a1 Typo fixes
Found via `codespell -q 3 -S *.js -L ba`
2021-07-30 13:48:22 -04:00
d5ce1321ca Added AreaNthSelector (#688)
* Added AreaNthSelector

Added AreaNthSelector that is useful for nested features selection. Especially to select one of coplanar nested wires for subsequent extrusion, cutting or filleting.

* LengthNthSelector

* Explicitly marked _NthSelector class and _NthSelector.key(..) method as abstract using standard abc package

* AreaNthSelector ignores "bad" Wires

AreaNthSelector.key raises ValueError if temporary face creation fails for a wire for any reason (non-planar, non-closed). That causes _NthSelector that it inherits to ignore such wires. Done so for consistency with RadiusNthSelector that ignores anything it can not get radius from.

Co-authored-by: Marcus Boyd <mwb@geosol.com.au>
2021-03-17 14:14:37 +10:30
94e0976119 Fix examples and start testing them (#609)
* Fix examples

* Added test for examples

* Fix example testing code

* Sweep example fix

* Reformat examples

* Test examples from the docs too

* Add docutils to the test requirements

* Example test fix on win+cleanup

* Use union
2021-01-31 19:00:21 +01:00
e483b04a70 Run black linter 2021-01-18 22:28:19 -08:00
039952cb62 Add Ex025 for sweeping a wire along a helix from cq.Wire.makeHelix() 2021-01-18 16:03:13 -08:00
1afae0a10e remove unused variable 2021-01-16 16:20:49 +01:00
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
a0c04154bc Fixed code typos in revolve example 2020-12-08 06:43:44 -05:00
cd66589e4e Implementation of BRepOffsetAPI_MakeFilling (#253) 2020-03-05 21:43:16 +01:00
102c16c14e Add Black formatting check to CI (#255)
* Add Black formatting check to CI
* Add some documentation for code contributors
* Use uncompromised code formatting
2020-01-20 20:52:12 +01:00
653549dd90 Fixed line continuations in examples per #221 2019-11-30 14:57:29 -05:00
99cfb9ef59 Fixed examples 2019-06-10 18:51:15 +02:00
0237aa5c0c Changed cq.sweep interface 2019-05-19 10:44:03 +02:00
b99ac29a4f Went through and updated the docs source to change FreeCAD and CQFM content and references to PythonOCC and CQ-editor. 2019-01-17 13:25:51 -05:00
5d67451477 Added the lego example back into this core repo. 2018-12-29 21:03:08 -05:00
f1cf831701 Reworked the core examples to exclude contributed examples. 2018-12-29 18:44:08 -05:00
528e4e3a46 Added toFreecad function and modified the examples to use it. Also cleaned up minor PEP non-conformances. 2014-11-04 17:13:21 -05:00
3bf871b0ea Added cylinder and donut tests for the revolve operation and started on the cone test. 2014-10-20 17:41:53 -04:00
55d659fa9c Fixed the cases where the revolve didn't work as expected. 2014-10-17 14:06:55 -04:00
70ef555519 The revolution operation seems to be working properly, but needs to be reviewed. 2014-10-16 23:12:52 -04:00
6549d561f5 Got revolution mostly working except for defaulting the axis of revolution end point if the user doesn't specify one. 2014-10-16 16:48:12 -04:00
ebcc449f84 Started implementing the final form of the revolve operation. 2014-10-09 23:04:48 -04:00
f20d52ebd9 Got the revolve operation working by preventing the wire(s) from being centered. 2014-10-08 11:32:41 -04:00
84803e211e Removed old revolution example with wrong number. 2014-10-02 10:41:37 -04:00
21b41ab21e Fixed example number on revolution example. 2014-10-02 10:40:18 -04:00
bfcc07ba60 Got the revolution operation partly working. There seems to be something wrong with how the wires are being handled still. 2014-09-30 17:38:24 -04:00
0d0c40f596 Working to fix the revolve function which appears to be extruding. 2014-09-30 14:58:42 -04:00
a4a895d963 Added the example for using FreeCAD and CQ objects interchangably. 2014-07-10 21:26:31 -04:00
937757e2d1 Finished out the final examples, but still need to add a correction for the cad module when the fix is available. 2014-07-08 23:32:02 -04:00
684fbe1a66 Added lofts example. 2014-07-08 17:02:43 -04:00
795708fe7f Added examples 16 and 17. 2014-07-07 23:00:25 -04:00
3faadb8b2e Added more examples (through 15), but #15 is still has a module import error. 2014-07-05 23:53:48 -04:00
d8ba4b23e9 Continued working through the examples on ParametricParts.com, adding 3 more and fixing some variables that weren't updated in some of the older examples. 2014-06-26 21:54:55 -04:00
0fcd01b3b0 Added FreeCAD examples 5 through 7 and cleaned up the other examples a tiny bit. 2014-06-23 16:54:48 -04:00
15e53f1762 Added the first new example from the CadQuery Examples page on ParametricParts.com 2014-06-14 22:01:33 -04:00
e151025ef9 Added the two other examples that completes the quickstart on ParametricParts.com. 2014-06-12 21:10:03 -04:00
627e99e4f1 Changed the dimensions to look more like the screenshots on ParametricParts.com. 2014-06-12 20:22:31 -04:00
9e893701e3 Cleaned up the first example file a little bit. 2014-06-12 20:05:13 -04:00
4e5dfa3a46 Moved code of Ex001 example to the base so you don't have to call build. 2014-06-10 22:24:05 -04:00
eec699460a Created example directory and first example file for review. 2014-06-10 16:04:01 -04:00