| 1 |
%% xypoly.tex from $Id: xypoly.doc,v 3.11 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``Polygon'' feature. |
| 4 |
%% Copyright (c) 1994-1997 Ross Moore <[email protected]> |
| 5 |
%% |
| 6 |
%% This file is part of the Xy-pic package for graphs and diagrams in TeX. |
| 7 |
%% See the companion README and INSTALL files for further information. |
| 8 |
%% Copyright (c) 1991-2011 Kristoffer H. Rose <[email protected]> |
| 9 |
%% |
| 10 |
%% The Xy-pic package is free software; you can redistribute it and/or modify |
| 11 |
%% it under the terms of the GNU General Public License as published by the |
| 12 |
%% Free Software Foundation; either version 2 of the License, or (at your |
| 13 |
%% option) any later version. |
| 14 |
%% |
| 15 |
%% The Xy-pic package is distributed in the hope that it will be useful, but |
| 16 |
%% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 17 |
%% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 18 |
%% for more details. |
| 19 |
%% |
| 20 |
%% You should have received a copy of the GNU General Public License along |
| 21 |
%% with this macro package; if not, see http://www.gnu.org/licenses/. |
| 22 |
%% |
| 23 |
\ifx\xyloaded\undefined \input xy \fi |
| 24 |
\xyprovide{poly}{Polygon feature}{\stripRCS$Revision: 3.11 $}% |
| 25 |
{Ross Moore}{[email protected]}% |
| 26 |
{Mathematics Department, Macquarie University, NSW~2109, Australia} |
| 27 |
\xyrequire{arrow}\xycatcodes |
| 28 |
\message{polygons,} |
| 29 |
\xynew@{count}\xypolynode@\xypolynode@=\m@ne |
| 30 |
\xydef@\xypolynode{\the\xypolynode@} |
| 31 |
\xydef@\xypolyNUMSIDES@{} |
| 32 |
\xydef@\xypolynum{\xypolyNUMSIDES@} |
| 33 |
\xydef@\xypolygon{\xypoly@}% |
| 34 |
\xydef@\xypoly@{% |
| 35 |
\if\inxy@ |
| 36 |
\if\inxypoly@ |
| 37 |
\edef\next@{\noexpand\xy@@{\noexpand\nter@{\xypolynode@=\the\xypolynode@ |
| 38 |
\noexpand\def\noexpand\xypolyNUMSIDES@{\xypolyNUMSIDES@}}}}% |
| 39 |
\else |
| 40 |
\DN@{\xy@@{\def\inxypoly@{TT}% |
| 41 |
\nter@{\def\inxypoly@{TF}\xypolynode@=\m@ne}}}% |
| 42 |
\fi |
| 43 |
\else |
| 44 |
\if\inxypoly@ |
| 45 |
\edef\next@{\noexpand\xy |
| 46 |
\noexpand\xy@@{\noexpand\nter@{\xypolyside=\the\xypolyside |
| 47 |
\noexpand\def\noexpand\xypolyNUMSIDES@{\xypolyNUMSIDES@}\endxy}}}% |
| 48 |
\else |
| 49 |
\DN@{\xy \xy@@{\def\inxypoly@{TT}% |
| 50 |
\nter@{\def\inxypoly@{TF}\xypolynode@=\m@ne \endxy}}}% |
| 51 |
\fi |
| 52 |
\fi |
| 53 |
\next@ \count@=\z@ \xyFN@\xypoly@n} |
| 54 |
\xydef@\inxypoly@{TF}% |
| 55 |
\xydef@\xypoly@x{\xy@@{\leave@\leave@}} |
| 56 |
\xydef@\xypoly@n{% |
| 57 |
\DN@##1{\multiply\count@10\relax \advance\count@##1\relax \xyFN@\xypoly@n}% |
| 58 |
\ifx \space@\next |
| 59 |
\ifnum\count@>\z@ \expandafter\DN@\space@{\xyFN@\xypoly@i}% |
| 60 |
\else \expandafter\DN@\space@{\xyFN@\xypoly@n}\fi |
| 61 |
\else\ifx 0\next \else\ifx 1\next \else\ifx 2\next \else\ifx 3\next |
| 62 |
\else\ifx 4\next \else\ifx 5\next \else\ifx 6\next \else\ifx 7\next |
| 63 |
\else\ifx 8\next \else\ifx 9\next |
| 64 |
\else \let\next@=\xypoly@i \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \next@} |
| 65 |
\xydef@\xypoly@i{\edef\xypolyNUMSIDES@{\the\count@}\xyFN@\xygetpolyprefix@} |
| 66 |
\xydef@\xypolyPREFIX@{}% |
| 67 |
\xydef@\xypolyPREFIX@@{}% |
| 68 |
\xydef@\xypolyname{\xypolyPREFIX@}% |
| 69 |
\xydef@\xygetpolyprefix@{% |
| 70 |
\ifx\next"\DN@"##1"{\def\xypolyPREFIX@@{##1}\expandafter |
| 71 |
\edef\csname\xypolyPREFIX@@ NUMSIDES\endcsname{\xypolyNUMSIDES@}% |
| 72 |
\xypolyprefix@@ }% |
| 73 |
\else |
| 74 |
\ifnum\xypolynode@<\z@\def\xypolyPREFIX@@{}% |
| 75 |
\else |
| 76 |
\edef\xypolyPREFIX@@{\xypolyPREFIX@\the\xypolynode@,}% |
| 77 |
\fi \DN@{\xypolyprefix@@}% |
| 78 |
\fi \next@ } |
| 79 |
\xydef@\xypolyprefix@@{% |
| 80 |
\expandafter\toks@\expandafter{\addEQ@\POS"}% |
| 81 |
\expandafter\addtotoks@\expandafter{\xypolyPREFIX@@0"\relax}% |
| 82 |
\the\toks@ |
| 83 |
\ifnum\xypolynode@<\z@ |
| 84 |
\expandafter\def\expandafter\xypolyPREFIX@\expandafter{\xypolyPREFIX@@}% |
| 85 |
\xy@@{\enter@{\xypolynode@=\the\xypolynode@ |
| 86 |
\noexpand\def\noexpand\xypolyPREFIX@{\xypolyPREFIX@}}\xypolynode@=\z@ }% |
| 87 |
\else |
| 88 |
\xy@@{\enter@{\xypolynode@=\the\xypolynode@ |
| 89 |
\noexpand\def\noexpand\xypolyPREFIX@{\xypolyPREFIX@}}\xypolynode@=\z@ }% |
| 90 |
\expandafter\def\expandafter\xypolyPREFIX@\expandafter{\xypolyPREFIX@@}% |
| 91 |
\fi |
| 92 |
\xypoly@@i } |
| 93 |
\xydef@\xypoly@@i#1#{\begingroup |
| 94 |
\DN@{#1}\ifx\next@\empty\else |
| 95 |
\xywarning@{discarding unused tokens: #1}\fi \xypoly@@ } |
| 96 |
\xydef@\xypoly@@#1{\xypolydefaults@ |
| 97 |
\DN@{#1}\ifx\next@\empty\DN@{\xypoly@@@}% |
| 98 |
\else \DN@{\xyFN@\xypolyparams@#1~!}\fi \next@} |
| 99 |
\xydef@\xypolydefaults@{\def\xypolySCALE@{}% |
| 100 |
\def\xypolySPOKES@{{}}\def\xypostSPOKES@{}\let\xypreSPOKES@\relax |
| 101 |
\def\xypolySIDES@{{-}}\def\xypostSIDES@{}\let\xypreSIDES@\relax |
| 102 |
\def\xypolyVERTEX@{}\def\xypolyALIGN@{}} |
| 103 |
{\xyuncatcodes \gdef\next{*=0}} |
| 104 |
\xylet@\xypolynullvertex@=\next |
| 105 |
{\xyuncatcodes \gdef\next{*[o]}} |
| 106 |
\xylet@\xypolyvertex@=\next |
| 107 |
{\xyuncatcodes \gdef\next{*+[o]}} |
| 108 |
\xylet@\xypolywidevertex@=\next |
| 109 |
\xydef@\xypolyparams@{% |
| 110 |
\ifx\space@\next \expandafter\DN@\space{\xyFN@\xypolyparams@}% |
| 111 |
\else\ifx\next~\DN@~{\xyFN@\xypolywhich@}% |
| 112 |
\else\ifx\next\bgroup\DN@##1~!{% |
| 113 |
\ifx\empty\xypolyVERTEX@\expandafter |
| 114 |
\def\expandafter\xypolyVERTEX@\expandafter{\xypolyvertex@{##1}}% |
| 115 |
\else\xypolyVERTEXerror@{##1}\fi \xypoly@@@}% |
| 116 |
\else\DN@##1~!{\DN@{##1}\ifx\next@\empty\else |
| 117 |
\ifx\empty\xypolyVERTEX@\def\xypolyVERTEX@{*##1}% |
| 118 |
\expandafter\checkpolytok@\expandafter\xypolyVERTEX@ |
| 119 |
\expandafter{\xypolynullvertex@}##1@@!\relax |
| 120 |
\else\xypolyVERTEXerror@{##1}\fi\fi \xypoly@@@}% |
| 121 |
\fi\fi\fi \next@ } |
| 122 |
\xydef@\xypolyVERTEXerror@#1{\xywarning@{% |
| 123 |
vertex already specified, discarding unused tokens:#1}} |
| 124 |
\xydef@\xypolywhich@{% |
| 125 |
\ifx\next!\DN@!{\xypoly@@@}% |
| 126 |
\else \addLT@\ifx\next \addLT@\DN@{\xyFN@\xypoly@SPOKES@}% |
| 127 |
\else \addGT@\ifx\next \addGT@\DN@{\xyFN@\xypoly@SIDES@}% |
| 128 |
\else \addEQ@\ifx\next \addEQ@\DN@##1{% |
| 129 |
\def\xypolyALIGN@{##1}\xyFN@\xypolyparams@ }% |
| 130 |
\else \ifx :\next \DN@:##1{% |
| 131 |
\def\xypolySCALE@{##1}\xyFN@\xypolyparams@ }% |
| 132 |
\else\ifx\next*\DN@*##1{\expandafter |
| 133 |
\def\expandafter\xypolyVERTEX@\expandafter{\xypolywidevertex@{##1}}% |
| 134 |
\xyFN@\xypolyparams@}% |
| 135 |
\fi\fi\fi\fi\fi\fi \next@ } |
| 136 |
\xydef@\xypoly@SPOKES@{% |
| 137 |
\addLT@\ifx\next \addLT@\DN@##1{% |
| 138 |
\def\xypreSPOKES@{##1}\def\xypolySPOKES@{}\xyFN@\xypolyparams@ }% |
| 139 |
\else \addGT@\ifx\next \addGT@\DN@##1{% |
| 140 |
\def\xypostSPOKES@{##1}\xyFN@\xypolyparams@ }% |
| 141 |
\else \ifx\next\bgroup \DN@##1{% |
| 142 |
\def\xypolySPOKES@{##1}\let\xypreSPOKES@\relax |
| 143 |
\checkpolytok@\xypolySPOKES@{}##1@@!{\xyFN@\xypolyparams@}}% |
| 144 |
\else \DN@##1{% |
| 145 |
\let\xypreSPOKES@\relax \def\xypolySPOKES@{{##1}}\xyFN@\xypolyparams@}% |
| 146 |
\fi\fi\fi \next@ } |
| 147 |
\xydef@\xypoly@SIDES@{% |
| 148 |
\addLT@\ifx\next \addLT@\DN@##1{% |
| 149 |
\def\xypreSIDES@{##1}\def\xypolySIDES@{}\xyFN@\xypolyparams@ }% |
| 150 |
\else \addGT@\ifx\next \addGT@\DN@ ##1{% |
| 151 |
\def\xypostSIDES@{##1}\xyFN@\xypolyparams@ }% |
| 152 |
\else \ifx\next\bgroup \DN@##1{% |
| 153 |
\def\xypolySIDES@{##1}\let\xypreSIDES@\relax |
| 154 |
\checkpolytok@\xypolySIDES@{}##1@@!{\xyFN@\xypolyparams@}}% |
| 155 |
\else \DN@##1{% |
| 156 |
\let\xypreSIDES@\relax \def\xypolySIDES@{{##1}}\xyFN@\xypolyparams@}% |
| 157 |
\fi\fi\fi \next@ } |
| 158 |
\xydef@\checkpolytok@#1#2#3#4@!#5{\DNii@{#1}\DN@{#4}% |
| 159 |
\ifx\next@\empty\expandafter\def\nextii@{{}}% |
| 160 |
\else\ifx#4@\expandafter\def\nextii@{#2{#3}}\fi\fi #5} |
| 161 |
\xydef@\xytrigerror@#1#2{\string#1 only works from 0 to 12} |
| 162 |
\xydef@\cosPIon#1{\ifcase#1 1\or-1\or0\or.5\or\halfroottwo\or |
| 163 |
.809017\or\halfrootthree\or.900969\or.92388\or.939693\or.951057\or |
| 164 |
.959493\or.965926\else1\xytrigerror@\cosPIon{#1}\fi} |
| 165 |
\xydef@\sinPIon#1{\ifcase#1 0\or0\or1\or\halfrootthree\or\halfroottwo\or |
| 166 |
.587785\or.5\or.433884\or.382683\or.34202\or.309017\or |
| 167 |
.281733\or.258819\else0\xytrigerror@\sinPIon{#1}\fi} |
| 168 |
\xydef@\cosTwoPIon#1{\ifcase#1 1\or1\or-1\or-\cosPIon3\or\cosPIon2\or |
| 169 |
\sinPIon{10}\or\cosPIon3\or.62349\or\cosPIon4\or |
| 170 |
.766044\or\cosPIon5\or.841254\or\cosPIon6% |
| 171 |
\else1\xytrigerror@\cosTwoPIon{#1}\fi} |
| 172 |
\xydef@\sinTwoPIon#1{\ifcase#1 0\or0\or0\or-\sinPIon3\or\sinPIon2\or |
| 173 |
\cosPIon{10}\or\sinPIon3\or.781831\or\sinPIon4\or |
| 174 |
.642788\or\sinPIon5\or.540641\or\sinPIon6% |
| 175 |
\else0\xytrigerror@\sinTwoPIon{#1}\fi} |
| 176 |
\xydef@\cosThreePIon#1{\ifcase#1 1\or-1\or0\or-1\or-\cosPIon4\or |
| 177 |
-\cosPIon5\or\cosPIon2\or.222521\or\sinPIon8\or\cosPIon3\or |
| 178 |
\sinTwoPIon5\or.654861\or\cosPIon4% |
| 179 |
\else1\xytrigerror@\cosThreePIon{#1}\fi} |
| 180 |
\xydef@\sinThreePIon#1{\ifcase#1 0\or0\or1\or0\or\sinPIon4\or |
| 181 |
\sinTwoPIon5\or\sinPIon2\or.974928\or\cosPIon8\or\sinPIon3\or |
| 182 |
\cosTwoPIon5\or.75575\or\sinPIon4% |
| 183 |
\else0\xytrigerror@\sinThreePIon{#1}\fi} |
| 184 |
\xydef@\cosFourPIon#1{\ifcase#1 1\or1\or1\or-\cosPIon3\or-1\or-\cosPIon5\or |
| 185 |
\cosTwoPIon3\or-\cosThreePIon7\or0\or.173648\or\cosTwoPIon5\or |
| 186 |
.415415\or\cosPIon3% |
| 187 |
\else1\xytrigerror@\cosFourPIon{#1}\fi} |
| 188 |
\xydef@\sinFourPIon#1{\ifcase#1 0\or0\or0\or-\sinPIon3\or0\or\sinPIon5\or |
| 189 |
\sinTwoPIon3\or\sinThreePIon7\or1\or.984808\or\sinTwoPIon5\or |
| 190 |
.909632\or\sinPIon3% |
| 191 |
\else0\xytrigerror@\sinFourPIon{#1}\fi} |
| 192 |
\xydef@\cosFivePIon#1{\ifcase#1 1\or-1\or0\or\cosPIon3\or-\cosPIon4\or |
| 193 |
-1\or-\cosPIon6\or-\cosTwoPIon7\or-\cosThreePIon8\or-\cosFourPIon9\or |
| 194 |
0\or.142315\or\sinPIon{12}% |
| 195 |
\else1\xytrigerror@\cosFivePIon{#1}\fi} |
| 196 |
\xydef@\sinFivePIon#1{\ifcase#1 0\or0\or1\or-\sinPIon3\or-\sinPIon4\or |
| 197 |
0\or\sinPIon6\or\sinTwoPIon7\or\sinThreePIon8\or\sinFourPIon9\or1\or |
| 198 |
.989821\or\cosPIon{12}% |
| 199 |
\else0\xytrigerror@\sinFivePIon{#1}\fi} |
| 200 |
\xydef@\xypoly@@@{\count@=\xypolyNUMSIDES@\relax |
| 201 |
\ifx\xypolyALIGN@\empty |
| 202 |
\ifnum\count@<\thr@@\relax\DN@{\xypolytoosmall@{\the\count@}}% |
| 203 |
\else \advance\count@-\thr@@ |
| 204 |
\ifcase\count@ \DN@{\xyPolygon@@@\xytriangle@@}% |
| 205 |
\or \DN@{\xyPolygon@@@\xysquare@@}% |
| 206 |
\or \DN@{\xyPolygon@@@\xypentagon@@}% |
| 207 |
\or \DN@{\xyPolygon@@@\xyhexagon@@}% |
| 208 |
\or \DN@{\xyPolygon@@@\xyheptagon@@}% |
| 209 |
\or \DN@{\xyPolygon@@@\xyoctagon@@}% |
| 210 |
\or \DN@{\xyPolygon@@@\xynonagon@@}% |
| 211 |
\or \DN@{\xyPolygon@@@\xydecagon@@}% |
| 212 |
\or \DN@{\xyPolygon@@@\xyundecagon@@}% |
| 213 |
\or \DN@{\xyPolygon@@@\xydodecagon@@}% |
| 214 |
\else \DN@{\xylargePolygon@{0}{\xypolyNUMSIDES@}}% |
| 215 |
\fi\fi |
| 216 |
\else |
| 217 |
\DN@{\xylargePolygon@{\xypolyALIGN@}{\xypolyNUMSIDES@}}% |
| 218 |
\fi \next@ \xypoly@@@x} |
| 219 |
\xydef@\xypoly@@@x{\restore\xypoly@x} |
| 220 |
\xydef@\xypolytoosmall@#1{\xyerror@{#1 sides is too few for a polygon}} |
| 221 |
\xydef@\xyPolygon@@@#1{% |
| 222 |
\toks@={\def\xypolyNUMSIDES@}% |
| 223 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyNUMSIDES@}\save}% |
| 224 |
\ifx\empty\xypolySCALE@ \addtotoks@{\POS"}% |
| 225 |
\else \addtotoks@{\POS;0;}% |
| 226 |
\expandafter\addtotoks@\expandafter{\xypolySCALE@\relax\POS"}% |
| 227 |
\fi |
| 228 |
\expandafter\addtotoks@\expandafter{\xypolyPREFIX@0"\relax}% |
| 229 |
\ifx\xypreSPOKES@\relax |
| 230 |
\addtotoks@{#1{;}}% |
| 231 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyVERTEX@}}% |
| 232 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyPREFIX@}}% |
| 233 |
\DN@##1\next@{\def\tmp@{**\dir##1}}% |
| 234 |
\expandafter\next@\expandafter{\xypolySPOKES@}\next@ |
| 235 |
\expandafter\addtotoks@\expandafter{\expandafter{\tmp@}}% |
| 236 |
\else |
| 237 |
\expandafter\DN@\expandafter{\expandafter\ar\xypreSPOKES@}% |
| 238 |
\addtotoks@{#1}% |
| 239 |
\expandafter\addtotoks@\expandafter{\expandafter{\next@}}% |
| 240 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyVERTEX@}}% |
| 241 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyPREFIX@}{}}% |
| 242 |
\fi |
| 243 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypostSPOKES@}}% |
| 244 |
\ifx\xypreSIDES@\relax |
| 245 |
\addtotoks@{{;}}% |
| 246 |
\DN@##1\next@{\def\tmp@{**\dir##1}}% |
| 247 |
\expandafter\next@\expandafter{\xypolySIDES@}\next@ |
| 248 |
\expandafter\addtotoks@\expandafter{\expandafter{\tmp@}}% |
| 249 |
\else |
| 250 |
\expandafter\DN@\expandafter{\expandafter\ar\xypreSIDES@}% |
| 251 |
\expandafter\addtotoks@\expandafter{\expandafter{\next@}{}}% |
| 252 |
\fi |
| 253 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypostSIDES@}}% |
| 254 |
\ifx\xypolyALIGN@\empty |
| 255 |
\ifnum\xypolyNUMSIDES@>12\addtotoks@{{0}}\fi |
| 256 |
\else |
| 257 |
\expandafter\addtotoks@\expandafter{\expandafter{\xypolyALIGN@}}% |
| 258 |
\fi |
| 259 |
\expandafter\DN@\expandafter{\expandafter\endgroup\the\toks@ }% |
| 260 |
\next@} |
| 261 |
\xydef@\xytriangle@@#1#2#3#4#5#6#7#8{% |
| 262 |
\xy@@{\xypolynode@=\@ne}% |
| 263 |
\POS#1"#30"+(0,1)#2="#31"#4#5\relax |
| 264 |
\xy@@{\advance\xypolynode@\@ne}% |
| 265 |
\POS"#30"#1"#30"+(-\cosPIon6, -.5)#2="#32"#4#5\relax |
| 266 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 267 |
\POS"#31"#6"#32"#7#8\relax |
| 268 |
\xy@@{\advance\xypolynode@\tw@}% |
| 269 |
\POS"#30"#1"#30"+(\cosPIon6,-.5)#2="#33"#4#5\relax |
| 270 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 271 |
\POS"#32"#6"#33"#7#8\relax |
| 272 |
\xy@@{\advance\xypolynode@\@ne}% |
| 273 |
\POS"#33"#6"#31"#7#8\relax } |
| 274 |
\xydef@\xysquare@@#1#2#3#4#5#6#7#8{% |
| 275 |
\xy@@{\xypolynode@=\@ne}% |
| 276 |
\POS#1"#30"+(\halfroottwo,\halfroottwo)#2="#31"#4#5\relax |
| 277 |
\xy@@{\advance\xypolynode@\@ne}% |
| 278 |
\POS"#30"#1"#30"+(-\halfroottwo,\halfroottwo)#2="#32"#4#5\relax |
| 279 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 280 |
\POS"#31"#6"#32"#7#8\relax |
| 281 |
\xy@@{\advance\xypolynode@\tw@}% |
| 282 |
\POS"#30"#1"#30"-(\halfroottwo,\halfroottwo)#2="#33"#4#5\relax |
| 283 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 284 |
\POS"#32"#6"#33"#7#8\relax |
| 285 |
\xy@@{\advance\xypolynode@\tw@}% |
| 286 |
\POS"#30"#1"#30"-(-\halfroottwo,\halfroottwo)#2="#34"#4#5\relax |
| 287 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 288 |
\POS"#33"#6"#34"#7#8\relax |
| 289 |
\xy@@{\advance\xypolynode@\@ne}% |
| 290 |
\POS"#34"#6"#31"#7#8\relax } |
| 291 |
\xydef@\xypentagon@@#1#2#3#4#5#6#7#8{% |
| 292 |
\xy@@{\xypolynode@=\@ne}% |
| 293 |
\POS#1"#30"+(\cosPIon{10},\sinPIon{10})#2="#31"#4#5\relax |
| 294 |
\xy@@{\advance\xypolynode@\@ne}% |
| 295 |
\POS"#30"#1"#30"+(0,1)#2="#32"#4#5\relax |
| 296 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 297 |
\POS"#31"#6"#32"#7#8\relax |
| 298 |
\xy@@{\advance\xypolynode@\tw@}% |
| 299 |
\POS"#30"#1"#30"+(-\cosPIon{10},\sinPIon{10})#2="#33"#4#5\relax |
| 300 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 301 |
\POS"#32"#6"#33"#7#8\relax |
| 302 |
\xy@@{\advance\xypolynode@\tw@}% |
| 303 |
\POS"#30"#1"#30"-(\sinPIon5,\cosPIon5)#2="#34"#4#5\relax |
| 304 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 305 |
\POS"#33"#6"#34"#7#8\relax |
| 306 |
\xy@@{\advance\xypolynode@\tw@}% |
| 307 |
\POS"#30"#1"#30"+(\sinPIon5,-\cosPIon5)#2="#35"#4#5\relax |
| 308 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 309 |
\POS"#34"#6"#35"#7#8\relax |
| 310 |
\xy@@{\advance\xypolynode@\@ne}% |
| 311 |
\POS"#35"#6"#31"#7#8\relax } |
| 312 |
\xydef@\xyhexagon@@#1#2#3#4#5#6#7#8{% |
| 313 |
\xy@@{\xypolynode@=\@ne}% |
| 314 |
\POS#1"#30"+(1,0)#2="#31"#4#5\relax |
| 315 |
\xy@@{\advance\xypolynode@\@ne}% |
| 316 |
\POS"#30"#1"#30"+(.5,\halfrootthree)#2="#32"#4#5\relax |
| 317 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 318 |
\POS"#31"#6"#32"#7#8\relax |
| 319 |
\xy@@{\advance\xypolynode@\tw@}% |
| 320 |
\POS"#30"#1"#30"+(-.5,\halfrootthree)#2="#33"#4#5\relax |
| 321 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 322 |
\POS"#32"#6"#33"#7#8\relax |
| 323 |
\xy@@{\advance\xypolynode@\tw@}% |
| 324 |
\POS"#30"#1"#30"-(1,0)#2="#34"#4#5\relax |
| 325 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 326 |
\POS"#33"#6"#34"#7#8\relax |
| 327 |
\xy@@{\advance\xypolynode@\tw@}% |
| 328 |
\POS"#30"#1"#30"-(.5,\halfrootthree)#2="#35"#4#5\relax |
| 329 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 330 |
\POS"#34"#6"#35"#7#8\relax |
| 331 |
\xy@@{\advance\xypolynode@\tw@}% |
| 332 |
\POS"#30"#1"#30"-(-.5,\halfrootthree)#2="#36"#4#5\relax |
| 333 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 334 |
\POS"#35"#6"#36"#7#8\relax |
| 335 |
\xy@@{\advance\xypolynode@\@ne}% |
| 336 |
\POS"#36"#6"#31"#7#8\relax } |
| 337 |
\xydef@\xyheptagon@@#1#2#3#4#5#6#7#8{% |
| 338 |
\xy@@{\xypolynode@=\@ne}% |
| 339 |
\POS#1"#30"+(\sinTwoPIon7,\cosTwoPIon7)#2="#31"#4#5\relax |
| 340 |
\xy@@{\advance\xypolynode@\@ne}% |
| 341 |
\POS"#30"#1"#30"+(0,1)#2="#32"#4#5\relax |
| 342 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 343 |
\POS"#31"#6"#32"#7#8\relax |
| 344 |
\xy@@{\advance\xypolynode@\tw@}% |
| 345 |
\POS"#30"#1"#30"+(-\sinTwoPIon7,\cosTwoPIon7)#2="#33"#4#5\relax |
| 346 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 347 |
\POS"#32"#6"#33"#7#8\relax |
| 348 |
\xy@@{\advance\xypolynode@\tw@}% |
| 349 |
\POS"#30"#1"#30"-(\sinThreePIon7,\cosThreePIon7)#2="#34"#4#5\relax |
| 350 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 351 |
\POS"#33"#6"#34"#7#8\relax |
| 352 |
\xy@@{\advance\xypolynode@\tw@}% |
| 353 |
\POS"#30"#1"#30"-(\sinPIon7,\cosPIon7)#2="#35"#4#5\relax |
| 354 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 355 |
\POS"#34"#6"#35"#7#8\relax |
| 356 |
\xy@@{\advance\xypolynode@\tw@}% |
| 357 |
\POS"#30"#1"#30"+(\sinPIon7,-\cosPIon7)#2="#36"#4#5\relax |
| 358 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 359 |
\POS"#35"#6"#36"#7#8\relax |
| 360 |
\xy@@{\advance\xypolynode@\tw@}% |
| 361 |
\POS"#30"#1"#30"+(\sinThreePIon7,-\cosThreePIon7)#2="#37"#4#5\relax |
| 362 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 363 |
\POS"#36"#6"#37"#7#8\relax |
| 364 |
\xy@@{\advance\xypolynode@\@ne}% |
| 365 |
\POS"#37"#6"#31"#7#8\relax } |
| 366 |
\xydef@\xyoctagon@@#1#2#3#4#5#6#7#8{% |
| 367 |
\xy@@{\xypolynode@=\@ne}% |
| 368 |
\POS#1"#30"+(\cosPIon8,\sinPIon8)#2="#31"#4#5\relax |
| 369 |
\xy@@{\advance\xypolynode@\@ne}% |
| 370 |
\POS"#30"#1"#30"+(\sinPIon8,\cosPIon8)#2="#32"#4#5\relax |
| 371 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 372 |
\POS"#31"#6"#32"#7#8\relax |
| 373 |
\xy@@{\advance\xypolynode@\tw@}% |
| 374 |
\POS"#30"#1"#30"-(\sinPIon8,-\cosPIon8)#2="#33"#4#5\relax |
| 375 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 376 |
\POS"#32"#6"#33"#7#8\relax |
| 377 |
\xy@@{\advance\xypolynode@\tw@}% |
| 378 |
\POS"#30"#1"#30"-(\cosPIon8,-\sinPIon8)#2="#34"#4#5\relax |
| 379 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 380 |
\POS"#33"#6"#34"#7#8\relax |
| 381 |
\xy@@{\advance\xypolynode@\tw@}% |
| 382 |
\POS"#30"#1"#30"-(\cosPIon8,\sinPIon8)#2="#35"#4#5\relax |
| 383 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 384 |
\POS"#34"#6"#35"#7#8\relax |
| 385 |
\xy@@{\advance\xypolynode@\tw@}% |
| 386 |
\POS"#30"#1"#30"-(\sinPIon8,\cosPIon8)#2="#36"#4#5\relax |
| 387 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 388 |
\POS"#35"#6"#36"#7#8\relax |
| 389 |
\xy@@{\advance\xypolynode@\tw@}% |
| 390 |
\POS"#30"#1"#30"+(\sinPIon8,-\cosPIon8)#2="#37"#4#5\relax |
| 391 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 392 |
\POS"#36"#6"#37"#7#8\relax |
| 393 |
\xy@@{\advance\xypolynode@\tw@}% |
| 394 |
\POS"#30"#1"#30"+(\cosPIon8,-\sinPIon8)#2="#38"#4#5\relax |
| 395 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 396 |
\POS"#37"#6"#38"#7#8\relax |
| 397 |
\xy@@{\advance\xypolynode@\@ne}% |
| 398 |
\POS"#38"#6"#31"#7#8\relax } |
| 399 |
\xydef@\xynonagon@@#1#2#3#4#5#6#7#8{% |
| 400 |
\xy@@{\xypolynode@=\@ne}% |
| 401 |
\POS#1"#30"+(\sinFourPIon9,\cosFourPIon9)#2="#31"#4#5\relax |
| 402 |
\xy@@{\advance\xypolynode@\@ne}% |
| 403 |
\POS"#30"#1"#30"+(\sinTwoPIon9,\cosTwoPIon9)#2="#32"#4#5\relax |
| 404 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 405 |
\POS"#31"#6"#32"#7#8\relax |
| 406 |
\xy@@{\advance\xypolynode@\tw@}% |
| 407 |
\POS"#30"#1"#30"+(0,1)#2="#33"#4#5\relax |
| 408 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 409 |
\POS"#32"#6"#33"#7#8\relax |
| 410 |
\xy@@{\advance\xypolynode@\tw@}% |
| 411 |
\POS"#30"#1"#30"+(-\sinTwoPIon9,\cosTwoPIon9)#2="#34"#4#5\relax |
| 412 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 413 |
\POS"#33"#6"#34"#7#8\relax |
| 414 |
\xy@@{\advance\xypolynode@\tw@}% |
| 415 |
\POS"#30"#1"#30"+(-\sinFourPIon9,\cosFourPIon9)#2="#35"#4#5\relax |
| 416 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 417 |
\POS"#34"#6"#35"#7#8\relax |
| 418 |
\xy@@{\advance\xypolynode@\tw@}% |
| 419 |
\POS"#30"#1"#30"-(\cosPIon6,\sinPIon6)#2="#36"#4#5\relax |
| 420 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 421 |
\POS"#35"#6"#36"#7#8\relax |
| 422 |
\xy@@{\advance\xypolynode@\tw@}% |
| 423 |
\POS"#30"#1"#30"-(\sinPIon9,\cosPIon9)#2="#37"#4#5\relax |
| 424 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 425 |
\POS"#36"#6"#37"#7#8\relax |
| 426 |
\xy@@{\advance\xypolynode@\tw@}% |
| 427 |
\POS"#30"#1"#30"+(\sinPIon9,-\cosPIon9)#2="#38"#4#5\relax |
| 428 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 429 |
\POS"#37"#6"#38"#7#8\relax |
| 430 |
\xy@@{\advance\xypolynode@\tw@}% |
| 431 |
\POS"#30"#1"#30"+(\cosPIon6,-\sinPIon6)#2="#39"#4#5\relax |
| 432 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 433 |
\POS"#38"#6"#39"#7#8\relax |
| 434 |
\xy@@{\advance\xypolynode@\@ne}% |
| 435 |
\POS"#39"#6"#31"#7#8\relax } |
| 436 |
\xydef@\xydecagon@@#1#2#3#4#5#6#7#8{% |
| 437 |
\xy@@{\xypolynode@=\@ne}% |
| 438 |
\POS#1"#30"+(1,0)#2="#31"#4#5\relax |
| 439 |
\xy@@{\advance\xypolynode@\@ne}% |
| 440 |
\POS"#30"#1"#30"+(\cosPIon5,\sinPIon5)#2="#32"#4#5\relax |
| 441 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 442 |
\POS"#31"#6"#32"#7#8\relax |
| 443 |
\xy@@{\advance\xypolynode@\tw@}% |
| 444 |
\POS"#30"#1"#30"+(\sinPIon{10},\cosPIon{10})#2="#33"#4#5\relax |
| 445 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 446 |
\POS"#32"#6"#33"#7#8\relax |
| 447 |
\xy@@{\advance\xypolynode@\tw@}% |
| 448 |
\POS"#30"#1"#30"-(\sinPIon{10},-\cosPIon{10})#2="#34"#4#5\relax |
| 449 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 450 |
\POS"#33"#6"#34"#7#8\relax |
| 451 |
\xy@@{\advance\xypolynode@\tw@}% |
| 452 |
\POS"#30"#1"#30"-(\cosPIon5,-\sinPIon5)#2="#35"#4#5\relax |
| 453 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 454 |
\POS"#34"#6"#35"#7#8\relax |
| 455 |
\xy@@{\advance\xypolynode@\tw@}% |
| 456 |
\POS"#30"#1"#30"-(1,0)#2="#36"#4#5\relax |
| 457 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 458 |
\POS"#35"#6"#36"#7#8\relax |
| 459 |
\xy@@{\advance\xypolynode@\tw@}% |
| 460 |
\POS"#30"#1"#30"-(\cosPIon5,\sinPIon5)#2="#37"#4#5\relax |
| 461 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 462 |
\POS"#36"#6"#37"#7#8\relax |
| 463 |
\xy@@{\advance\xypolynode@\tw@}% |
| 464 |
\POS"#30"#1"#30"-(\sinPIon{10},\cosPIon{10})#2="#38"#4#5\relax |
| 465 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 466 |
\POS"#37"#6"#38"#7#8\relax |
| 467 |
\xy@@{\advance\xypolynode@\tw@}% |
| 468 |
\POS"#30"#1"#30"+(\sinPIon{10},-\cosPIon{10})#2="#39"#4#5\relax |
| 469 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 470 |
\POS"#38"#6"#39"#7#8\relax |
| 471 |
\xy@@{\advance\xypolynode@\tw@}% |
| 472 |
\POS"#30"#1"#30"+(\cosPIon5,-\sinPIon5)#2="#310"#4#5\relax |
| 473 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 474 |
\POS"#39"#6"#310"#7#8\relax |
| 475 |
\xy@@{\advance\xypolynode@\@ne}% |
| 476 |
\POS"#310"#6"#31"#7#8\relax } |
| 477 |
\xydef@\xyundecagon@@#1#2#3#4#5#6#7#8{% |
| 478 |
\xy@@{\xypolynode@=\@ne}% |
| 479 |
\POS#1"#30"+(\sinFourPIon{11},\cosFourPIon{11})#2="#31"#4#5\relax |
| 480 |
\xy@@{\advance\xypolynode@\@ne}% |
| 481 |
\POS"#30"#1"#30"+(\sinTwoPIon{11},\cosTwoPIon{11})#2="#32"#4#5\relax |
| 482 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 483 |
\POS"#31"#6"#32"#7#8\relax |
| 484 |
\xy@@{\advance\xypolynode@\tw@}% |
| 485 |
\POS"#30"#1"#30"+(0,1)#2="#33"#4#5\relax |
| 486 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 487 |
\POS"#32"#6"#33"#7#8\relax |
| 488 |
\xy@@{\advance\xypolynode@\tw@}% |
| 489 |
\POS"#30"#1"#30"+(-\sinTwoPIon{11},\cosTwoPIon{11})#2="#34"#4#5\relax |
| 490 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 491 |
\POS"#33"#6"#34"#7#8\relax |
| 492 |
\xy@@{\advance\xypolynode@\tw@}% |
| 493 |
\POS"#30"#1"#30"+(-\sinFourPIon{11},\cosFourPIon{11})#2="#35"#4#5\relax |
| 494 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 495 |
\POS"#34"#6"#35"#7#8\relax |
| 496 |
\xy@@{\advance\xypolynode@\tw@}% |
| 497 |
\POS"#30"#1"#30"-(\sinFivePIon{11},\cosFivePIon{11})#2="#36"#4#5\relax |
| 498 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 499 |
\POS"#35"#6"#36"#7#8\relax |
| 500 |
\xy@@{\advance\xypolynode@\tw@}% |
| 501 |
\POS"#30"#1"#30"-(\sinThreePIon{11},\cosThreePIon{11})#2="#37"#4#5\relax |
| 502 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 503 |
\POS"#36"#6"#37"#7#8\relax |
| 504 |
\xy@@{\advance\xypolynode@\tw@}% |
| 505 |
\POS"#30"#1"#30"-(\sinPIon{11},\cosPIon{11})#2="#38"#4#5\relax |
| 506 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 507 |
\POS"#37"#6"#38"#7#8\relax |
| 508 |
\xy@@{\advance\xypolynode@\tw@}% |
| 509 |
\POS"#30"#1"#30"+(\sinPIon{11},-\cosPIon{11})#2="#39"#4#5\relax |
| 510 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 511 |
\POS"#38"#6"#39"#7#8\relax |
| 512 |
\xy@@{\advance\xypolynode@\tw@}% |
| 513 |
\POS"#30"#1"#30"+(\sinThreePIon{11},-\cosThreePIon{11})#2="#310"#4#5\relax |
| 514 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 515 |
\POS"#39"#6"#310"#7#8\relax |
| 516 |
\xy@@{\advance\xypolynode@\tw@}% |
| 517 |
\POS"#30"#1"#30"+(\sinFivePIon{11},-\cosFivePIon{11})#2="#311"#4#5\relax |
| 518 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 519 |
\POS"#310"#6"#311"#7#8\relax |
| 520 |
\xy@@{\advance\xypolynode@\@ne}% |
| 521 |
\POS"#311"#6"#31"#7#8\relax } |
| 522 |
\xydef@\xydodecagon@@#1#2#3#4#5#6#7#8{% |
| 523 |
\xy@@{\xypolynode@=\@ne}% |
| 524 |
\POS#1"#30"+(\cosPIon{12},\sinPIon{12})#2="#31"#4#5\relax |
| 525 |
\xy@@{\advance\xypolynode@\@ne}% |
| 526 |
\POS"#30"#1"#30"+(\halfroottwo,\halfroottwo)#2="#32"#4#5\relax |
| 527 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 528 |
\POS"#31"#6"#32"#7#8\relax |
| 529 |
\xy@@{\advance\xypolynode@\tw@}% |
| 530 |
\POS"#30"#1"#30"+(\sinPIon{12},\cosPIon{12})#2="#33"#4#5\relax |
| 531 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 532 |
\POS"#32"#6"#33"#7#8\relax |
| 533 |
\xy@@{\advance\xypolynode@\tw@}% |
| 534 |
\POS"#30"#1"#30"-(\sinPIon{12},-\cosPIon{12})#2="#34"#4#5\relax |
| 535 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 536 |
\POS"#33"#6"#34"#7#8\relax |
| 537 |
\xy@@{\advance\xypolynode@\tw@}% |
| 538 |
\POS"#30"#1"#30"-(\halfroottwo,-\halfroottwo)#2="#35"#4#5\relax |
| 539 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 540 |
\POS"#34"#6"#35"#7#8\relax |
| 541 |
\xy@@{\advance\xypolynode@\tw@}% |
| 542 |
\POS"#30"#1"#30"-(\cosPIon{12},-\sinPIon{12})#2="#36"#4#5\relax |
| 543 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 544 |
\POS"#35"#6"#36"#7#8\relax |
| 545 |
\xy@@{\advance\xypolynode@\tw@}% |
| 546 |
\POS"#30"#1"#30"-(\cosPIon{12},\sinPIon{12})#2="#37"#4#5\relax |
| 547 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 548 |
\POS"#36"#6"#37"#7#8\relax |
| 549 |
\xy@@{\advance\xypolynode@\tw@}% |
| 550 |
\POS"#30"#1"#30"-(\halfroottwo,\halfroottwo)#2="#38"#4#5\relax |
| 551 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 552 |
\POS"#37"#6"#38"#7#8\relax |
| 553 |
\xy@@{\advance\xypolynode@\tw@}% |
| 554 |
\POS"#30"#1"#30"-(\sinPIon{12},\cosPIon{12})#2="#39"#4#5\relax |
| 555 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 556 |
\POS"#38"#6"#39"#7#8\relax |
| 557 |
\xy@@{\advance\xypolynode@\tw@}% |
| 558 |
\POS"#30"#1"#30"+(\sinPIon{12},-\cosPIon{12})#2="#310"#4#5\relax |
| 559 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 560 |
\POS"#39"#6"#310"#7#8\relax |
| 561 |
\xy@@{\advance\xypolynode@\tw@}% |
| 562 |
\POS"#30"#1"#30"+(\halfroottwo,-\halfroottwo)#2="#311"#4#5\relax |
| 563 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 564 |
\POS"#310"#6"#311"#7#8\relax |
| 565 |
\xy@@{\advance\xypolynode@\tw@}% |
| 566 |
\POS"#30"#1"#30"+(\cosPIon{12},-\sinPIon{12})#2="#312"#4#5\relax |
| 567 |
\xy@@{\advance\xypolynode@\m@ne}% |
| 568 |
\POS"#311"#6"#312"#7#8\relax |
| 569 |
\xy@@{\advance\xypolynode@\@ne}% |
| 570 |
\POS"#312"#6"#31"#7#8\relax } |
| 571 |
\xydef@\xylargePolygon@#1#2{% |
| 572 |
\dimen@=#1\p@ |
| 573 |
\xyPolygon@@@\xypolygon@@} |
| 574 |
\xydef@\xypolyrepeat@{\fi} |
| 575 |
\xydef@\xypolybody@{} |
| 576 |
\xydef@\xypolyiterate@{\xypolybody@\expandafter\xypolyiterate@\else\fi} |
| 577 |
\xydef@\xypolyloop@#1\xypolyrepeat@{\def\xypolybody@{#1}\xypolyiterate@} |
| 578 |
\xydef@\xypolygon@@#1#2#3#4#5#6#7#8#9{\save |
| 579 |
\vfromcartesianangle@{#9}\edef\next@{\the\X@c,\the\Y@c\addGT@\empty}% |
| 580 |
\xy@@{\xypolynode@=\@ne}% |
| 581 |
\toks@={\POS#1"#30"+}% |
| 582 |
\expandafter\expandafter\expandafter\addtotoks@\expandafter |
| 583 |
\expandafter\expandafter{\addLT@\empty}% |
| 584 |
\expandafter\addtotoks@\expandafter{\next@#2="#31"#4#5\relax}% |
| 585 |
\xy@@\dontleave@ \the\toks@ |
| 586 |
\xypolyloop@ |
| 587 |
\dimen@=360\p@ \count@@=\xypolyNUMSIDES@\relax \advance\dimen@ .5\count@@ |
| 588 |
\divide\dimen@ \xypolyNUMSIDES@ \relax |
| 589 |
\multiply\dimen@\xypolynode@ \relax \advance\dimen@ #9\p@ |
| 590 |
\edef\tmp@{% |
| 591 |
\noexpand\vfromcartesianangle@{\expandafter\removePT@\the\dimen@}}% |
| 592 |
\tmp@ \edef\next@{\the\X@c,\the\Y@c\addGT@\empty}% |
| 593 |
\xy@@{\advance\xypolynode@\@ne}\count@=\xypolynode@ |
| 594 |
\toks@={\POS"#30"#1"#30"+}\edef\nextii@{\the\count@}% |
| 595 |
\expandafter\expandafter\expandafter\addtotoks@\expandafter |
| 596 |
\expandafter\expandafter{\addLT@\space}% |
| 597 |
\expandafter\addtotoks@\expandafter{\next@#2="#3}% |
| 598 |
\expandafter\addtotoks@\expandafter{\nextii@"#4#5\relax}% |
| 599 |
\the\toks@ |
| 600 |
\count@=\xypolynode@ \xy@@{\advance\xypolynode@\m@ne}% |
| 601 |
\toks@={\POS"#3}\expandafter\addtotoks@\expandafter{\the\xypolynode@"#6"#3}% |
| 602 |
\expandafter\addtotoks@\expandafter{\the\count@"#7#8\relax}% |
| 603 |
\the\toks@ |
| 604 |
\xy@@{\advance\xypolynode@\@ne}\count@=\xypolyNUMSIDES@ \relax |
| 605 |
\ifnum\xypolynode@<\count@ \relax \xypolyrepeat@ |
| 606 |
\toks@={\POS"#3}% |
| 607 |
\expandafter\addtotoks@\expandafter{\xypolyNUMSIDES@"#6"#31"#7#8\relax}% |
| 608 |
\the\toks@ \restore } |
| 609 |
\xyendinput |