Allow all supported geoms in the type selectors

This commit is contained in:
Adam Urbańczyk
2021-01-04 08:47:02 +01:00
committed by GitHub
parent bd5487353f
commit 48d1ebbb5d

View File

@ -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)