Up
Next
lat_grid - lattices and grids with integer coordinates
lat_grid [options] [lat_type [outer_width [inner_width]]]
Make a lattice or grid with integer coordinates.
- Lattice types (default: sc)
-
| Lattice Type | Description | Squares of Strut Lengths |
| sc | Simple Cubic | 1, 2, 3 |
| fcc | Face Centred Cubic | 2, 4, 6, 12 |
| bcc | Body Centred Cubic | 3, 4, 8 |
| rh_dodec | Rhombic Dodecahedra | 3, 8 |
| cubo_oct | Cuboctahedron / Octahedron | 2 |
| tr_oct | Truncated Octahedron | 2 |
| tr_tet_tet | Truncated Tetrahedron / Tetrahedron | 2 |
| tr_tet_tr_oct_cubo | Truncated Tetrahedron / Truncated Octahedron / Cuboctahedron | 4 |
| diamond | Diamond | 3 |
The first strut length value is the square of the radius of balls packed
at the vertex positions.
- Outer Width, Inner Width
- The sizes of the outer and inner containers. For cubes, these are
the length of a side, for spheres these are the squares of the radii
(default: outer - 6, inner - 0).
- -h
- program help
- -C <cent>
- centre of lattice, in form x_val,y_val,z_val (default: calculated)
- -c <type>
- container, c - cube (default), s - sphere
- -s <len2>
- create struts, the value is the square of the strut length
- -o <file>
- write output to file, if this option is not used
the program writes to standard output
View a cubic section of Close Cubic Packing
lat_grid fcc 6 | antiview -v b
Make a spherical section of a diamond grid
lat_grid -c s -s 3 diamond 16 > diam.off
Spherical container suggested by
Steve Waterman,
who has made a collection of
hulls of spherically contained lattices.
Up:
Programs and Documentation
Next:
zono - zonohedra from OFF files
Antiprism Documentation 23.2.2007 -
http://www.antiprism.com/