Skip to content
Merged
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
12 changes: 6 additions & 6 deletions cadquery/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def filter(self, objectList: Sequence[Shape]) -> List[Shape]:


class ParallelDirSelector(BaseDirSelector):
"""
r"""
Selects objects parallel with the provided direction.

Applicability:
Expand Down Expand Up @@ -677,9 +677,9 @@ def _getVector(self, pr):
return self.axes[pr.simple_dir]

def filter(self, objectList):
"""
r"""
selects minimum, maximum, positive or negative values relative to a direction
[+\|-\|<\|>\|] \<X\|Y\|Z>
``[+|-|<|>|] <X|Y|Z>``
"""
return self.mySelector.filter(objectList)

Expand Down Expand Up @@ -740,7 +740,7 @@ def not_callback(res):


class StringSyntaxSelector(Selector):
"""
r"""
Filter lists objects using a simple string syntax. All of the filters available in the string syntax
are also available ( usually with more functionality ) through the creation of full-fledged
selector objects. see :py:class:`Selector` and its subclasses
Expand Down Expand Up @@ -776,11 +776,11 @@ class StringSyntaxSelector(Selector):
:and:
Logical AND, e.g. >X and >Y
:or:
Logical OR, e.g. |X or |Y
Logical OR, e.g. \|X or \|Y
:not:
Logical NOT, e.g. not #XY
:exc(ept):
Set difference (equivalent to AND NOT): |X exc >Z
Set difference (equivalent to AND NOT): \|X exc >Z

Finally, it is also possible to use even more complex expressions with nesting
and arbitrary number of terms, e.g.
Expand Down