From 48d1ebbb5d7ac3b603d78cee30396f5aa79a60ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Urba=C5=84czyk?= Date: Mon, 4 Jan 2021 08:47:02 +0100 Subject: [PATCH] Allow all supported geoms in the type selectors --- cadquery/selectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cadquery/selectors.py b/cadquery/selectors.py index ae00884b..c00d755d 100644 --- a/cadquery/selectors.py +++ b/cadquery/selectors.py @@ -19,7 +19,7 @@ import math from .occ_impl.geom import Vector -from .occ_impl.shapes import Shape, Edge, Face, Wire +from .occ_impl.shapes import Shape, Edge, Face, Wire, geom_LUT_EDGE, geom_LUT_FACE from pyparsing import ( Literal, Word, @@ -544,7 +544,7 @@ def _makeGrammar(): # CQ type definition cqtype = oneOf( - ["Plane", "Cylinder", "Sphere", "Cone", "Line", "Circle", "Arc"], caseless=True + set(geom_LUT_EDGE.values()) | set(geom_LUT_FACE.values()), caseless=True, ) cqtype = cqtype.setParseAction(upcaseTokens)