This topic provides a reference table for all automatic type conversions to curve locus, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the curve locus 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 |
|---|---|
| number | Maps the number to a curve parameter value. |
| point2 | Interprets the 2D point as an approximate curve position. |
| point3 | Interprets the point as an approximate curve position. |
Strange Conversions
This section lists all strange
conversions to the curve locus type. A 'Strange' conversion indicates a peculiar, but occasionally sensible, translation between types. However, it is equally likely that the conversion was not intended and thus represents a mistake in the algorithm design, which is why this conversion level is the default for showing conversion warnings in the Grasshopper interface. Examples in this category include the conversion between colours and booleans, or between circles and triangles. Any strange conversion can also be achieved through the explicit use of standard components.
| From | Explanation |
|---|---|
| boolean | Maps false to curve start locus, true to end locus. |
| integer | Maps the integer to a curve parameter value. |
| integer (big) | Maps the integer to a curve parameter value. |