ModelTokens¶
Namespace Nfty.Model in assembly Nfty.Model.
The text spellings of ModelFormat and Pivot, in one place. The CLI's --format / --pivot and set.json's models block both use these tokens, so the two can never disagree about what a recorded Set was made with.
Properties¶
FormatNames¶
Every format token, in the order the CLI lists them.
PivotNames¶
Every pivot token, in the order the CLI lists them.
Methods¶
FormatOf(string)¶
The format a token names.
Parameters
token(string) - A token fromModelTokens.FormatNames.
Returns. The format.
Exceptions
ArgumentException- The token is unknown; nothing is guessed.
NameOf(ModelFormat)¶
The token for a format.
Parameters
format(ModelFormat) - The format.
Returns. Its token.
Exceptions
ArgumentOutOfRangeException- Not a named format.
NameOf(Pivot)¶
The token for a pivot.
Parameters
pivot(Pivot) - The pivot.
Returns. Its token.
Exceptions
ArgumentOutOfRangeException- Not a named pivot.
OptionsOf(SetModels)¶
The options a recorded block describes.
Parameters
models(SetModels) - The block read fromset.json.
Returns. The options.
Exceptions
ArgumentException- A token is unknown.
PivotOf(string)¶
The pivot a token names.
Parameters
token(string) - A token fromModelTokens.PivotNames.
Returns. The pivot.
Exceptions
ArgumentException- The token is unknown; nothing is guessed.
Record(RiseOptions)¶
The set.json block describing a cook made with these options.
Parameters
options(RiseOptions) - The options.
Returns. Tokens plus voxel size, with nothing skipped yet.