CadQuery: How to chamfer top face of object

chamfer_top_face.py
import cadquery as cq

obj = cq.Workplane("XY").box(1,1,3)
# Add chamfer to all top face edges
obj = obj.faces("+Z").chamfer(0.2)
obj


Check out similar posts by category: CadQuery, Python