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

Function add_leg

CADPrompt/00996001/Python_Code.py:16–18  ·  view source on GitHub ↗
(loc: cq.Location)

Source from the content-addressed store, hash-verified

14leg:cq.Workplane = cq.Workplane("XY").box(leg_length, leg_width, leg_height).translate((0, 0, -(leg_height/2)-table_top_height))
15
16def add_leg(loc: cq.Location) -> cq.Shape:
17 global leg
18 return leg.val().located(loc) #type:ignore
19
20legs:cq.Workplane = table_top.faces(">Z").workplane().rect(length - leg_length, width - leg_width, forConstruction=True).vertices().eachpoint(add_leg)
21table:cq.Workplane = table_top.union(legs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected