Added example using logical operators in a string selector.

This commit is contained in:
Jeremy Mack Wright 2017-04-13 21:27:37 -04:00
parent eae8efd9ee
commit 045889b809

View File

@ -0,0 +1,11 @@
# Example using advanced logical operators in string selectors
# to select only the inside edges on a shelled cube to chamfer.
import cadquery as cq
from Helpers import show
result = cq.Workplane("XY").box(2, 2, 2).\
faces(">Z").shell(-0.2).\
faces(">Z").edges("not(<X or >X or <Y or >Y)").\
chamfer(0.125)
show(result)