def make_quarter_beam(type, radius): profile = getprofile(type) #cad.extrude(profile,10) cad.arc(-radius, 0, 0, .0001, math.pi / 2, math.pi, 0, 1, 0) cad.linearc2wire(cad.getlastobj()) wire = cad.getlastobj() cad.pipe(wire, profile) return cad.getlastobj()
def make_quarter_beam(type,radius): profile = getprofile(type) #cad.extrude(profile,10) cad.arc(-radius,0,0,.0001,math.pi/2,math.pi,0,1,0) cad.linearc2wire(cad.getlastobj()) wire = cad.getlastobj() cad.pipe(wire,profile); return cad.getlastobj()