grasshopper2 Rhinorhino3d.com
TopicType Reference
X → Line Conversions

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

Direct Conversions

This section lists all direct Direct conversions to the line 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
polyline Creates a linear approximation of the polyline's overall path.

Fair Conversions

This section lists all fair Fair conversions to the line 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
arc Creates a linear approximation of the arc.
circle Creates a linear approximation of the circle.
curve Creates a linear approximation of the curve.
point2 Creates a line from the origin to the point.
point3 Creates a line from the origin to the point.
rectangle Creates a line along the longest rectangle axis.
vector Creates a line from the origin along the vector direction.

Plausible Conversions

This section lists all plausible Plausible conversions to the line type. A 'Plausible' conversion indicates a non-straightforward, but a still reasonable conversion between two types that share a salient quality, or where one is an obvious sub-type of the other. For example curves and intervals, or points and planes. Any plausible conversion can also be achieved through the explicit use of standard components.

From Explanation
box Creates a line along the longest box axis.
identifier Creates a line representation of the referenced Rhino curve object, if it is linear.
sphere Extracts the axis line of the sphere.