TemplatePolygon | Cellzilla2D Home |

Description

Generates a Tissue object consisiting of a single polygonal cell.

Needs["Cellzilla2D`"];

Return Value

The argument sequence is idential to RegularPolygon.

TemplatePolygon[n] returns a Tissue with a single cell consisting of a regular n-gon inscribed in the unit circle, with one vertex at (0,1).

TemplatePolygon[n, θ] returns Tissue with a single cell consisting of a regular n-gon inscribed in the unit circle, with one vertex at (Cos[θ],Sin[θ]).

TemplatePolygon[n, θ, a] returns Tissue with a single cell consisting of a regular n-gon inscribed in the unit circle with starting vertex at θ but stretched (or squeezed) in the y-direction by a factor of a.

TemplatePolygon[n, θ, a,rnd] returns Tissue with a single cell consisting of a regular n-gon inscribed in the unit circle with starting vertex at θ but stretched (or squeezed) in the y-direction by a factor of a, and with a random number between -rnd and rnd added to each vertex.

TemplatePolygon[n, θ, a,rnd, φ] return Tissue with a single cell consisting of a regular n-gon inscribed in the unit circle with starting vertex at θ but stretched (or squeezed) in the y-direction by a factor of a; each vertex is randomized (or -1 means don't randomize); then the whole thing is rotated by an angle of φ about the origin.

Options

Example

[ Download Example as Zipped Mathematica Notebook ]

Implementation Notes

See Also