MCPcopy Create free account
hub / github.com/Kamel773/CAD_Code_Generation / add_stud

Function add_stud

CADPrompt/00852000/Python_Code.py:21–24  ·  view source on GitHub ↗
(loc)

Source from the content-addressed store, hash-verified

19stud:cq.Workplane = cq.Workplane("XY").cylinder(stud_height, stud_diameter/2)
20
21def add_stud(loc) -> cq.Shape:
22 global stud
23 global stud_height
24 return stud.translate((0,0,stud_height/2)).val().located(loc) #type: ignore
25
26part:cq.Workplane = (
27 cq.Workplane("XY")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected