#!/usr/bin/env python3 import cadquery as cq from cadquery import exporters camera_width = 36 + 1 camera_height = 5.5 + 1 bracket_width = 10 bracket_thickness = 3 bolt_hole_diameter = 3.4 corner_radius = 1 result = ( cq .Workplane("front") .box(camera_width + bracket_thickness * 2, bracket_width, camera_height + bracket_thickness) .faces(">Y") .workplane() .move(yDist=-bracket_thickness/2) .rect(camera_width, camera_height, True) .cutThruAll() .faces(">X") .vertices("Z[1]").workplane(centerOption="CenterOfMass").hole(bolt_hole_diameter) .mirror("YZ", union=True) .edges("%Line").edges("not