From 045889b8096395975bb7406d6b1b34ef000d7411 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Thu, 13 Apr 2017 21:27:37 -0400 Subject: [PATCH] Added example using logical operators in a string selector. --- ..._Inside_Chamfer_With_Logical_Selector_Operators.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CadQuery/Examples/Ex033_Shelled_Cube_Inside_Chamfer_With_Logical_Selector_Operators.py diff --git a/CadQuery/Examples/Ex033_Shelled_Cube_Inside_Chamfer_With_Logical_Selector_Operators.py b/CadQuery/Examples/Ex033_Shelled_Cube_Inside_Chamfer_With_Logical_Selector_Operators.py new file mode 100644 index 0000000..3137055 --- /dev/null +++ b/CadQuery/Examples/Ex033_Shelled_Cube_Inside_Chamfer_With_Logical_Selector_Operators.py @@ -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 Y)").\ + chamfer(0.125) + +show(result)