antiprism_addons-0.1

Up    Next
Antiprism Addons

rotyz.py - Rotate an element of an OFF file to Y (0,1,0) and a second element to Z (0,0,1)

Usage    |    Examples    |    Notes

Usage


usage: rotyz.py [-h] [-e {V,E,F}] [-n ELEMNUM1] [-E {V,E,F}] [-N ELEMNUM2]
                [-v]
                off_file

Rotate an element of an OFF file to Y (0,1,0) and a second element to Z (0,0,1)

Written by Roger Kaufman <polyhedrasmith@gmail.com>

positional arguments:
  off_file              off file

options:
  -h, --help            show this help message and exit
  -e {V,E,F}, --elemtype1 {V,E,F}
                        element type to rotate to Y
  -n ELEMNUM1, --elemnum1 ELEMNUM1
                        element number to rotate to Y (default: 0)
  -E {V,E,F}, --elemtype2 {V,E,F}
                        element type to rotate to Z
  -N ELEMNUM2, --elemnum2 ELEMNUM2
                        element number to rotate to Z (default: 0)
  -v, --verbose         output calculated values

Examples

Of U27 (rhombicosidodecahedron), rotate face 0 to the top (y axis) and rotate vertex 28 to the front (z axis)
rotyz.py u27 -e F -n 0 -E V -N 28 | antiview
rotyz.py rhombicosidodecahedron -e F -n 0 -E V -N 28 | antiview


Of geodesic 1 1 (icosahedral) rotate face 0 to the top (y axis) and rotate vertex 0 to the front (z axis)
rotyz.py geo_1_1 -e F -n 0 -E V -N 0 | antiview


Notes

rotyz was developed by Roger Kaufman.

Up: Programs and Documentation
Next: stepview.py - Step through and view OFF or OBJ files in a directory