StandardPickers

public static class StandardPickers
Provides a bunch of pickers with overridable prompts. This class extends the functionality of RhinoGet.

Methods

GetAdjacentRectangles

#
public static Result GetAdjacentRectangles(out Rectangle3d[] rectangles)
Gets a collection of coplanar rectangles with coincident edges.
rectangles (out Rectangle3d[])

GetArc

#
public static Result GetArc(out Arc arc)
Get a single arc.
arc (out Arc)

GetArcs

#
public static Result GetArcs(out Arc[] arcs)
Get a bunch of arcs.
arcs (out Arc[])

GetBox

#
public static Result GetBox(out Box box, string promptFirstPoint = null)
Gets a box using the standard Rhino picker.
box (out Box)
promptFirstPoint (string = null)

GetCircle

#
public static Result GetCircle(out Circle circle)
Get a circle.
circle (out Circle)

GetCircles

#
public static Result GetCircles(out Circle[] circles)
Get a bunch of circles.
circles (out Circle[])

GetConsecutiveLines

#
public static Result GetConsecutiveLines(out Line[] lines, string promptFirstPoint = "Start of {0} line", string promptConsecutivePoint = "End of {0} line")
Gets a set of consecutive lines.
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

#
public static Result GetConstrainedPoints(out Point3d[] points)
Get one or more points picked on possible grid vertices.
points (out Point3d[])

GetField

#
public static Result GetField(out Field field)
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).
field (out Field)

GetLine

#
public static Result GetLine(out Line line, string promptFirstPoint = "Start of line", string promptSecondPoint = "End of line", string promptMidPoint = "Middle of line")
Get a line with prompt overrides.
line (out Line)
promptFirstPoint (string = "Start of line")
promptSecondPoint (string = "End of line")
promptMidPoint (string = "Middle of line")

GetLines

#
public static Result GetLines(out Line[] lines)
Get multiple unconnected lines.
lines (out Line[])

GetManyPoints

#
public static Result GetManyPoints(out Tree<Point3d> tree)
Pick many points. Either directly or by referencing point objects.
tree (out Tree<Point3d>)

GetManyUvPoints

#
public static Result GetManyUvPoints(out Tree<Point2d> tree)
Pick many points. Either directly or by referencing point objects.
tree (out Tree<Point2d>)

GetPlane

#
public static Result GetPlane(out Plane plane)
Gets a plane using the standard picker.
plane (out Plane)

GetPolyline

#
public static Result GetPolyline(out Polyline line, string promptFirstPoint = "Start of polyline", string promptSecondPoint = "Second point of polyline", string promptThirdPoint = "Third point of polyline", string promptFourthPoint = "Fourth point of polyline")
Get a polyline with prompt overrides.
line (out Polyline)
promptFirstPoint (string = "Start of polyline")
promptSecondPoint (string = "Second point of polyline")
promptThirdPoint (string = "Third point of polyline")
promptFourthPoint (string = "Fourth point of polyline")

GetPolylines

#
public static Result GetPolylines(out Polyline[] polylines)
Get multiple unconnected polylines.
polylines (out Polyline[])

GetRectangle

#
public static Result GetRectangle(out Rectangle3d rectangle, string promptFirstPoint = null)
Gets a rectangle using the standard Rhino picker.
rectangle (out Rectangle3d)
promptFirstPoint (string = null)

GetRelatedCircles

#
public static Result GetRelatedCircles(out Circle[] circles)
Get multiple related circles.
circles (out Circle[])

GetRelatedSpheres

#
public static Result GetRelatedSpheres(out Sphere[] spheres)
Get multiple related spheres.
spheres (out Sphere[])

GetSphere

#
public static Result GetSphere(out Sphere sphere)
Get a sphere.
sphere (out Sphere)

GetTransform

#
public static Result GetTransform(ref TransformType type, out Transform transform)
Get a single transform.
type (ref StandardPickers.TransformType)
transform (out Transform)

GetTransforms

#
public static Result GetTransforms(ref TransformType type, out Transform[] transforms)
Get a circle.
type (ref StandardPickers.TransformType)
transforms (out Transform[])

GetTriangle

#
public static Result GetTriangle(out Triangle triangle, string promptFirstPoint = "Start of triangle base", string promptSecondPoint = "End of triangle base", string promptThirdPoint = "Third point of triangle")
Get a triangle with prompt overrides.
triangle (out Triangle)
promptFirstPoint (string = "Start of triangle base")
promptSecondPoint (string = "End of triangle base")
promptThirdPoint (string = "Third point of triangle")

GetTriangles

#
public static Result GetTriangles(out Triangle[] triangles)
Get multiple triangles.
triangles (out Triangle[])

GetTriangleStrip

#
public static Result GetTriangleStrip(out Triangle[] triangles)
Get a sequence of triangles with shared edges.
triangles (out Triangle[])

GetTube

#
public static Result GetTube(out Tube tube)
Get a tube.
tube (out Tube)

RectangleFrom3Points

#
public static Rectangle3d RectangleFrom3Points(Point3d a, Point3d b, Point3d c, double width = NaN)
Create a rectangle from three points.
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.