5 <a HREF="index.html"> <IMG SRC="rsl.gif"> </a>
9 <h1>RSL_get_slice_from_cube</h1>
14 <b>#include "rsl.h"</b> <br>
15 <b><a href=RSL_carpi_struct.html>Slice</a> *RSL_get_slice_from_cube(</b><b><a href=RSL_cube_struct.html>Cube</a> *cube, int x, int y, int z);</b>
19 Given a Cube structure, extract one slice from it. x, y and z define the plane of the required slice. Two of the three parameters must equal -1 and the third must be nonnegative; eg, the vertical plane y=100 is specified by the parameters x=-1, y=100, z=-1. Assumes valid ranges for x, y, z are: <br>
20 0 <= x <= nx-1, 0 <= y <= ny-1, 1 <= z <= nz<br>
21 nx, ny and nz specify the dimensions of the cube structure and are members of it. The range of z starts at 1 , since a cappi (or carpi) at height z=0 makes no sense.
25 Upon successful completion, a pointer to the appropriate structure is returned. Otherwise, a NULL pointer is returned and errno is set.
29 <a href=RSL_volume_to_cube.html>RSL_volume_to_cube</a>
32 <hr>Author: <a href=mike.kolander.html>Mike Kolander</a>