def get_Spante(c1, c2, d1, d2): Lage1 = Ebene() Lage1.p_E = np.array([c1, 0, 0]) Lage2 = Ebene() Lage2.p_E = np.array([c2, 0, 0]) Sp1 = [] Sp2 = [] """Spante1""" for i in range(0, 2): if i == 0: Lage1_1 = Lage1 Lage1_1.p_E[0] = c1 - d1 else: Lage1_1 = Lage1 Lage1_1.p_E[0] = c1 + d1 SP1 = [[]] SP1[0] = Schnittpunkt(lifting.x_t[-1][0], lifting.x_t[-1][3], Lage1_1) SP1.append(Schnittpunkt(lifting.x_t[-1][0], lifting.x_t[-1][16], Lage1_1)) SP1.append(Schnittpunkt(lifting.x_t[-1][12], lifting.x_t[-1][16], Lage1_1)) SP1.append(Schnittpunkt(lifting.x_t[-1][1], lifting.x_t[-1][16], Lage1_1)) SP1.append(Schnittpunkt(lifting.x_t[-1][1], lifting.x_t[-1][4], Lage1_1)) for i in range(0, len(SP1) - 1): SP1.append([SP1[3 - i][0], (SP1[4][1] * 2 - SP1[3 - i][1]), SP1[3 - i][2]]) Sp1.append(SP1) """Spante2""" for i in range(0, 2): Lage2_2 = Lage2 if i == 0: Lage2_2.p_E[0] = c2 - d2 else: Lage2_2.p_E[0] = c2 + d2 SP2 = [[]] SP2[0] = Schnittpunkt(lifting.x_t[-1][3], lifting.x_t[-1][6], Lage2_2) SP2.append(Schnittpunkt(lifting.x_t[-1][3], lifting.x_t[-1][18], Lage2_2)) SP2.append(Schnittpunkt(lifting.x_t[-1][16], lifting.x_t[-1][18], Lage2_2)) SP2.append(Schnittpunkt(lifting.x_t[-1][4], lifting.x_t[-1][18], Lage2_2)) SP2.append(Schnittpunkt(lifting.x_t[-1][4], lifting.x_t[-1][7], Lage2_2)) for i in range(0, len(SP2) - 1): SP2.append([SP2[3 - i][0], (SP2[4][1] * 2 - SP2[3 - i][1]), SP2[3 - i][2]]) Sp2.append(SP2) Ausgabe(Sp1[0], c1, d1 * 2, max(lifting.x_t[-1][:][2]), max(lifting.x_t[-1][:, 0]) - min(lifting.x_t[-1][:, 0])) Ausgabe(Sp1[1], c1, d1 * 2, max(lifting.x_t[-1][:][2]), max(lifting.x_t[-1][:, 0]) - min(lifting.x_t[-1][:, 0])) Ausgabe(Sp2[0], c2, d2 * 2, max(lifting.x_t[-1][:][2]), max(lifting.x_t[-1][:, 0]) - min(lifting.x_t[-1][:, 0])) Ausgabe(Sp2[1], c2, d2 * 2, max(lifting.x_t[-1][:][2]), max(lifting.x_t[-1][:, 0]) - min(lifting.x_t[-1][:, 0]))
def get_Spante(c1 , c2, c3, d1, d2, d3): Lage1 = Ebene() Lage1.p_E = np.array([c1, 0, 0]) Lage2 = Ebene() Lage2.p_E = np.array([c2, 0, 0]) Lage3 = Ebene() Lage3.p_E = np.array([c3, 0, 0]) Sp1 = [] Sp2 = [] Sp3 = [] '''Spante1''' for i in range(0, 2): if i == 0: Lage1_1 = Lage1 Lage1_1.p_E[0] = c1 - d1 else: Lage1_1 = Lage1 Lage1_1.p_E[0] = c1 + d1 SP1 = [[]] SP1[0] = Schnittpunkt(folding.x_t[-1][0], folding.x_t[-1][2], Lage1_1) SP1.append(Schnittpunkt(folding.x_t[-1][0], folding.x_t[-1][8], Lage1_1)) SP1.append(Schnittpunkt(folding.x_t[-1][6], folding.x_t[-1][8], Lage1_1)) SP1.append(Schnittpunkt(folding.x_t[-1][1], folding.x_t[-1][8], Lage1_1)) SP1.append(Schnittpunkt(folding.x_t[-1][1], folding.x_t[-1][3], Lage1_1)) Sp1.append(SP1) '''Spante2''' for i in range(0, 2): Lage2_2 = Lage2 if i == 0: Lage2_2.p_E[0] = c2 - d2 else: Lage2_2.p_E[0] = c2 + d2 SP2 = [[]] SP2[0] = Schnittpunkt(folding.x_t[-1][0], folding.x_t[-1][2], Lage2_2) SP2.append(Schnittpunkt(folding.x_t[-1][8], folding.x_t[-1][2], Lage2_2)) SP2.append(Schnittpunkt(folding.x_t[-1][8], folding.x_t[-1][9], Lage2_2)) SP2.append(Schnittpunkt(folding.x_t[-1][8], folding.x_t[-1][3], Lage2_2)) SP2.append(Schnittpunkt(folding.x_t[-1][1], folding.x_t[-1][3], Lage2_2)) Sp2.append(SP2) '''Spante3''' for i in range(0, 2): if i == 0: Lage3_3 = Lage3 Lage3_3.p_E[0] = c3 - d3 else: Lage3_3 = Lage3 Lage3_3.p_E[0] = c3 + d3 SP3 = [[]] SP3[0] = Schnittpunkt(folding.x_t[-1][2], folding.x_t[-1][4], Lage3_3) SP3.append(Schnittpunkt(folding.x_t[-1][9], folding.x_t[-1][4], Lage3_3)) SP3.append(Schnittpunkt(folding.x_t[-1][9], folding.x_t[-1][7], Lage3_3)) SP3.append(Schnittpunkt(folding.x_t[-1][9], folding.x_t[-1][5], Lage3_3)) SP3.append(Schnittpunkt(folding.x_t[-1][3], folding.x_t[-1][5], Lage3_3)) Sp3.append(SP3) Ausgabe(Sp1[0], c1, d1 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0])) Ausgabe(Sp1[1], c1, d1 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0])) Ausgabe(Sp2[0], c2, d2 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0])) Ausgabe(Sp2[1], c2, d2 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0])) Ausgabe(Sp3[0], c3, d3 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0])) Ausgabe(Sp3[1], c3, d3 * 2, max(folding.x_t[-1][:][2]), max(folding.x_t[-1][:, 0]) - min(folding.x_t[-1][:, 0]))