/home/stephan/Bureau/travail espace/petits_cubes2

n

Détermine le volume et l'aire
extérieure du solide.

Cacher consignes

valider

Volume =

Aire =

valider

a = 5 (slider from 2 to 7, step 1)
R: (((-a)) / 2, ((-a)) / 2, 0)
bool = true
A: R + (-0.5, -0.5, 0)
B: A + (1, 0, 0)
C: B + (0, 1, 0)
volume: 20
rep1: 0
ChampTexte1 = Textfield(rep1)
aire: 80
rep2: 0
ChampTexte2 = Textfield(rep2)
m1, l1, l2 = pavé((-2, -3, 0), 4, 1, 1)
m2, l3, l4 = pavé((-2, 2, 0), 4, 1, 1)
m3, l5, l6 = pavé((-3, -2, 0), 1, 4, 1)
m4, l7, l8 = pavé((2, -2, 0), 1, 4, 1)
m5, l9, l10 = pavé((2, -2, 0), 1, 4, 1)
m6, l11, l12 = pavé((1, -2, 0), 1, 1, 1)
m7, l13, l14 = pavé((1, 1, 0), 1, 1, 1)
m8, l15, l16 = pavé((-2, -2, 0), 1, 1, 1)
m9, l17, l18 = pavé((-2, 1, 0), 1, 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)]}