diff --git a/conda/meta.yaml b/conda/meta.yaml index 4e55c5534..99b09a443 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -25,7 +25,8 @@ requirements: test: requires: - - pytest + - pytest + - docutils source_files: - tests/ commands: diff --git a/doc/examples.rst b/doc/examples.rst index 257116e30..ef36c013a 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -874,7 +874,7 @@ A Parametric Enclosure topOfLid = topOfLid.rotateAboutCenter((1,0,0),180) #return the combined result - result =topOfLid.combineSolids(bottom) + result =topOfLid.union(bottom) .. topic:: Api References @@ -893,7 +893,7 @@ A Parametric Enclosure * :py:meth:`Workplane.workplane` * :py:meth:`Workplane.fillet` * :py:meth:`Workplane.cut` - * :py:meth:`Workplane.combineSolids` + * :py:meth:`Workplane.union` * :py:meth:`Workplane.rotateAboutCenter` * :py:meth:`Workplane.cboreHole` * :py:meth:`Workplane.cskHole` diff --git a/examples/Ex009_Polylines.py b/examples/Ex009_Polylines.py index 70f83e87d..29c17bc9e 100644 --- a/examples/Ex009_Polylines.py +++ b/examples/Ex009_Polylines.py @@ -6,6 +6,7 @@ # Define the points that the polyline will be drawn to/thru pts = [ + (0, H / 2.0), (W / 2.0, H / 2.0), (W / 2.0, (H / 2.0 - t)), (t / 2.0, (H / 2.0 - t)), @@ -30,7 +31,7 @@ # 3. Only half of the I-beam profile has been drawn so far. That half is # mirrored around the Y-axis to create the complete I-beam profile. # 4. The I-beam profile is extruded to the final length of the beam. -result = cq.Workplane("front").moveTo(0, H / 2.0).polyline(pts).mirrorY().extrude(L) +result = cq.Workplane("front").polyline(pts).mirrorY().extrude(L) # Displays the result of this script show_object(result) diff --git a/examples/Ex010_Defining_an_Edge_with_a_Spline.py b/examples/Ex010_Defining_an_Edge_with_a_Spline.py index 57b063288..d42cfea75 100644 --- a/examples/Ex010_Defining_an_Edge_with_a_Spline.py +++ b/examples/Ex010_Defining_an_Edge_with_a_Spline.py @@ -18,7 +18,7 @@ # 2. Generate our plate with the spline feature and make sure it is a # closed entity -r = s.lineTo(3.0, 0).lineTo(3.0, 1.0).spline(sPnts).close() +r = s.lineTo(3.0, 0).lineTo(3.0, 1.0).spline(sPnts, includeCurrent=True).close() # 3. Extrude to turn the wire into a plate result = r.extrude(0.5) diff --git a/examples/Ex013_Locating_a_Workplane_on_a_Vertex.py b/examples/Ex013_Locating_a_Workplane_on_a_Vertex.py index 197e5c068..f9cdc1005 100644 --- a/examples/Ex013_Locating_a_Workplane_on_a_Vertex.py +++ b/examples/Ex013_Locating_a_Workplane_on_a_Vertex.py @@ -11,7 +11,7 @@ # 3a. The top-most Z face is selected using the >Z selector. # 3b. The lower-left vertex of the faces is selected with the Z").vertices("Z").vertices("