StandardPickers

public static class 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.
public static Result GetAdjacentRectangles(
rectangles
)

GetArc

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

GetArcs

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

GetBox

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

GetCircle

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

GetCircles

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

GetConsecutiveLines

#
Gets a set of consecutive lines.
public static Result GetConsecutiveLines(
out Line[]
lines,
Array of lines.
promptFirstPoint = "Start of {0} line",
Prompt for first point pick.
promptConsecutivePoint = "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.
public static Result GetConstrainedPoints(
out Point3d[]
points
)

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

GetLine

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

GetLines

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

GetManyPoints

#
Pick many points. Either directly or by referencing point objects.
public static Result GetManyPoints(
tree
)

GetManyUvPoints

#
Pick many points. Either directly or by referencing point objects.
public static Result GetManyUvPoints(
tree
)

GetPlane

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

GetPolyline

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

GetPolylines

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

GetRectangle

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

GetRelatedCircles

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

GetRelatedSpheres

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

GetSphere

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

GetTransform

#
Get a single transform.
public static Result GetTransform(
type,
transform
)

GetTransforms

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

GetTriangle

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

GetTriangles

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

GetTriangleStrip

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

GetTube

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

RectangleFrom3Points

#
Create a rectangle from three points.
public static Rectangle3d RectangleFrom3Points(
a,
Start point of primary edge.
b,
End point of primary edge.
c,
Point coincident with infinite extension of edge opposite to primary edge.
width = NaN
Optional width limit. Use double.NaN to use the 'c' point directly.
)