Airelatérale

AireBase

AireTotale

angledeplier = 0 (slider from 0 to 360, step 1)
hauteur = 17.8 (slider from 0 to 20, step 0.1)
D = (-14.334502836803296, 5.832035288440651)
C = (5.2442890713134895, 7.374606772110459)
B = (6.549541865187942, 25.054849161864414)
A = (-7.214942142942647, 24.224233747580673)
γ = Angle(A, B, C)
α = Angle(C, D, A)
C'_1 = Rotate(C, (-(180° - α)), D)
β = Angle(D, A, B)
E = Rotate(C'_1, (-(180° - β)), A)
E' = Rotate(E, (-(180° - γ)), B)
P = If(180° + 180° + 180° - α - β - γ  <  angledeplier°, Rotate[E', 360° + 180° - α - β - γ + ((-angledeplier))°, C])
aireairepoly1, a_1, b, c, d = Polygon(A, B, C, D)
C' = If(0  <  angledeplier°  <  180° - α, Rotate[C, ((-angledeplier))°, D])
F = If(180° - α  <  angledeplier°  <  180° - α + 180° - β, Rotate[C'_1, 180° - α + ((-angledeplier))°, A])
G = If(180° + 180° - α - β  <  angledeplier°  <  180° + 180° + 180° - α - β - γ, Rotate[E, 360° - α - β + ((-angledeplier))°, B])
e = Segment(D, C')
f = Segment(A, F)
g = Segment(B, G)
H: C' + (0, 0, hauteur)
I: F + (0, 0, hauteur)
J: G + (0, 0, hauteur)
j, L, M, N, O, faceABML, faceBCNM, faceCDON, faceADOL, faceLMNO, arêteAL, arêteBM, arêteCN, arêteDO, arêteLM, arêteMN, arêteNO, arêteLO = Prism(aireairepoly1, hauteur)
poly2, b_1, g_1, j_1, m = Polygon(B, G, J, M)
poly3, a_2, f_1, i_1, l = Polygon(A, F, I, L)
poly4, d_1, c', h_1, o = Polygon(D, C', H, O)
K: P + (0, 0, hauteur)
δ = Angle(B, C, D)
poly5, c_1, p, k, n = Polygon(C, P, K, N)
poly6, d_2, c_2, n_1, o_1 = Polygon(D, C, N, O)
poly7, a, d_3, o_2, l_1 = Polygon(A, D, O, L)
poly8, b_2, a_3, l_2, m_1 = Polygon(B, A, L, M)
poly9, c_3, b_3, m_2, n_2 = Polygon(C, B, M, N)
h = false
ha: (h * a)
texte1: "Aire latérale rouge = " + ((c_1 * hauteur)) + " cm²"
Texteairepoly1: "Aire de  " + (Name[A]) + (Name[B]) + (Name[C]) + (Name[D]) + " = " + aireairepoly1
Pointpoly1 = PointIn(aireairepoly1)
Pointairepoly1 = PointIn(aireairepoly1)
texte2: "Aire base =" + aireairepoly1 + " cm²"
texte3: "Aire totale du prisme = " + ((2 * aireairepoly1) + (c_1 * hauteur)) + ""
i = false
q = false