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
This commit is contained in:
Adam Urbańczyk
2021-01-31 19:00:21 +01:00
committed by GitHub
parent 68bac660a2
commit 94e0976119
8 changed files with 84 additions and 10 deletions

View File

@ -11,7 +11,7 @@ result = cq.Workplane("front").box(3, 2, 0.5)
# 3a. The top-most Z face is selected using the >Z selector.
# 3b. The lower-left vertex of the faces is selected with the <XY selector.
# 3c. A new workplane is created on the vertex to build future geometry on.
result = result.faces(">Z").vertices("<XY").workplane()
result = result.faces(">Z").vertices("<XY").workplane(centerOption="CenterOfMass")
# 4. A circle is drawn with the selected vertex as its center.
# 4a. The circle is cut down through the box to cut the corner out.