next up previous contents index
Next: slice3mesh: Pseudo-slice for a Up: Three-Dimensional Plotting Functions Previous: Creating a mesh3 argument   Contents   Index


The Slicing Functions

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.

nverts
is no_cells long and the i th entry tells how many vertices the i th cell has.
xyzverts
is sum (nverts) by 3 and gives the vertex coordinates of the cells in order, i. e., the first 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.

color
, if present, is no_cells long and contains a color value for each cell in the mesh.



Subsections

Michiel Jan Laurens de Hoon 2003-04-19