Previous Topic

Next Topic

Book Contents

nodeBounds

This commands returns a 5-element list of the max and min coordinates of the nodes defined in the domain:

nodeBounds

The command returns: "Xmin Ymin Zmin Xmax Ymax Zmax", independently of the domain dimensions, 1D, 2D or 3D, zeros are returned for the extra dimensions.

This command is useful when setting up a display.

Example:

3D

set Xmin [lindex [nodeBounds] 0];

set Ymin [lindex [nodeBounds] 1];

set Zmin [lindex [nodeBounds] 2];

set Xmax [lindex [nodeBounds] 3];

set Ymax [lindex [nodeBounds] 4];

set Zmax [lindex [nodeBounds] 5];

2D

set Xmin [lindex [nodeBounds] 0];

set Ymin [lindex [nodeBounds] 1];

set Xmax [lindex [nodeBounds] 3];

set Ymax [lindex [nodeBounds] 4];

1D

set Xmin [lindex [nodeBounds] 0];

set Xmax [lindex [nodeBounds] 3];

Previous Topic

Next Topic