▶ | Cube x, y, z |
▶ |
Vertex x, y, -z Vertex x, -y, -z Vertex -x, -y, -z Vertex -x, y, -z Vertex x, y, z Vertex x, -y, z Vertex -x, -y, z Vertex -x, y, z Face v+0, v+1, v+2, v+3 Face v+0, v+4, v+5, v+1 Face v+0, v+3, v+7, v+4 Face v+6, v+5, v+4, v+7 Face v+6, v+7, v+3, v+2 Face v+6, v+2, v+1, v+5 |
▶ | Cylinder n, r1, r2, h |
▶ |
Vertex cos[2*pi*0/n]*r1, h/2, sin[2*pi*0/n]*r1 Vertex cos[2*pi*0/n]*r2, -h/2, sin[2*pi*0/n]*r2 Vertex cos[2*pi*1/n]*r1, h/2, sin[2*pi*1/n]*r1 Vertex cos[2*pi*1/n]*r2, -h/2, sin[2*pi*1/n]*r2 Vertex cos[2*pi*2/n]*r1, h/2, sin[2*pi*2/n]*r1 Vertex cos[2*pi*2/n]*r2, -h/2, sin[2*pi*2/n]*r2 ... Vertex cos[2*pi*(n-1)/n]*r1, h/2, sin[2*pi*(n-1)/n]*r1 Vertex cos[2*pi*(n-1)/n]*r2, -h/2, sin[2*pi*(n-1)/n]*r2 |
▶ |
Face 2, 3, 1, 0 Face 4, 5, 3, 2 Face 6, 7, 5, 4 Face 8, 9, 7, 6 ... Face 2*n-6, 2*n-5, 2*n-7, 2*n-8 Face 2*n-4, 2*n-3, 2*n-5, 2*n-6 Face 2*n-2, 2*n-1, 2*n-3, 2*n-4 Face 0, 1, 2*n-1, 2*n-2 |
▶ | Face 2*n-2, 2*n-4, 2*n-6, ..., 4, 2, 0 |
▶ | Face 1, 3, 5, ..., 2*n-5, 2*n-3, 2*n-1 |