This topic provides a reference table for all automatic type conversions to box, sorted by merit.
Fair Conversions
This section lists all fair
conversions to the box 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 the axis-aligned bounding box of the arc. |
| brep | Creates the axis-aligned bounding box of the brep. |
| circle | TCreates the axis-aligned bounding box of the circle. |
| curve | Creates the axis-aligned bounding box of the curve. |
| line | Creates the axis-aligned bounding box of the line. |
| mesh | Creates the axis-aligned bounding box of the mesh. |
| polyline | Creates the axis-aligned bounding box of the polyline. |
| rectangle | Creates the axis-aligned bounding box of the rectangle. |
| sphere | Creates the axis-aligned bounding box of the sphere. |
| SubD | Creates the axis-aligned bounding box of the SubD. |
| surface | Creates the axis-aligned bounding box of the surface. |
| triangle | Creates the axis-aligned bounding box of the triangle. |
| tube | Creates the axis-aligned bounding box of the tube. |
Plausible Conversions
This section lists all plausible
conversions to the box 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 |
|---|---|
| plane | Creates an empty bounding box around the plane origin. |
| point2 | Creates an empty bounding box around the point. |
| point3 | Creates an empty bounding box around the point. |
| textdot | Creates an empty bounding box around the text dot. |
Strange Conversions
This section lists all strange
conversions to the box 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 |
|---|---|
| view | Create the smallest box containing the view frustum. |