thi
thi is th with an index progression in place of the region.
Syntax
thi i-list ; j-list ; k-list ; thickness
The three lists form a progression, as for dei; thickness is a real above zero.
What it does
th for every region the progression selects, in the order of the expansion. A progression that selects nothing warns (E0107) and sets nothing; the thickness is still read.
When James applies it
As th.
Rules James adds
- Each region of the expansion that holds no shell element, by th’s rule (no shell partition with area inside it), warns (E1402) on its own; the regions that hold one are set as
thsets them. insprtrenumbers the regions of an earlierthi, as it does every command’s.
Diagnostics
- E1400: the thickness is missing or is not a positive number.
- E1402: a region holds no shell element.
- E0103: a progression interval is written high to low.
- E0418: a progression entry names a gap.
Example
The script tests/corpus/235-thickness-not-positive/input.tg, which make test runs:
c a thickness is a length a solver divides by
block -1 -3;1 3;1 2;0 2 0 2 0 1
thic 0
th 1 1 1 1 2 2 -1
endpart
Both thickness values are refused. James prints the message in tests/corpus/235-thickness-not-positive/expected.diag.txt:
input.tg:3:6: error [E1400]: 'thic' thickness must be a positive number, got 0
input.tg:4:16: error [E1400]: 'th' thickness must be a positive number, got -1
james: 2 errors, 0 warnings
See also
- th: the same command with a region.