antiprism_addons-0.1

Up    Next
Antiprism Addons

trapstel.py - Make a Trapezohedron that is both dual and stellation to an antiprism

Usage    |    Examples    |    Notes

Usage


usage: trapstel.py [-h] [-m {t,a} [{t,a} ...]] [-r] [-T TRAPEZOHEDRONCOLOR]
                   [-A ANTIPRISMCOLOR] [-E EDGECOLOR] [-V VERTEXCOLOR] [-v]
                   [polygon_fraction]

Make a trapezohedron of a height that is both dual to an antiprism and is also
its stellation. When n/d = 2, make a compound of tetrahedra.

Written by Roger Kaufman <polyhedrasmith@gmail.com>
Math by Adrian Rossiter (www.antiprism.com)

positional arguments:
  polygon_fraction      number of sides of the base polygon (N), or a fraction
                        for star polygons (N/D) (default: 6)

options:
  -h, --help            show this help message and exit
  -m {t,a} [{t,a} ...], --model {t,a} [{t,a} ...]
                        output trapezohedron(t), reciprocal antiprism(a), or
                        both (default: t)
  -r, --rotateAntiprism
                        rotate antiprism into trapezohedron (default: False)
  -T TRAPEZOHEDRONCOLOR, --trapezohedronColor TRAPEZOHEDRONCOLOR
                        an X11 color name (default: red)
  -A ANTIPRISMCOLOR, --antiprismColor ANTIPRISMCOLOR
                        an X11 color name (default: blue)
  -E EDGECOLOR, --edgeColor EDGECOLOR
                        an X11 color name (default: lightgray)
  -V VERTEXCOLOR, --vertexColor VERTEXCOLOR
                        an X11 color name (default: gold)
  -v, --verbose         output calculated values

Examples

Output both a 5 sided antiprism and a 5 sided trapezohedron and which is a stellation of the antiprism
trapstel.py 5 -m t a | antiview


Output both a 7/3 sided antiprism and a 7/3 sided trapezohedron and which is a stellation of the antiprism. Rotate the antiprism to the trapezohedron
trapstel.py 7/3 -m t a -r | antiview


Notes

trapstel was developed by Roger Kaufman.

Up: Programs and Documentation
Next: offview.py - View an OFF file with an online html browser OFF file viewer