/home/stephan/Bureau/travail espace/cube_ecorne1

Détermine le volume du solide.

Cacher consignes

valider

Volume =

bool = true
volume: 208
rep1: 0
ChampTexte1 = Textfield(rep1)
m1, l1, l2 = pavé((-3, -3, -2), 6, 6, 4)
m2, l3, l4 = pavé((-3, -2, 2), 6, 4, 1)
m3, l5, l6 = pavé((-3, -2, -3), 6, 4, 1)
m4, l7, l8 = pavé((-2, -3, 2), 4, 1, 1)
m5, l9, l10 = pavé((-2, -3, -3), 4, 1, 1)
m6, l11, l12 = pavé((-2, 2, 2), 4, 1, 1)
m7, l13, l14 = pavé((-2, 2, -3), 4, 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)]}