Scientific.Geometry.Objects3D.BravaisLattice

Package Scientific :: Package Geometry :: Module Objects3D :: Class BravaisLattice |
[frames] | no frames]

# Class BravaisLattice

       Lattice --+
                 |
    RhombicLattice --+
                     |
                    BravaisLattice

Known Subclasses:
  - SCLattice

General Bravais lattice

This is a subclass of RhombicLattice, describing the special case of an elementary cell containing one point.

Instance Methods
__init__(self, lattice_vectors, cells, function=None, base=None) |
Inherited from `RhombicLattice`: `makeLattice` Inherited from `Lattice`: `__getitem__`, `__len__`, `__setitem__`

Method Details

### __init__(self, lattice_vectors, cells, function=None, base=None) (Constructor) |
Parameters: `lattice_vectors` (`tuple` of three Scientific.Geometry.Vector) - the edges of the elementary cell `cells` - a tuple of three integers, indicating how often the elementary cell should be replicated along each lattice vector `cells` - `tuple` of `int` `function` (callable) - the function to be applied to each point in the lattice in order to obtain the value stored in the lattice. If no function is specified, the point itself becomes the value stored in the lattice. `base` (Scientific.Geometry.Vector) - an offset added to all lattice points Overrides: Lattice.__init__