z=

z= sets the z-coordinate of every node in the region named by dom to the value of an expression, evaluated at that node.

Syntax

z= expression
z = expression
  • expression: as for x=, which states every rule the six equations share: the variables, the order, the blanks around the =, the line’s end, & and ;.

What it does

At every node of the region that an active element uses, James evaluates the expression and stores the result as the node’s z-coordinate: the height of a cylinder part. The rules of x= apply unchanged.

When James applies it

Step 20 of the hierarchy, once, after the part’s last pass, as x= says. Legal only in the Part phase.

Diagnostics

Example

The script tests/corpus/264-equation-continuation-ampersand/input.tg, which make test runs:

block 1 2;1 2;1 2;0 1 0 1 0 1
z = z + 4.05 + &
0.05*(j-1)/3
endpart

The & at the end of the second line continues the expression on the third, as TrueGrid’s rule states; the shift grows with the node’s full index j.

See also

  • x=: the rules of every equation.

James 0.8.0.

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