Home > Applications > SpinW > m_files > sw_drawpoly.m

iFit/sw_drawpoly

PURPOSE ^

draws polyhedra around atoms on the structure plot

SYNOPSIS ^

function polyDat = sw_drawpoly(varargin)

DESCRIPTION ^

 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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1