étape de construction

Quel est le volume du solide ?

Cacher consignes

valider

Volume =

n = 17 (slider from 1 to 17, step 1)
c_z = If(n ≤ 7, 1, If[n ≤ 19, n - 7])
c_y = If(n ≤ 5, 1, If[n ≤ 7, n - 4, 4])
bool = true
rep1: 0
ChampTexte1 = Textfield(rep1)
volume: 200
nulle: 0
L4 = NaN
c_x = If(n ≤ 5, n, 5)
R: (-2.5, -2, -5)
cube = pavé(c_x, c_y, c_z, R)

Tool: pavé
pavé[ <Nombre>, <Nombre>, <Nombre>, <Point> ]
Input: c_x, c_y, c_z, R
Output: L_{pavé}

L1 = 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)
L2 = 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)
L3 = 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)
L_{seg} = Join({L1, L2, L3})
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)}
P_1: {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)]}
P_2: {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)]}
P_3: {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)]}
L_{poly} = Join({P_1, P_2, P_3})
L_{pavé} = Join({L_{point}, L_{poly}, L_{seg}})