Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/selectors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ Selectors can be combined logically, currently defined operators include **and**

result = cq.Workplane("XY").box(2, 2, 2).edges("|Z and >Y").chamfer(0.2)

Selector methods can also be chained. Each selector runs against the objects selected by
the previous step, which is useful when the selection needs to move across shape types.
For example, this selects the top face first and then selects the positive-Y edge of
that face before applying a chamfer:

.. cadquery::

result = (
cq.Workplane("XY")
.box(2, 2, 2)
.faces(">Z")
.edges(">Y")
.chamfer(0.2)
)

Much more complex expressions are possible as well:

.. cadquery::
Expand Down