#%% from build123d import * from ocp_vscode import * import copy set_defaults(reset_camera=Camera.KEEP, render_joints=True, helper_scale=8) #%% with BuildPart() as p: with BuildSketch() as pipe: Circle(20) Circle(19, mode=Mode.SUBTRACT) extrude(amount=20) with BuildSketch() as s: with PolarLocations(20,8): Rectangle(5,2) extrude(amount=2, mode=Mode.SUBTRACT) show(p) #%% rf = 8 l = 70 with BuildPart() as handle: with BuildSketch(Plane.XZ) as handle_sk: RectangleRounded(l,90.10) with BuildLine() as outline: make_face() with BuildSketch(Plane(j2 @ 0, z_dir=j2 % 0)) as x_section: Circle(8) sweep() #illet(handle_sk.vertices().group_by(Axis.X)[0],radius=1) show(handle_sk) # %% show(handle_sk.vertices().group_by(Axis.X)[0]) # %%