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.componentandvalue: as for mb: one ofx,y,z,xy,xz,yzorxyz, 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
mbrow whose origin isma; the--dump-irtext shows thembrow with the textma. - Every rule of mb applies: an offset may carry a
cylinderpart’s angle past 360 degrees, 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, soma 0 1 1 x 1does not move an edge asmb 0 1 1 0 1 1 x 1would.
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.