LineConversions

ConversionRepository
Defines a set of conversion methods to Line.

Methods

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a linear approximation of the arc.")] public static void Convert(Arc from, out Line to)
from (Arc)
to (out Line)

Convert

#
[Merit(Merit.Plausible)] [Explanation("Creates a line along the longest box axis.")] public static void Convert(Box from, out Line to)
from (Box)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a linear approximation of the circle.")] public static void Convert(Circle from, out Line to)
from (Circle)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a linear approximation of the curve.")] public static void Convert(Curve from, out Line to)
from (Curve)
to (out Line)

Convert

#
[Merit(Merit.Plausible)] [Explanation("Creates a line representation of the referenced Rhino curve object, if it is linear.")] public static void Convert(Guid from, out Line to)
from (Guid)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a line from the origin to the point.")] public static void Convert(Point2d from, out Line to)
from (Point2d)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a line from the origin to the point.")] public static void Convert(Point3d from, out Line to)
from (Point3d)
to (out Line)

Convert

#
[Merit(Merit.Direct)] [Explanation("Creates a linear approximation of the polyline's overall path.")] public static void Convert(Polyline from, out Line to)
from (Polyline)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a line along the longest rectangle axis.")] public static void Convert(Rectangle3d from, out Line to)
from (Rectangle3d)
to (out Line)

Convert

#
[Merit(Merit.Plausible)] [Explanation("Extracts the axis line of the sphere.")] public static void Convert(Sphere from, out Line to)
from (Sphere)
to (out Line)

Convert

#
[Merit(Merit.Fair)] [Explanation("Creates a line from the origin along the vector direction.")] public static void Convert(Vector3d from, out Line to)
from (Vector3d)
to (out Line)

FitLine

#
public static Line FitLine(IEnumerable<Point3d> points)
Fit a line to a collection of points, with an adjustment for span length.
points (IEnumerable<Point3d>)Collection of at least one point. Unset point will wreak havoc.