View Plans

Mounting peg 3D Models

Find the best Mounting peg 3D Models, free download in STL, FBX, GLB, OBJ, 3MF, USDZ for 3D modeling and creation in Blender, 3D printing, game developing, animation, eCommerce, AR/VR and etc. Generated by Tripo AI 3D Generator.

import cadquery as cq

# ---------- Parameters (mm) ----------
base_w = 45.0
base_h = 9.0
thick  = 11.0

dome_w = 19.0
dome_r = dome_w/2.0        # 9.5 mm to match 19 mm width
dome_rect_h = 29.0 - base_h - dome_r  # 10.5 mm so total height = 29

hole_d = 5.0
hole_from_top = 11.0
hole_z = 29.0 - hole_from_top  # 18 mm from bottom

pin_d = 6.0
pin_len = 6.0
pin_axis_z = base_h/2.0        # 4.5 mm above bottom

# ---------- Build 2D profile (XY), then extrude along Y for thickness ----------
wp = cq.Workplane("XZ")  # X=width, Z=height; we'll extrude along Y

# Base
profile = (wp.rect(base_w, base_h, centered=True)
             .union(cq.Workplane("XZ").transformed(offset=(0,0,base_h/2)).rect(dome_w, dome_rect_h, centered=True))
             .union(
                 # Top semicircle: make full circle and intersect with half-space to keep the top
                 cq.Workplane("XZ")
                   .moveTo(0, base_h + dome_rect_h)
                   .circle(dome_r).consolidateWires()
3D Model