B

\text{Postup

\small \red B - voľný

N = 6 (slider from 3 to 6, step 1)
k = 2 (slider from 0.5 to 2, step 0.1)
text1: "\text{Pravidelný }" + (LaTeX[N]) + "\text{-boký hranol }ABC...A'... \text{, v ktorom výška }v=\left| AA' \right| =" + (LaTeX[k]) + " \left| AB \right| ."
A = (-0.5, -0.5, 0)
h = OrthogonalLine(A, xOyPlane)
c = Circle(A, 1, h)
G = Point(c)
B: G
a1: x(A)
a2: y(A)
b1: x(B)
b2: y(B)
text6: "\pmb " + (LaTeX[N]) + " \text{ - uholník pravidelný: } A( " + (LaTeX[a1]) + "," + (LaTeX[a2]) + "  ,0),B(   " + (LaTeX[b1]) + " ," + (LaTeX[b2]) + ",0), ...∈ π  "
mnohouholník1, f, g, i, j, l, m, C, D, E, F = Polygon(A, B, N, xOyPlane)
S = Centroid(mnohouholník1)
a, A', B', C', D', E', F', stenaABHG, stenaBCIH, stenaCDJI, stenaDEKJ, stenaEFLK, stenaAFLG, stenaGHIJKL, hranaAG, hranaBH, hranaCI, hranaDJ, hranaEK, hranaFL, hranaGH, hranaHI, hranaIJ, hranaJK, hranaKL, hranaGL = Prism(mnohouholník1, (k * Distance[A, B]))