draws polyhedra around atoms on the structure plot polyDat = SW_DRAWPOLY(Option1, Value1, ...) Options: cAtom Indices of atom types for the center atom Default is 1. Can be also a string or strings in a cell that identify atoms by their labels. pAtom Indices of atom types of the surrounding atoms Default is 2. Can be also string or cell of strings. range Plot range in reciprocal lattice units, dimensions are [3 2]. Default is the plotting range of the figure. limits Can be a single number: gives the number of neighbours or vector: [min max] distance range from neighbours. Default is 6 to plot octahedra. edge Whether to paint the edge of the polyhedra to the color of the central atom (true) or keep it black (false). Default is true. alpha Transparency of the polyhedra surface. Default is 0.5. Output: polyDat is structure type, with the following fields: polyhedron Vector, contains the handle of all polyhedron surface. index Index of the center atom. pos Positions of the surrounding atoms relative to the center atom in Angstrom units. center Positions of the center atoms in the crystal, in Angstrom units. See also SW, SW_T2G, SW_ORBITAL, SW_ADDOBJECT.