Commit Graph

1609 Commits

Author SHA1 Message Date
112024d2e3 Escape pipe symbol in selector docstrings
Sphinx decided it was a link to something
2021-02-25 12:29:18 +10:30
dc15aeab4f Fixed spelling mistakes in qc.py (#659) 2021-02-24 18:56:51 +01:00
2085054caa Fix Edge.makeEllipse HTML docs 2021-02-24 17:58:42 +10:30
e4ed881617 Merge pull request #648 from RubenRubens/remove_outdated_docs
Removes outdated docs of _extrude
2021-02-19 12:24:59 -05:00
283d92d7a7 Merge pull request #644 from CadQuery/pin-black
Pin black
2021-02-19 11:52:54 -05:00
f614780c97 Removes outdated docs of _extrude 2021-02-19 16:18:17 +01:00
606eb2773e offset2D for construction (#639)
* Added forConstruction option to Workplane.offset2D

* Added Workplane.offset2D example

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2021-02-19 10:49:09 +10:30
2803243e4d Pin black 2021-02-18 17:56:23 +01:00
3505fc2ff6 Merge pull request #636 from pavpen/spline-tangents-parameters-tolerance
Add Support for Specifying Arbitrary Tangents, etc. in spline()
2021-02-18 20:57:35 +10:30
8d2c0b90c2 Black 19.10 fix 2021-02-18 11:02:55 +10:30
ff0b123889 Test periodic splines with parameters 2021-02-18 10:38:49 +10:30
6f5f0cc984 Validate Edge.makeSpline parameters for periodic splines 2021-02-18 10:38:36 +10:30
b5e4aa940f Validate Edge.makeSpline parameters input 2021-02-18 07:20:40 +10:30
a8f7a027ab Black fix 2021-02-17 21:40:05 +01:00
173f33de20 Black fix 2021-02-17 21:38:57 +01:00
9efe66c482 Fix Unit Test after Rename of spline() Parameter tolerance to tol
* Fixed the `testSplineTangentMagnitudeBelowToleranceThrows` unit test. It was failing since `spline()`'s parameter `tolerance` seems to have been renamed to `tol`.
2021-02-17 14:02:27 -05:00
bec5036d34 Additional test for spline 2021-02-17 18:04:29 +01:00
1b2a23b4f2 Shorter error message 2021-02-17 17:59:32 +01:00
e055d267df Rename param + shorter code 2021-02-17 17:54:58 +01:00
c66a8cd341 Attempt to Fix spline() DocString Indentation
* Updated DocString indentation. Hopefully, that fixes the Sphinx-generated documentation. I can't currently build locally.
2021-02-17 06:19:01 -05:00
59b4d0d4c8 Don't Use Assert to Check Input Parameters
* Updated `makeSpline` to construct an explicit exception, rather than use an `assert` to check input parameters.
2021-02-17 06:14:41 -05:00
d9b0b506c8 Don't Use an Overly Restrictive Type Hint for spline()'s parameters Argument
* Changed the type hint to `Sequence` instead of `List`, since other list-like objects are acceptable, as wel.
2021-02-17 06:08:27 -05:00
172ae85c01 Put Spline scale Parameter Tests Cases Together
* Moved the tests cases, so they're next to each other.
* Added a comment about the relationship between the two test cases.
2021-02-17 06:06:34 -05:00
0a54c701ce Tidy Edge.makeSpline docstring 2021-02-16 22:04:55 +10:30
0dcccc351d tangentAt fix (#641)
* tangentAt fix

* Better testTangengAt

* Change default to length

* tests fix
2021-02-15 21:18:09 +01:00
d4879652db Use Different Temporary Variables to Satisfy MyPy
* Updated `Edge.makeSpline()` to use different temporary variables in
the several for loops in the function body. Python for
[loop target variables
leak](https://eli.thegreenplace.net/2015/the-scope-of-index-variables-in-pythons-for-loops/)
to the function (or enclosing module) scope, and MyPy doesn't accept
[reusing the same variable name with a different
type](https://github.com/python/mypy/issues/1174) (except in specific
cases, and when `--allow-redefinition` is used).
2021-02-14 22:57:16 -05:00
59c7283dbc Reformat Code with black 19.10b
* Reformatted the code with `black` 19.10b. This is the version that's used by the Travis continuous integration check. The default version of `black` that comes with Conda is 20.8b1, which produces different formatting.

<environment.yml> should be updated to require the specific version of `black` used to check code before it's merged.
2021-02-14 18:40:39 -05:00
1caae595ed Add Support for Specifying Arbitrary Tangents, etc. to spline()
* Added support for specifying the tangents at arbitrary interpolation
points when interpolating a B-spline curve with `Workplane.spline()`.

* Added support for specifying whether the tangents should be
automatically scaled. (I.e., only use the tangent vector directions,
rather than their magnitudes.)

* Added support for specifying the value of the curve function
parameter at the interpolation points.

* Added support for specifying the interpolator's tolerance value.

Q: _There are a number of whitespace, and other formatting changes
introduced by `black`. Is there a specific list of parameters that you
use when running code formatting?_
2021-02-14 06:33:24 -05:00
4653834677 black fix 2021-02-13 22:58:51 +01:00
d1ebfbac22 Merge pull request #630 from greyltc/layer-case-fix
force dxf layer name case agreement
2021-02-12 19:23:19 -05:00
5ffb1af6d3 Explain why .lower() is needed 2021-02-12 18:19:15 +01:00
0d96f63e94 Merge pull request #569 from RubenRubens/boolean
Boolean operation syntactic sugar
2021-02-12 12:04:57 -05:00
27a532db47 Update the env spec 2021-02-12 18:02:17 +01:00
9bf351ab00 Initial 7.5 support 2021-02-12 17:56:47 +01:00
79f4bb84ce Document special members 2021-02-12 08:35:45 +01:00
ec3cef2e36 Explicit __add__ implementation 2021-02-12 08:26:59 +01:00
c9896310f2 fix lint 2021-02-11 15:01:38 +00:00
4273331406 force dxf layer name case agreement
fixes #624
2021-02-11 09:43:51 +00:00
4f820109ed + operator test 2021-02-11 08:23:50 +01:00
9f5badb42a Implement + operator 2021-02-11 08:20:47 +01:00
b6beba7cb1 Centered option (#617)
* Added 2d centered option to rect

* Added single bool center option to box

* Add single bool center option to sphere

* Added single bool center option to wedge

* Added 2d centered option to rarray

* Black fix

* Centered docstrings

Change all docstrings for centered options to be consistent and more
clear

* Docstring fixes

* Fix type hint on wedge method
2021-02-10 18:02:43 +01:00
184a985066 Merge pull request #615 from CadQuery/v2.1-update
Updates to prepare for the release of 2.1
2.1
2021-02-03 12:25:13 -05:00
7c0394c126 Updates to prepare for the release of 2.1 2021-02-03 09:55:09 -05:00
d0695ec594 Assy docs fix (#614) 2021-02-03 08:25:20 +01:00
e5e0fef27a Merge pull request #613 from marcus7070/wedge-center
Wedge center
2021-02-01 17:16:37 -05:00
a57e69ab27 Fix deprecation warning on regex 2021-02-01 19:39:05 +01:00
be851aa98b Added tests for wedge centering 2021-02-01 20:51:27 +10:30
d42a1e6906 Fix another error in wedge centering 2021-02-01 20:36:33 +10:30
2e8d674f86 Merge pull request #611 from CadQuery/wedge-fix
Fix wedge centering
2021-01-31 19:51:24 -05:00
8fa1753a62 Fix wedge centering 2021-01-31 21:59:43 +01:00