예제 #1
0
def Curve_Leg2(R, A2, i, step, date):
    Angle = A2 / 180 * math.pi
    if (R < -abs(Xb)):
        R = -R
        q1 = 0
        r1 = R + Xe
        x0 = r1 * math.cos(q1 + Angle / 2) - R
        y0 = r1 * math.sin(q1 + Angle / 2)
        z0 = Ze
        x1 = r1 * math.cos(q1 - Angle / 2) - R
        y1 = r1 * math.sin(q1 - Angle / 2)
        z1 = Ze
        stepcut.StepCut_Leg2(x0, y0, z0, x1, y1, z1, i, step, date)
    elif ((R > -abs(Xb)) and (R < 0)):
        R = -R
        La = Xe + R
        #Lb = 263.41
        q1 = 0
        x0 = La * math.cos(q1 + Angle / 2) - R
        y0 = La * math.sin(q1 + Angle / 2)
        z0 = Ze
        x1 = La * math.cos(q1 - Angle / 2) - R
        y1 = La * math.sin(q1 - Angle / 2)
        z1 = Ze
        stepcut.StepCut_Leg2(x0, y0, z0, x1, y1, z1, i, step, date)
    elif (R == 0):
        q1 = 0
        r1 = Xe
        x0 = r1 * math.cos(q1 + Angle / 2)
        y0 = r1 * math.sin(q1 + Angle / 2)
        z0 = Ze
        x1 = r1 * math.cos(q1 - Angle / 2)
        y1 = r1 * math.sin(q1 - Angle / 2)
        z1 = Ze
        stepcut.StepCut_Leg2(x0, y0, z0, x1, y1, z1, i, step, date)
    elif ((R > 0) and (R < abs(Xb))):
        La = Xe - R
        #Lb = 263.41
        q1 = 0
        x0 = La * math.cos(q1 - Angle / 2) + R
        y0 = La * math.sin(q1 - Angle / 2)
        z0 = Ze
        x1 = La * math.cos(q1 + Angle / 2) + R
        y1 = La * math.sin(q1 + Angle / 2)
        z1 = Ze
        stepcut.StepCut_Leg2(x0, y0, z0, x1, y1, z1, i, step, date)
    else:
        q1 = 0
        r1 = R - Xe
        x0 = -r1 * math.cos(q1 + Angle / 2) + R
        y0 = r1 * math.sin(q1 + Angle / 2)
        z0 = Ze
        x1 = -r1 * math.cos(q1 - Angle / 2) + R
        y1 = r1 * math.sin(q1 - Angle / 2)
        z1 = Ze
        stepcut.StepCut_Leg2(x0, y0, z0, x1, y1, z1, i, step, date)
예제 #2
0
def shrinkage_Leg2(L,A1,i,step,date):
    Angle = A1/180*math.pi
    x0 = L/2*math.cos(Angle)+Xe
    y0 = L/2*math.sin(Angle)+Ye
    z0 = Ze
    x1 = -L/2*math.cos(Angle)+Xe
    y1 = -L/2*math.sin(Angle)+Ye
    z1 = Ze
    stepcut.StepCut_Leg2(x0,y0,z0,x1,y1,z1,i,step,date)
예제 #3
0
def straight_Leg2(L,A1,i,step,date):
    Angle = A1/180*math.pi
    x0 = L/2*math.cos(Angle)+Xb
    y0 = L/2*math.sin(Angle)+Yb
    z0 = Zb
    x1 = -L/2*math.cos(Angle)+Xb
    y1 = -L/2*math.sin(Angle)+Yb
    z1 = Zb
    stepcut.StepCut_Leg2(x0,y0,z0,x1,y1,z1,i,step,date)