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

Function add_leg

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

Source from the content-addressed store, hash-verified

12leg:cq.Workplane = cq.Workplane("XY").box(leg_length, leg_width, leg_height).translate((0, 0, -(leg_height/2)-table_top_height))
13
14def add_leg(loc: cq.Location) -> cq.Shape:
15 global leg
16 return leg.val().located(loc) #type:ignore
17
18legs:cq.Workplane = (
19 table_top

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected