n = 5 (slider from 3 to 8, step 1)
h = 3.7 (slider from 3 to 8)
k = 1 (slider from 0 to 1)
a, A, face1, face3, face4, face5, face6, face7, face8, face2, edge1, edge2, edge3, edge4, edge5, edge6, edge7, edge8 = Pyramid(Polygon[(-1, 0, 0), (1, 0, 0), n, xOyPlane], h)
b, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, faceBCDEFGHI, faceBCJ, faceCDK, faceDEL, faceEFM, faceFGN, faceGHO, faceHIP, faceBIQ, edgeBC, edgeCD, edgeDE, edgeEF, edgeFG, edgeGH, edgeHI, edgeBI, edgeBJ, edgeCJ, edgeCK, edgeDK, edgeDL, edgeEL, edgeEM, edgeFM, edgeFN, edgeGN, edgeGO, edgeHO, edgeHP, edgeIP, edgeIQ, edgeBQ = Net(a, k)

Tool: 坐标系
x最小、最大，y最小、最大，0.23
Input: m, n, q, p, a
Output: A, B, O, l1, l2, list3, list4, list5, list6, u, v

$\huge\textcolor{}{x}$

$\huge\textcolor{}{y}$

$\Large{O}$

u = Vector((m - 1, 0), (n + 1, 0))
l1 = Sequence(Segment[(k, 0), (k, a)], k, m, n)
A: (n + 1, 0)
list4 = Sequence(Text[k, Element[Sequence[(t - 0.15, 0), t, 1, n], k], true, true], k, 1, n)
list3 = Sequence(Text[k, Element[Sequence[(t - 0.5, 0), t, m, -1], k + abs(m) + 1], true, true], k, m, -1)
l2 = Sequence(Segment[(0, k), (a, k)], k, q, p)
list5 = Sequence(Text[k, Element[Sequence[(-0.9, t + 0.2), t, q, -1], k + abs(q) + 1], true, true], k, q, -1)
v = Vector((0, q - 1), (0, p + 1))
B: (0, p + 1)
list6 = Sequence(Text[k, Element[Sequence[(-0.6, t + 0.2), t, 1, p], k], true, true], k, 1, p)
O: B - (0, p + 1)