The slicing functions must be called in order to create data appropriate for the pl3surf (plot a 3D surface) and pl3tree (add a plot to a tree) routines. In general, the slicing routines take a mesh specification of some sort and return a list of the form
[nverts, xyzverts, color]
which specifies a set of polygonal cells and how to color them.
no_cells long and the i th entry tells how many vertices the i th cell has.
nverts[0] entries in xyzverts are the coordinates of the first polygon's vertices, the next
nverts[1] entries are the coordinates of the second polygon's vertices, etc.
no_cells long and contains a color value
for each cell in the mesh.