Up    Next

polygon - polygon based polyhedra

Usage    |    Examples    |    Notes

Usage

Synopsis

polygon [options] num_sides

Description

Make polyhedra based on polygons: polygons, prisms, antiprisms, pyramids, dipyramids, cupolas, orthobicupolas, gyrobicupolas.

Options

num_sides
a number (N) optionally followed by / and a second number (N/M). N is the number of vertices spaced equally on a circle, then each vertex is joined to the Mth (default: 1) vertex moving around the circle

-h
program help

-t <type>
polyhedron type, can be polygon, prism (default), antiprism, pyramid or dipyramid. Type can be abreviated to three letters.

-e <edge>
length of polygon edge (default: 1)

-R <rad>
circumradius of polygon (default: use -e)

-r <rad>
inradius of polygon (default: use -e)

-l <hgt>
height of upper vertices above base polygon (default: circumradius of polygon

-E <len>
length of non-polygon edges (default: use -l)

-o <file>
write output to file, if this option is not used the program writes to standard output

Examples

A cube with edges of 2 units
   polygon -t pri -e 2 -l 2 -o cube.off 4
A hexagonal based pyramid
   polygon -t pyr -o hex_pyramid.off 6
A uniform pentagrammic antiprism
   polygon -t ant -e 1 -E 1 -o pent_anti.off 5/2
A uniform pentagrammic crossed antiprism
   polygon -t ant -e 1 -E 1 -o pent_cross_anti.off 5/3

Notes

Up: Programs and Documentation
Next: iso_delta - isohedral deltahedra

Antiprism Documentation 13.12.2007 - http://www.antiprism.com/