Cube
01 Syntax
Microsoft.VisualBasic.Imaging.Drawing3D.Models.Cube
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | |
| GetEnumerator | 1 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| _faces | 1 | Create an array representing the 6 faces of a cube. |
04 Members
#ctor(
Int32, Color())Parameters
| Name | Type | Description |
|---|---|---|
d% | Int32 | 正方形的边的长度 |
colors | Color() | - |
GetEnumerator
Remarks
0 - {0, 1, 2, 3} 0,1,2,3 = 0,1,2,3
1 - {1, 5, 6, 2} 1,2 = 5,6
2 - {5, 4, 7, 6} 1,2 = 4,7
3 - {4, 0, 3, 7}
4 - {0, 4, 5, 1}
5 - {3, 2, 6, 7}_faces
Create an array representing the 6 faces of a cube. Each face is composed by indices to the vertex array above.