This topic provides a reference table for all automatic type conversions to mesh, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the mesh 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 |
|---|---|
| region | Triangulates the region into a mesh. |
Fair Conversions
This section lists all fair
conversions to the mesh 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 |
|---|---|
| box | Creates a box mesh with one facet per side. |
| brep | Creates a mesh approximation of a surface. |
| cage | A mesh whose vertices lie on the naked points of the cage is created. |
| rectangle | Creates a single facet mesh covering the interior of the rectangle. |
| sphere | Creates a low polygon approximation of the sphere. |
| SubD | Creates a mesh representing the control polytope of the SubD. |
| surface | Creates a mesh approximation of a surface. |
| tube | Creates a low polygon approximation of the tube. |
Plausible Conversions
This section lists all plausible
conversions to the mesh 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 |
|---|---|
| identifier | Duplicates the referenced Rhino mesh object. |
Strange Conversions
This section lists all strange
conversions to the mesh 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 |
|---|---|
| plane | Creates a unit sized mesh on the plane. |
| view | Create a mesh representing the view frustum. |