File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -560,14 +560,14 @@ another :class:`~cadquery.Workplane` method).
560
560
561
561
The next step is to extrude this circle and create a cylindrical protrusion::
562
562
563
- part = part.extrude(1)
563
+ part = part.extrude(1, clean=False )
564
564
565
565
Now:
566
566
567
567
.. code-block :: none
568
568
569
569
Workplane object at 0xafd0:
570
- parent: Workplane object at 0x6df0
570
+ parent: Workplane object at 0xe790
571
571
plane: Plane object at 0x3e80:
572
572
origin: (0.5, 0.0, 0.0)
573
573
z direction: (1.0, 0.0, 0.0)
@@ -582,6 +582,16 @@ The :meth:`~cadquery.Workplane.extrude` method has cleared all the pending wires
582
582
that is shown in the 3D view above.
583
583
584
584
585
+ .. note ::
586
+ The :meth: `~cadquery.Workplane.extrude ` has an argument for ``clean `` which defaults to ``True ``.
587
+ This extrudes the pending wires (creating a new :class: `~cadquery.Workplane ` object), then runs
588
+ the :meth: `~cadquery.Workplane.clean ` method to refine the result, creating another
589
+ :class: `~cadquery.Workplane `. If you were to run the example with the default
590
+ ``clean=True `` then you would see an intermediate
591
+ :class: `~cadquery.Workplane ` object in :attr: `~cadquery.Workplane.parent `
592
+ rather than the object from the previous step.
593
+
594
+
585
595
Assemblies
586
596
----------
587
597
You can’t perform that action at this time.
0 commit comments