grid_plot.m

From Spinach Documentation Wiki
Revision as of 15:03, 5 April 2026 by Kuprov (talk | contribs) (Sync syntax/arguments/outputs with current Spinach source)
Jump to: navigation, search


Spherical quadrature grid plotter. Takes a cloud of points on a sphere and plots its Voronoi tessellation.

Syntax

grid_plot(x,y,z,vorn,c,options)

Arguments

x,y,z - column vectors containing Cartesian

           coordinates of grid points
  c      - values to be mapped into the colour
           of each tessellation face, white if
           this input is left empty
  vorn   - Voronoi tessellation; if this is not
           provided, it will be computed
  options.dots - the default (true) puts black
                 dots at centres of tessellati-
                 on faces

Outputs

this function plots a figure

Examples

Below is the Voronoi polyhedra diagram returned by grid_igloo(20).

Igloo 20.png

See also

Integration grids, Appendix I: powder grids


Version 2.6, authors: Ilya Kuprov