/home/stephan/Bureau/travail espace/mange_cube2

Détermine le volume du solide.

Cacher consignes

valider

Volume =

bool = true
rep1: 0
ChampTexte1 = Textfield(rep1)
volume: 111
nulle: 0
R: (-3.5, -2.5, -2.5)
m1, l1, l2 = pavé((-3.5, -2.5, -2.5), 1, 1, 5)
m2, l3, l4 = pavé((-3.5, -0.5, -2.5), 1, 1, 5)
m3, l5, l6 = pavé((-3.5, 1.5, -2.5), 1, 1, 5)
m4, l7, l8 = pavé((-1.5, 1.5, -2.5), 1, 1, 5)
m5, l9, l10 = pavé((0.5, 1.5, -2.5), 1, 1, 5)
m6, l11, l12 = pavé((2.5, 1.5, -2.5), 1, 1, 5)
m7, l13, l14 = pavé((2.5, -0.5, -2.5), 1, 1, 5)
m8, l15, l16 = pavé((0.5, -0.5, -2.5), 1, 1, 5)
m9, l17, l18 = pavé((-1.5, -0.5, -2.5), 1, 1, 5)
m10, l19, l20 = pavé((-1.5, -2.5, -2.5), 1, 1, 5)
m11, l21, l22 = pavé((0.5, -2.5, -2.5), 1, 1, 5)
m12, l23, l24 = pavé((2.5, -2.5, -2.5), 1, 1, 5)
m13, l25, l26 = pavé((2.5, -2.5, -2.5), 1, 5, 1)
m14, l27, l28 = pavé((0.5, -2.5, -2.5), 1, 5, 1)
m15, l29, l30 = pavé((-1.5, -2.5, -2.5), 1, 5, 1)
m16, l31, l32 = pavé((-3.5, -2.5, -2.5), 1, 5, 1)
m17, l33, l34 = pavé((2.5, -2.5, -0.5), 1, 5, 1)
m18, l35, l36 = pavé((0.5, -2.5, -0.5), 1, 5, 1)
m19, l37, l38 = pavé((-1.5, -2.5, -0.5), 1, 5, 1)
m20, l39, l40 = pavé((-3.5, -2.5, -0.5), 1, 5, 1)
m21, l41, l42 = pavé((2.5, -2.5, 1.5), 1, 5, 1)
m22, l43, l44 = pavé((0.5, -2.5, 1.5), 1, 5, 1)
m23, l45, l46 = pavé((-1.5, -2.5, 1.5), 1, 5, 1)
m24, l47, l48 = pavé((-3.5, -2.5, 1.5), 1, 5, 1)
m25, l49, l50 = pavé((-2.5, -2.5, 1.5), 5, 1, 1)
m26, l51, l52 = pavé((-2.5, -0.5, 1.5), 5, 1, 1)
m27, l53, l54 = pavé((-2.5, 1.5, 1.5), 5, 1, 1)
m28, l55, l56 = pavé((-2.5, -2.5, -0.5), 5, 1, 1)
m29, l57, l58 = pavé((-2.5, -0.5, -0.5), 5, 1, 1)
m30, l59, l60 = pavé((-2.5, 1.5, -0.5), 5, 1, 1)
m31, l61, l62 = pavé((-2.5, 1.5, -2.5), 5, 1, 1)
m32, l63, l64 = pavé((-2.5, -0.5, -2.5), 5, 1, 1)
m33, l65, l66 = pavé((-2.5, -2.5, -2.5), 5, 1, 1)

Tool: pavé
Input: R, c_x, c_y, c_z
Output: L_{segment}, L_{point}, L_{polygones}

S_1 = Sequence({Segment[R + (i, 0, 0), R + (i, c_y, 0)], Segment[R + (i, c_y, 0), R + (i, c_y, c_z)], Segment[R + (i, c_y, c_z), R + (i, 0, c_z)], Segment[R + (i, 0, c_z), R + (i, 0, 0)]}, i, 0, c_x, 1)
S_2 = Sequence({Segment[R + (0, i, 0), R + (c_x, i, 0)], Segment[R + (c_x, i, 0), R + (c_x, i, c_z)], Segment[R + (c_x, i, c_z), R + (0, i, c_z)], Segment[R + (0, i, c_z), R + (0, i, 0)]}, i, 0, c_y, 1)
S_3 = Sequence({Segment[R + (0, 0, i), R + (c_x, 0, i)], Segment[R + (c_x, 0, i), R + (c_x, c_y, i)], Segment[R + (c_x, c_y, i), R + (0, c_y, i)], Segment[R + (0, c_y, i), R + (0, 0, i)]}, i, 0, c_z, 1)
L_{segment} = Join({S_1, S_2, S_3})
L_{point}: {R, R + (c_x, 0, 0), R + (c_x, c_y, 0), R + (0, c_y, 0), R + (0, 0, c_z), R + (c_x, 0, c_z), R + (c_x, c_y, c_z), R + (0, c_y, c_z)}
L_{polygones}: {Polygon[R + (0, 0, 0), R + (c_x, 0, 0), R + (c_x, 0, c_z), R + (0, 0, c_z), R + (0, 0, 0)], Polygon[R + (0, c_y, 0), R + (c_x, c_y, 0), R + (c_x, c_y, c_z), R + (0, c_y, c_z), R + (0, c_y, 0)], Polygon[R + (0, 0, 0), R + (c_x, 0, 0), R + (c_x, c_y, 0), R + (0, c_y, 0), R + (0, 0, 0)], Polygon[R + (0, 0, c_z), R + (c_x, 0, c_z), R + (c_x, c_y, c_z), R + (0, c_y, c_z), R + (0, 0, c_z)], Polygon[R + (0, 0, 0), R + (0, c_y, 0), R + (0, c_y, c_z), R + (0, 0, c_z), R + (0, 0, 0)], Polygon[R + (c_x, 0, 0), R + (c_x, c_y, 0), R + (c_x, c_y, c_z), R + (c_x, 0, c_z), R + (c_x, 0, 0)]}