コード例 #1
0
ファイル: example.py プロジェクト: gokmonk/heekspython-old
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()
コード例 #2
0
ファイル: example.py プロジェクト: Heeks/heekspython-old
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()