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.
  • component and value: as for pb: one of x, y, z, xy, xz, yz or xyz, 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 pb row whose origin is pa; the --dump-ir text shows the pb row with the text pa.
  • Every rule of pb applies: a later command on the same vertex wins, and a vertex naming a gap is refused (E0418).
  • A 0 among i j k is refused (E0500). In a region a 0 stands for the whole direction, but a vertex is one node, so pa 1 1 0 y 2 does not place an edge as pb 1 1 0 1 1 0 y 2 would.

Diagnostics

  • E0500: a reduced index lies outside the part, or is 0.
  • E0501: component is 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.

See also

  • pb: the command this one abbreviates.
  • ma: the same for an offset.

James 0.8.0.

This site uses Just the Docs, a documentation theme for Jekyll.