def LEDHolder(LEDDia = 5.5, thick=1.5, tol = 0.5, L=15, W=20): od = LEDDia+4 DLUtils.DeleteMesh("Sphere1") DLUtils.DeleteMesh("Sphere2") DLUtils.DeleteMesh("Base") DLUtils.DrawCylinder("LEDHole",LEDDia,0,10,64) DLUtils.MoveObject("LEDHole",mathutils.Vector((0,0,4.5))) DLUtils.DrawCylinder("LEDHole2",LEDDia+1,0,6,64) DLUtils.MoveObject("LEDHole2",mathutils.Vector((0,0,-3))) DLUtils.DrawBox("Base",L,1,W) DLUtils.MoveObject("Base",mathutils.Vector([0,-od/2,0])) DLUtils.DrawSphere("Sphere1",od,16) DLUtils.MoveObject("Sphere1",mathutils.Vector([0,0,L/4])) DLUtils.DrawSphere("Sphere2",od,32) DLUtils.MoveObject("Sphere2",mathutils.Vector([0,0,-L/4])) DLUtils.ConvexHull(["Sphere1","Sphere2","Base"]) DLUtils.BooleanMesh("Convex Hull","LEDHole","DIFFERENCE",True) DLUtils.BooleanMesh("Convex Hull","LEDHole2","DIFFERENCE",True) DLUtils.DeleteMesh("Sphere1") DLUtils.DeleteMesh("Sphere2") DLUtils.DeleteMesh("Base")