grasshopper2 Rhinorhino3d.com
TopicType Reference
X → Rectangle Conversions

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

Direct Conversions

This section lists all direct Direct conversions to the rectangle 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
polyline Converts rectangular polylines into rectangles.

Fair Conversions

This section lists all fair Fair conversions to the rectangle 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
view Get the target frame of the view.

Plausible Conversions

This section lists all plausible Plausible conversions to the rectangle 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 Creates the aligned bounding rectangle containing the arc.
box Extracts the base rectangle of the box.
circle Creates the aligned bounding rectangle containing the circle.
curve Converts rectangular curves into rectangles, and straight, circular and arc-shaped curves into their aligned bounding rectangles.
identifier Extracts the rectangle of the referenced Rhino curve object.
line Creates the aligned bounding rectangle containing the line.