Skip to content

Commit e8fc71b

Browse files
Update the typeselector docstring
1 parent bb32f93 commit e8fc71b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cadquery/selectors.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,13 @@ def test(self, vec: Vector) -> bool:
274274

275275
class TypeSelector(Selector):
276276
"""
277-
Selects objects of the prescribed topological type.
277+
Selects objects having the prescribed geometry type.
278278
279279
Applicability:
280-
Faces: Plane,Cylinder,Sphere
281-
Edges: Line,Circle,Arc
280+
Faces: PLANE, CYLINDER, CONE, SPHERE, TORUS, BEZIER, BSPLINE, REVOLUTION, EXTRUSION, OFFSET, OTHER
281+
Edges: LINE, CIRCLE, ELLIPSE, HYPERBOLA, PARABOLA, BEZIER, BSPLINE, OFFSET, OTHER
282282
283-
You can use the shortcut selector %(PLANE|SPHERE|CONE) for faces, and
284-
%(LINE|ARC|CIRCLE) for edges.
285-
286-
For example this::
283+
You can use the string selector syntax. For example this::
287284
288285
CQ(aCube).faces ( TypeSelector("PLANE") )
289286

0 commit comments

Comments
 (0)