ma

ma adds an offset to the coordinates of one vertex of the open part.

Syntax

ma i j k component value [ value ... ]
  • i j k: the vertex’s reduced indices, each 1 or more.
  • component and value: as for mb: one of x, y, z, xy, xz, yz or xyz, and one offset for each of its letters.

What it does

ma is mb over the single vertex i j k: James reads it as mb i j k i j k component value ... and keeps it so. Everything ma does, mb does; the manual says so of both.

When James applies it

Step 1iii of the hierarchy, in input order among the vertex commands, as mb. Legal only in the Part phase.

Rules James adds

  • The command is kept as a mb row whose origin is ma; the --dump-ir text shows the mb row with the text ma.
  • Every rule of mb applies: an offset may carry a cylinder part’s angle past 360 degrees, 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 ma 0 1 1 x 1 does not move an edge as mb 0 1 1 0 1 1 x 1 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

  • mb: the command this one abbreviates.
  • pa: the same for a position.

James 0.8.0.

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