add_literal
Add a constant literal block to an nTop notebook, specifying type, name, and value for use in geometry computations.
Instructions
Add a literal block holding a constant. Value shape follows nTop: a length scalar is {"isFinite":true,"units":{"length":1},"val":0.005} in metres, a point is an array of three such objects, an enum is {"enum":0}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | Literal type, e.g. "real", "point", "file_path", "bool", "unit_length_enum" | |
| value | Yes | ||
| output | No | ||
| blockId | No | ||
| notebook | Yes |