StandardPickers
Provides a bunch of pickers with overridable prompts. This class extends the functionality of RhinoGet.
Methods
GetAdjacentRectangles
#Gets a collection of coplanar rectangles with coincident edges.
Parameters:
| rectangles (out Rectangle3d[]) |
GetBox
#Gets a box using the standard Rhino picker.
GetConsecutiveLines
#Gets a set of consecutive lines.
Parameters:
| lines (out Line[]) | Array of lines. |
| promptFirstPoint (string = "Start of {0} line") | Prompt for first point pick. |
| promptConsecutivePoint (string = "End of {0} line") | Prompt for additional point picks. Use {0} to insert the ordinal for the current line, {1} to insert the ordinal for the next line, {2} to insert the cardinal of the current line, and {3} to insert the cardinal of the next line. |
GetConstrainedPoints
#Get one or more points picked on possible grid vertices.
Parameters:
| points (out Point3d[]) |
GetField
#Get a single field via Rhino getters. Supports:
- typing a number (constant scalar field),
- picking a line segment (constant vector field),
- selecting the "ScalarNoise" command option (simplex scalar noise field),
- selecting the "VectorNoise" command option (simplex vector noise field),
- selecting the "PointCharge" command option (point charge field),
- selecting the "Distance" command option (distance-to-shapes field),
- selecting the "Spin" command option (spin around an axis field),
- selecting the "Drag" command option (drag motion field, local influence),
- selecting the "Plate" command option (thin-plate interpolated vector field).
Parameters:
| field (out Field) |
GetManyPoints
#Pick many points. Either directly or by referencing point objects.
GetManyUvPoints
#Pick many points. Either directly or by referencing point objects.
GetRectangle
#Gets a rectangle using the standard Rhino picker.
Parameters:
| rectangle (out Rectangle3d) | |
| promptFirstPoint (string = null) |
GetTransform
#Get a single transform.
Parameters:
| type (ref StandardPickers.TransformType) | |
| transform (out Transform) |
GetTransforms
#Get a circle.
Parameters:
| type (ref StandardPickers.TransformType) | |
| transforms (out Transform[]) |
GetTriangleStrip
#Get a sequence of triangles with shared edges.
Parameters:
| triangles (out Triangle[]) |
RectangleFrom3Points
#Create a rectangle from three points.
Parameters:
| a (Point3d) | Start point of primary edge. |
| b (Point3d) | End point of primary edge. |
| c (Point3d) | Point coincident with infinite extension of edge opposite to primary edge. |
| width (double = NaN) | Optional width limit. Use double.NaN to use the 'c' point directly. |