Skip to content

Centered option - #617

Merged
adam-urbanczyk merged 9 commits into
CadQuery:masterfrom
marcus7070:centered
Feb 10, 2021
Merged

Centered option#617
adam-urbanczyk merged 9 commits into
CadQuery:masterfrom
marcus7070:centered

Conversation

@marcus7070

Copy link
Copy Markdown
Member

Will resolve #567.

Also fixes some errors in the HTML docs for box and wedge.

@codecov

codecov Bot commented Feb 3, 2021

Copy link
Copy Markdown

Codecov Report

Merging #617 (1af8bb9) into master (184a985) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #617      +/-   ##
==========================================
+ Coverage   93.85%   93.93%   +0.08%     
==========================================
  Files          31       31              
  Lines        6457     6526      +69     
  Branches      692      712      +20     
==========================================
+ Hits         6060     6130      +70     
  Misses        258      258              
+ Partials      139      138       -1     
Impacted Files Coverage Δ
cadquery/cq.py 89.57% <100.00%> (+0.19%) ⬆️
tests/test_cadquery.py 99.09% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 184a985...1af8bb9. Read the comment docs.

Comment thread cadquery/cq.py Outdated
@RubenRubens

RubenRubens commented Feb 3, 2021

Copy link
Copy Markdown
Contributor

Fantastic work!

Comment thread cadquery/cq.py Outdated
Comment thread cadquery/cq.py Outdated
Comment thread cadquery/cq.py Outdated
@jmwright

jmwright commented Feb 4, 2021

Copy link
Copy Markdown
Member

@marcus7070 I re-ran one of the Azure CI checks. It had failed because it said it couldn't reach github.com. All the checks pass now. Let us know when it's ready for review. Thanks!

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

Copy link
Copy Markdown
Member Author

Ready for review now @jmwright.

@jmwright jmwright left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks @marcus7070

I've requested a review from @adam-urbanczyk as well.

@adam-urbanczyk

Copy link
Copy Markdown
Member

Thanks, looks good @marcus7070 !

@adam-urbanczyk
adam-urbanczyk merged commit b6beba7 into CadQuery:master Feb 10, 2021
@marcus7070
marcus7070 deleted the centered branch February 10, 2021 20:02
just-georgeb pushed a commit to just-georgeb/cadquery that referenced this pull request Feb 13, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Same options for centered in methods .rect and .box

4 participants