/home/stephan/Bureau/travail espace/cube_fil_2

Détermine le volume du solide.

Cacher consignes

valider

Volume =

bool = true
volume: 116
rep1: 0
ChampTexte1 = Textfield(rep1)
R: (-5.5, -5.5, -5.5)
m1, l1, l2 = pavé((-5.5, -5.5, -5.5), 11, 1, 1)
m2, l3, l4 = pavé((-5.5, 4.5, -5.5), 11, 1, 1)
m3, l5, l6 = pavé((-5.5, -5.5, 4.5), 11, 1, 1)
m4, l7, l8 = pavé((-5.5, 4.5, 4.5), 11, 1, 1)
m5, l9, l10 = pavé((-5.5, -5.5, -5.5), 1, 11, 1)
m6, l11, l12 = pavé((-5.5, -5.5, 4.5), 1, 11, 1)
m7, l13, l14 = pavé((4.5, -5.5, -5.5), 1, 11, 1)
m8, l15, l16 = pavé((4.5, -5.5, 4.5), 1, 11, 1)
m9, l17, l18 = pavé((-5.5, -5.5, -5.5), 1, 1, 11)
m10, l19, l20 = pavé((4.5, -5.5, -5.5), 1, 1, 11)
m11, l21, l22 = pavé((4.5, 4.5, -5.5), 1, 1, 11)
m12, l23, l24 = pavé((-5.5, 4.5, -5.5), 1, 1, 11)

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)]}