grasshopper2 Rhinorhino3d.com
TopicType Reference
X → Field Conversions

This topic provides a reference table for all automatic type conversions to field, sorted by merit.

Direct Conversions

This section lists all direct Direct conversions to the field type. A 'Direct' conversion indicates a relation between very related types, such as integers and numbers, or 2D and 3D points. Though note that even these conversions can fail due to out-of-bounds issues, or be narrowing due to reduction.

From Explanation
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.
vector Creates a vector field with the vector as constant value.

Fair Conversions

This section lists all fair Fair conversions to the field type. A 'Fair' conversion indicates the types involved are closesly related in a data layout sense, though not necessarily in a conceptual sense. For example booleans and integers, or points and vectors. Although these conversions may fail or narrow, it is nevertheless considered decent practice to rely upon them in algorithms.

From Explanation
boolean Creates a scalar field with value zero for false, one for true.