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

CadQuery 3D model of box with chamfer on all edges of the top face


Check out similar posts by category: CadQuery, Python