演示

$\Large 矩形$

制作教程：

α = 0 rad (slider from 0 to 6.283185307179586, step 0.3°)
q1, f, g, h, i = Polygon((0, 0, 0), (1, 0, 0), (1, 0, 3), (0, 0, 3))
t1, j, k, l = Polygon((0, 0, 0), (1, 0, 0), (0, 0, 3))
l2 = Sequence(Rotate[t1, k, zAxis], k, 0°, α, 0.5°)
c = Semicircle((0, 0, 3), (0, 0, 0), Plane[xAxis, zAxis])
l3 = Sequence(Rotate[c, k, zAxis], k, 0°, α, 0.5°)
m = Line((0, 0, 0), (0, 0, 1))
q2, n_2, p, q, r = Polygon((0, 0, 0), (2, 0, 0), (1, 0, 3), (0, 0, 3))
l1 = Sequence(Rotate[q1, k, zAxis], k, 0°, α, 0.5°)
s: z = 0
n = 1 (slider from 1 to 3, step 1)
A = (2.1181818181818186, -3.796363636363636)
B = (5.236363636363636, -3.796363636363636)
C = (-1.0454545454545454, -3.36)
D = (1.8818181818181818, -3.36)

Tool: 简易坐标系
请选择原点，分别输入：x最小、最大值，y最小、最大值
Input: A, a, b, c, d
Output: B, C, O, u, v

$\huge\textcolor{}{x}$

$\huge\textcolor{}{y}$

$\Large\textcolor{}{O}$

A: (0, 0)
u = Vector(A + (a - 1, 0), A + (b + 1, 0))
v = Vector(A + (0, c - 1), A + (0, d + 1))
B: A + (b + 1, 0)
C: A + (0, d + 1)
O: A