This topic provides a reference table for all automatic type conversions to point3, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the point3 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 | Maps real and imaginary components to X and Y coordinates. |
| point-N | Extracts the first three coordinates as (X,Y,Z) values. |
| point2 | Creates a 3D point on the XY plane. |
| textdot | Extracts the location point of the text dot. |
| vector | Maps the vector (X,Y,Z) components to (X,Y,Z) coordinates. |
Fair Conversions
This section lists all fair
conversions to the point3 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 |
|---|---|
| ITuple | Convert coordinate tuples to points. |
| plane | Extracts the origin point of the plane. |
| view | Get the target point of the view. |
Plausible Conversions
This section lists all plausible
conversions to the point3 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 |
|---|---|
| arc | Extracts the centre of the arc. |
| box | Extracts the centre point of the box. |
| circle | Extracts the centre of the circle. |
| curve | Extracts the middle of straight curves and the centre of rectangular, triangular, circular and arc-shaped curves. |
| identifier | Creates a 3D point which matches the location of the referenced Rhino point object. |
| line | Extracts the middle of the line. |
| rectangle | Extracts the centre of the rectangle. |
| sphere | Extracts the centre point of the sphere. |
| triangle | Extracts the area centre of the triangle. |
Strange Conversions
This section lists all strange
conversions to the point3 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 signals a mistake in the algorithm design, which is why this conversion level is the default for showing conversion warnings. Examples in this category include the conversion from decimal numbers to languages, or from views to meshes. Any strange conversion can also be achieved through the explicit use of standard components.
| From | Explanation |
|---|---|
| boolean | Converts false to origin, true to unit Z coordinate. |
| integer | Creates a 3D point with the integer as the Z coordinate. |
| integer (big) | Creates a 3D point with the integer as the Z coordinate. |
| number | Creates a 3D point with the number as the Z coordinate. |
Weird Conversions
This section lists all weird
conversions to the point3 type. A weird conversion indicates an exotic relationship between types, which is almost certainly unintended on the part of the user. However, very occasionally these conversions make sense and allow the user to avoid the use of several components to achieve the same result. No standard conversion currently falls into this category.
| From | Explanation |
|---|---|
| interval | Creates a point with the interval middle as Z elevation. |