Added example using logical operators in a string selector.
This commit is contained in:
parent
eae8efd9ee
commit
045889b809
|
@ -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)
|
Loading…
Reference in New Issue
Block a user