pa
pa sets coordinates of one vertex of the open part.
Syntax
pa i j k component value [ value ... ]
i j k: the vertex’s reduced indices, each 1 or more.componentandvalue: as for pb: one ofx,y,z,xy,xz,yzorxyz, and one coordinate for each of its letters.
What it does
pa is pb over the single vertex i j k: James reads it as pb i j k i j k component value ... and keeps it so. Everything pa does, pb does; the manual says so of both.
When James applies it
Step 1iii of the hierarchy, in input order among the vertex commands, as pb. Legal only in the Part phase.
Rules James adds
- The command is kept as a
pbrow whose origin ispa; the--dump-irtext shows thepbrow with the textpa. - Every rule of pb applies: a later command on the same vertex wins, and a vertex naming a gap is refused (E0418).
- A
0amongi j kis refused (E0500). In a region a0stands for the whole direction, but a vertex is one node, sopa 1 1 0 y 2does not place an edge aspb 1 1 0 1 1 0 y 2would.
Diagnostics
- E0500: a reduced index lies outside the part, or is 0.
- E0501:
componentis not one of the seven words. - E0502: the number of values does not fit
component. - E0418: the vertex names a gap.
Example
The script tests/corpus/275-ma-pa-rewrite-p207/input.tg, which make test runs:
c the ma example of Vol. 1, p. 208 with a pa of p. 209
block 1 2;1 2;-1;1 2;1 2;0;
ma 2 1 1 y 1
pa 1 2 1 x 2
endpart
The manual’s own examples: ma moves vertex (2, 1, 1) one unit along y and pa places vertex (1, 2, 1) at x = 2.