This topic provides a reference table for all automatic type conversions to field, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the field type. A direct conversion indicates a relation between very related types. Though note that even these conversions can fail due to out-of-bounds issues, or they may narrow due to reduction. Examples in this category include conversions from circles to curves, or from integers to numbers.
| From | Explanation |
|---|---|
| complex number | Creates a vector field with the real and imaginary components as X and Y. |
| integer | Creates a scalar field with the integer as constant value. |
| integer (big) | Creates a scalar field with the integer as constant value. |
| number | Creates a scalar field with the number as constant value. |
| point2 | Creates a vector field with the point coordinates as constant value. |
| point3 | Creates a vector field with the point coordinates as constant value. |
| vector | Creates a vector field with the vector as constant value. |
Fair Conversions
This section lists all fair
conversions to the field type. A fair conversion indicates the types involved are closely related in a data layout sense, though not necessarily in a conceptual sense. Although these conversions may fail or narrow, it is nevertheless considered decent practice to rely upon them. Examples in this category include conversions from booleans to integers, or from curves to intervals.
| From | Explanation |
|---|---|
| angle | Creates a scalar field with the angle in degrees as constant value. |
| arc | Creates a scalar field with the length of the arc as constant value. |
| B-Rep | Creates a scalar field with the total surface area as constant value. |
| boolean | Creates a scalar field with value zero for false, one for true. |
| box | Creates a scalar field with the surface area of the box as constant value. |
| circle | Creates a scalar field with the circumference of the circle as constant value. |
| curve | Creates a scalar field with the length of the curve as constant value. |
| interval | Creates a scalar field with the length of the interval as constant value. |
| ITuple | Creates a vector field from coordinate tuples. |
| line | Creates a vector field with the line's direction and length as constant value. |
| mesh | Creates a scalar field with the surface area of the mesh as constant value. |
| plane | Creates a vector field with the Z-axis of the plane as constant value. |
| polyline | Creates a scalar field with the length of the polyline as constant value. |
| rectangle | Creates a scalar field with the perimeter of the rectangle as constant value. |
| sphere | Creates a scalar field with the surface area of the sphere as constant value. |
| SubD | Creates a scalar field with the surface area of the SubD as constant value. |
| surface | Creates a scalar field with the surface area as constant value. |
| triangle | Creates a scalar field with the perimeter of the triangle as constant value. |
| tube | Creates a scalar field with the surface area of the tube as constant value. |
| view | Creates a vector field with the camera direction of the view as constant value. |
Plausible Conversions
This section lists all plausible
conversions to the field type. A plausible conversion indicates a non-straightforward, but still a reasonable conversion between two types sharing a salient quality, or where one is an obvious sub-type of the other. Any plausible conversion can also be achieved through the explicit use of standard components. Examples in this category include conversions from points to planes, or from boxes to rectangles.
| From | Explanation |
|---|---|
| colour | Creates a scalar field with the luminance of the colour as constant value. |
| Colour (RGB) | Creates a scalar field with the luminance of the colour as constant value. |