Drawing3d documented Class Library

Box.GetSide Method

GetSide returns for the constants Up, Down, Front, Back, Left, Right a xyzArray, which holds the points responding to its side. In order to that you can iterate over the values 0 to 5 to get all sides of a box. The Sides are clockwise orientated relative to a "screwvector", which heads for the inside of the box.

[Visual Basic]
Public Sub GetSide( _
   ByVal value As Integer _
)
[C#]
public xyzArray GetSide(
   int value
);

Parameters

value
The side you prefer, for example Down,Up,Left,Right,Front,Back

Return Value

Example

xyzArray a;
for ( int i = 0; i < 6; i++)
{
 a = GetSide(i);
.. do something with a for example: draw it
}

See Also

Box Class | Drawing3d.Math Namespace