| |
 |  |  |  | Command |  | Argument |
 | Datatype |  | Default |  | Min |  | Max |  |
 |  | Format: |  | ShowBox | | Width
= Box width in Å, |  | FLOAT |  |
10.0 |  | - |  | - |  |  | |  |
| | Height = Box height in Å, |
 | FLOAT |  | Width |  |
- |  | - |  |  | |  | | | Depth = Box depth in Å, |  | FLOAT |  | Height |  | - |  | - |
 |
 | |  | | | LeftCol = Left face color, |
 | RGBCOLOR |  | Red |  | - |  | - |
 |
 | |  | | | RightCol = Right face color, |  | RGBCOLOR |
 | LeftCol |  | - |  | - |  |
 | |  | | | BottomCol
= Bottom face color, |  |
RGBCOLOR |  | LeftCol |
 | - |
 | - |  |  | |
 | | | TopCol
= Top face color, |  | RGBCOLOR |
 | BottomCol |  | - |  | - |  |  | |
 | | | FrontCol
= Front face color, |  | RGBCOLOR |
 | BottomCol |  | - |  | - |  |  | |
 | | | BackCol
= Back face color |  | RGBCOLOR |
 | FrontCol |  | - |  | - |  |  |
 | Python: |
 | result = ShowBox(width=None,height=None,depth=None,leftcol=None,rightcol=None,bottomcol=None,topcol=None,frontcol=None,backcol=None) |
 |  |  | Menu: |  | Effects > Show solid > Box & cube |  |
 |  | Related: |  | ShowSphere, ShowCone
, ShowTorus, MoveMesh
|  |  |
 | Required: |  |  |  |
 |
The ShowBox
commands creates a box of the specified width, height and depth. Colors can be set independently for all
6 sides. If a color is set to 'None', the corresponding box side will be open.
The 'left' and 'right' faces point to the negative and positive X-axis. If YASARA is using a right
handed coordinate system, these two faces will thus be flipped.
The created box rotates around the origin of its local coordinate system
, which is at the center of the box. Use the MoveMesh
command to shift the origin.
Example 1:
ShowBox Width=10,Height=15,Depth=30,LeftCol=Red
Create a red box 10x15x30 Angstrom large.
Example 2:
obj = ShowBox 5,7,9,LeftCol=Blue,BottomCol=Red,FrontCol=None,BackCol=Green
Create a box 5x7x9 A large, that is blue on the sides, red at the bottom and the top,
green at the back - and open at the front so that you can look inside. The number of the new object is assigned to variable
'obj'.
|