Skip to content

Commit

Permalink
Update the typeselector docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-urbanczyk authored Mar 21, 2021
1 parent bb32f93 commit e8fc71b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cadquery/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,13 @@ def test(self, vec: Vector) -> bool:

class TypeSelector(Selector):
"""
Selects objects of the prescribed topological type.
Selects objects having the prescribed geometry type.
Applicability:
Faces: Plane,Cylinder,Sphere
Edges: Line,Circle,Arc
Faces: PLANE, CYLINDER, CONE, SPHERE, TORUS, BEZIER, BSPLINE, REVOLUTION, EXTRUSION, OFFSET, OTHER
Edges: LINE, CIRCLE, ELLIPSE, HYPERBOLA, PARABOLA, BEZIER, BSPLINE, OFFSET, OTHER
You can use the shortcut selector %(PLANE|SPHERE|CONE) for faces, and
%(LINE|ARC|CIRCLE) for edges.
For example this::
You can use the string selector syntax. For example this::
CQ(aCube).faces ( TypeSelector("PLANE") )
Expand Down

0 comments on commit e8fc71b

Please sign in to comment.