GH_Convert

public sealed class GH_Convert
Provides static converters for different data types inside Grasshopper. This class both has specific and generic converters.

Fields

PureDateTicks

#
public const long PureDateTicks = 1
Represents the total number of ticks past midnight that (by Grasshopper convention) identifies a pure date.

PureTimeTicks

#
public const long PureTimeTicks = 2
Represents the total number of ticks past a whole second that (by Grasshopper convention) identifies a pure time.

Properties

CultureTable

#
public static SortedDictionary<CultureInfo, List<string>> CultureTable { get; }
Gets the cached culture table. Do not modify this dictionary unless you know what you are doing.

Methods

BackSolveExpression

#
public static bool BackSolveExpression(string exp, string variable, double target, double minimum, double maximum, int steps, ref double t, ref double v)
Try and backsolve an expression
exp (string)Expression to back solve.
variable (string)Name of input variable.
target (double)Result to look for.
minimum (double)Lowest input to try.
maximum (double)Highest input to try.
steps (int)Number of steps per iteration.
t (ref double)Value for variable that closest approximates the target value.
v (ref double)Value of expression for the best approximation.
True on success, false on failure..

ByteArrayToCommonObject<T>

#
public static T ByteArrayToCommonObject<T>(byte[] data)
Convert an OpenNurbs compliant compressed byte array into a RhinoCommon object.
data (byte[])Byte array to de-serialize.
A RhinoCommon object instance or null on failure.

CombineDateAndTime

#
public static DateTime CombineDateAndTime(DateTime date, DateTime time)
Combine a pure date and a pure time.
date (DateTime)Must be a pure date instance.
time (DateTime)Must be a pute time instance.
A combined date and time.

CommonObjectToByteArray

#
public static byte[] CommonObjectToByteArray(CommonObject data)
Convert a RhinoCommon object into a compressed byte-array using OpenNurbs serialization.
data (CommonObject)Object to serialize.
A byte array representing the object or null on failure.

CreateDateAndTime

#
public static DateTime CreateDateAndTime(DateTime dateTime)
dateTime (DateTime)

CreatePureDate

#
public static DateTime CreatePureDate(DateTime date)
Convert a datetime structure into a pure date, i.e. remove the time portion. As per convention, this leaves 1 tick into the day in question intact.
date (DateTime)

CreatePureTime

#
public static DateTime CreatePureTime(DateTime date)
Convert a datetime structure into a pure time, i.e. remove the date portion. As per convention, this means setting the year, month and day to 1.
date (DateTime)

CreatePureTime

#
public static DateTime CreatePureTime(int hours, int minutes, int seconds)
Create a pure time instance. If the total number of hours, minutes and seconds exceeds a full year then it is not possible to create a pure time and the largest possible pure time will be returned instead.
hours (int)
minutes (int)
seconds (int)

FileToHash

#
public static Guid FileToHash(string path)
Create a hash of a file.
path (string)File to hash.
A hash of the file contents. File name and attributes are not taken into consideration.

FindRhinoObjectByNameAndType

#
public static RhinoObject FindRhinoObjectByNameAndType(string name, ObjectType type)
Search the current Rhino document for an object with a given name of a given type.
name (string)Name of object.
type (ObjectType)Geometry type of object.
An object that matches the name + type filter or null if no object could be found.

GeometryToObjRef

#
public static ObjRef GeometryToObjRef(IGH_GeometricGoo in)
Create an ObjRef for a referenced IGH_GeometricGoo. Unreferenced IGH_GeometryGoo will return null.
in (IGH_GeometricGoo)geometric goo to get an ObjRef from
An instance of an ObjRef when the goo is referenced geometry. It is up to the caller to Dispose of the objref when it is no longer needed Null for unreferenced geometry

GetBrepFromDocument

#
public static bool GetBrepFromDocument(RhinoDoc doc, Guid id, ref Brep brp)
Harvest a brep object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of brep object.
brp (ref Brep)Brep result.
True on success, false on failure.

GetClippingPlaneFromDocument

#
public static bool GetClippingPlaneFromDocument(RhinoDoc doc, Guid id, ref Plane pln)
Harvest a clipping plane surface from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of clipping plane surface.
pln (ref Plane)Plane result.
True on success, false on failure.

GetCurveFromDocument

#
public static bool GetCurveFromDocument(RhinoDoc doc, Guid id, ref Curve crv)
Harvest a curve object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of curve object.
crv (ref Curve)Curve result.
True on success, false on failure.

GetExtrusionFromDocument

#
public static bool GetExtrusionFromDocument(RhinoDoc doc, Guid id, ref Extrusion extrusion)
Harvest an extrusion object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of brep object.
extrusion (ref Extrusion)Extrusion result.
True on success, false on failure.

GetMeshFromDocument

#
public static bool GetMeshFromDocument(RhinoDoc doc, Guid id, ref Mesh msh)
Harvest a mesh object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of mesh object.
msh (ref Mesh)Mesh result.
True on success, false on failure.

GetPlaneFromDocument

#
public static bool GetPlaneFromDocument(RhinoDoc doc, Guid id, ref Plane pln)
Harvest the object frame plane from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of plane object.
pln (ref Plane)Plane result.
True on success, false on failure.

GetPointFromDocument

#
public static bool GetPointFromDocument(RhinoDoc doc, Guid id, ref Point3d pt)
Harvest a point object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of point object.
pt (ref Point3d)Point result.
True on success, false on failure.

GetSubDFromDocument

#
public static bool GetSubDFromDocument(RhinoDoc doc, Guid id, ref SubD subd)
Harvest a sub-d object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of brep object.
subd (ref SubD)Sub-D result.
True on success, false on failure.

GetSurfaceFromDocument

#
public static bool GetSurfaceFromDocument(RhinoDoc doc, Guid id, ref Surface srf)
Harvest a surface object from a Rhino document.
doc (RhinoDoc)Document to search.
id (Guid)ID of surface object.
srf (ref Surface)Surface result.
True on success, false on failure.

GetTimeKind

#
public static GH_TimeKind GetTimeKind(DateTime A, DateTime B)
Gets the kind of time implied by two System.DateTime values.
A (DateTime)First time to evaluate.
B (DateTime)Second time to evaluate.
GH_TimeKind.PureTime, GH_TimeKind.PureDate or GH_TimeKind.DateAndTime if both kinds are the same. GH_TimeKind.DateAndTime is one is a pure date and the other a DateAndTime value. GH_TimeKind.Mixed is one is a pure time and the other one is not.

GetTimeKind

#
public static GH_TimeKind GetTimeKind(DateTime time)
Gets the kind of time implied by a System.DateTime value.
time (DateTime)Time to evaluate.
GH_TimeKind.PureTime, GH_TimeKind.PureDate or GH_TimeKind.DateAndTime.

IsPureDate

#
public static bool IsPureDate(DateTime potentialDate)
Tests whether a DateTime instance represents a pure date (i.e. that the time portion is undefined). Pure dates are a Grasshopper convention, basically a pure date is 1 tick past midnight.
potentialDate (DateTime)Date to test.
True if the date is considered pure.

IsPureTime

#
public static bool IsPureTime(DateTime potentialTime)
Tests whether a DateTime instance represents a pure time (i.e. that the date portion is undefined). Pure times are a Grasshopper convention, basically a pure time is 2 ticks past any second.
potentialTime (DateTime)Date to test.
True if the time is considered undefined.

ObjRefToGeometry

#
public static IGH_GeometricGoo ObjRefToGeometry(ObjRef in)
Convert a Rhino Object Reference into Grasshopper IGH_GeometricGoo.
in (ObjRef)Object reference to convert.
An instance that implements IGH_GeometricGoo on success or false on failure.

ParseExpression

#
public static GH_Variant ParseExpression(string exp, bool recursive)
Attempts to parse an expression.
exp (string)Expression to parse.
recursive (bool)If True, and the result of the expression is a String, the result is parsed again until the result is no longer a String or until the expression fails.
The result of the (recursive) expression.

StringToDate

#
public static bool StringToDate(string text, ref DateTime date)
Convert a string representing a date into an actual date. If a pure date is possible it will be returned. If the input is a pure time this method will fail, you need to use StringToTime instead.
text (string)String to parse.
date (ref DateTime)If the string could be parsed, the pure date will be returned here.
True if string was successfully parsed, false if not.

StringToGuid

#
public static Guid StringToGuid(string text)
Create a Guid based on SHA256 hashing of a string.
text (string)Text to hash.
A guid representing the string.

StringToTime

#
public static bool StringToTime(string text, ref DateTime time)
Convert a string representing a time into an pure time. Allowed separators of hour, minute and second portions are colons, semi-colons, points and commas. Grasshopper itself uses colons when formatting times. A PM or AM symbol is allowed provided it does not border on any alphabetical characters. A time can be prefixed by a "X day[s] + " string which defines the total number of 24-hour periods to include.
text (string)String to parse.
time (ref DateTime)If the string could be parsed, the pure time will be returned here.
True if string was successfully parsed, false if not.

To_GH_ClassPrefixTypeName

#
public static string To_GH_ClassPrefixTypeName(string old_name)
Rename a Type FullName from the pre-"GH_"-prefix ea.
old_name (string)Type name (Type.FullName) to process.
The renamed typename.

ToAnnotationBase

#
public static bool ToAnnotationBase(object data, ref AnnotationBase rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.AnnotationBase.
data (object)Data to convert
rc (ref AnnotationBase)
conversion_level (GH_Conversion)Level of conversion.

ToAnnotationBase_Primary

#
public static bool ToAnnotationBase_Primary(object data, ref AnnotationBase rc)
Performs a direct cast from Rhino.Geometry.AnnotationBase or GH_AnnotationBase. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref AnnotationBase)Result of conversion
A AnnotationBase instance if successful, or Nothing on failure.

ToAnnotationBase_Secondary

#
public static bool ToAnnotationBase_Secondary(object data, ref AnnotationBase rc)
Attempts to convert other data types into an Rhino.Geometry.AnnotationBase. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref AnnotationBase)
An Rhino.Geometry.AnnotationBase instance if successful, or Nothing on failure.

ToArc

#
public static bool ToArc(object data, ref Arc rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Arc.
data (object)Data to convert
rc (ref Arc)
conversion_level (GH_Conversion)Level of conversion.

ToArc_Primary

#
public static bool ToArc_Primary(object data, ref Arc rc)
Performs a direct cast from OnArc or GH_Arc. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Arc)
An OnArc instance if successful, or Nothing on failure.

ToArc_Secondary

#
public static bool ToArc_Secondary(object data, ref Arc rc)
Attempts to convert other data types into an OnArc. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Arc)
An OnArc instance if successful, or Nothing on failure.

ToBoolean

#
public static bool ToBoolean(object data, ref bool destination, GH_Conversion conversion_level)
Convert data into Booleans.
data (object)Data to convert
destination (ref bool)
conversion_level (GH_Conversion)Level of conversion.

ToBoolean_Primary

#
public static bool ToBoolean_Primary(object data, ref bool destination)
Performs a direct cast from boolean or GH_Boolean.
data (object)Data to convert.
destination (ref bool)Target for value assignment.
True on success, false on failure.

ToBoolean_Secondary

#
public static bool ToBoolean_Secondary(object data, ref bool destination)
Performs indirect casts from other data types into booleans.
Remarks: This converted relies on ToInt32_Secondary()
data (object)Data to convert.
destination (ref bool)Target for value assignment.
True on success, false on failure.

ToBoundingBox_Primary

#
public static bool ToBoundingBox_Primary(object data, ref BoundingBox rc)
Performs a direct cast from OnBoundingBox. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref BoundingBox)
An OnBoundingBox instance if successful, or Nothing on failure.

ToBox_Primary

#
public static bool ToBox_Primary(object data, ref Box rc)
Performs a direct cast from Box. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Box)
An OnBoundingBox instance if successful, or Nothing on failure.

ToBrep

#
public static bool ToBrep(object data, ref Brep rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Brep.
data (object)Data to convert
rc (ref Brep)
conversion_level (GH_Conversion)Level of conversion.

ToBrep_Primary

#
public static bool ToBrep_Primary(object data, ref Brep rc)
Performs a direct cast from OnBrep or GH_Brep. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Brep)
An OnBrep instance if successful, or Nothing on failure.

ToBrep_Secondary

#
public static bool ToBrep_Secondary(object data, ref Brep rc)
Attempts to convert other data types into an OnBrep. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Brep)
An OnBrep instance if successful, or Nothing on failure.

ToCircle

#
public static bool ToCircle(object data, ref Circle rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Circle.
data (object)Data to convert
rc (ref Circle)
conversion_level (GH_Conversion)Level of conversion.

ToCircle_Primary

#
public static bool ToCircle_Primary(object data, ref Circle rc)
Performs a direct cast from OnCircle or GH_Circle. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Circle)
An OnCircle instance if successful, or Nothing on failure.

ToCircle_Secondary

#
public static bool ToCircle_Secondary(object data, ref Circle rc)
Attempts to convert other data types into an OnCircle. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Circle)
An OnCircle instance if successful, or Nothing on failure.

ToClippingPlane

#
public static bool ToClippingPlane(object data, ref ClippingPlaneSurface rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.ClippingPlaneSurface.
data (object)Data to convert
rc (ref ClippingPlaneSurface)
conversion_level (GH_Conversion)Level of conversion.

ToClippingPlane_Primary

#
public static bool ToClippingPlane_Primary(object data, ref ClippingPlaneSurface rc)
Performs a direct cast from Rhino.Geometry.ClippingPlaneSurface or GH_ClippingPlane. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref ClippingPlaneSurface)Result of conversion
A TextDot instance if successful, or Nothing on failure.

ToClippingPlane_Secondary

#
public static bool ToClippingPlane_Secondary(object data, ref ClippingPlaneSurface rc)
Attempts to convert other data types into an Rhino.Geometry.ClippingPlaneSurface. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref ClippingPlaneSurface)
An Rhino.Geometry.ClippingPlaneSurface instance if successful, or Nothing on failure.

ToColor

#
public static bool ToColor(object data, ref Color destination, GH_Conversion conversion_level)
Convert data into Colors.
data (object)Data to convert
destination (ref Color)
conversion_level (GH_Conversion)Level of conversion.

ToColor_Primary

#
public static bool ToColor_Primary(object data, ref Color destination)
Performs a direct cast from Drawing.Color, GH_Color and OnColor.
data (object)Data to convert.
destination (ref Color)Target for value assignment.
True on success, false on failure.

ToColor_Secondary

#
public static bool ToColor_Secondary(object data, ref Color destination)
Performs indirect casts from other data types into Colors.
data (object)Data to convert.
destination (ref Color)Target for value assignment.
True on success, false on failure.

ToComplex

#
public static bool ToComplex(object data, ref Complex destination, GH_Conversion conversion_level)
Convert data into Complex.
data (object)Data to convert
destination (ref Complex)
conversion_level (GH_Conversion)Level of conversion.

ToComplex_Primary

#
public static bool ToComplex_Primary(object data, ref Complex destination)
Performs a direct cast from Complex or GH_ComplexNumber
data (object)Data to convert.
destination (ref Complex)Target for value assignment.
True on success, false on failure.

ToComplex_Secondary

#
public static bool ToComplex_Secondary(object data, ref Complex destination)
Performs indirect casts from other data types into Complex.
data (object)Data to convert.
destination (ref Complex)Target for value assignment.
True on success, false on failure.

ToCoordinates

#
public static bool ToCoordinates(object data, ref double x, ref double y, ref double z, ref double w)
data (object)
x (ref double)
y (ref double)
z (ref double)
w (ref double)

ToCulture

#
public static bool ToCulture(object data, ref CultureInfo destination, GH_Conversion conversion_level)
Convert data into Colors.
data (object)Data to convert.
destination (ref CultureInfo)
conversion_level (GH_Conversion)Level of conversion.

ToCulture_Primary

#
public static bool ToCulture_Primary(object data, ref CultureInfo destination)
Performs a direct cast from System.Globalization.CultureInfo and GH_Culture.
data (object)Data to convert.
destination (ref CultureInfo)Target for value assignment.
True on success, false on failure.

ToCulture_Secondary

#
public static bool ToCulture_Secondary(object data, ref CultureInfo destination)
Performs indirect casts from other data types into CultureInfo.
data (object)Data to convert.
destination (ref CultureInfo)Target for value assignment.
True on success, false on failure.

ToCurve

#
public static bool ToCurve(object data, ref Curve rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Curve.
data (object)Data to convert
rc (ref Curve)
conversion_level (GH_Conversion)Level of conversion.

ToCurve_Primary

#
public static bool ToCurve_Primary(object data, ref Curve rc)
Performs a direct cast from OnCurve or GH_Curve. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Curve)
An OnCurve instance if successful, or Nothing on failure.

ToCurve_Secondary

#
public static bool ToCurve_Secondary(object data, ref Curve rc)
Attempts to convert other data types into an IOnCurve. Data is not quaranteed to be duplicated.
data (object)Data to convert.
rc (ref Curve)
True on success, false on failure.

ToDate

#
public static bool ToDate(object data, ref DateTime destination, GH_Conversion conversion_level)
Convert data into Dates.
data (object)Data to convert
destination (ref DateTime)
conversion_level (GH_Conversion)Level of conversion.

ToDate_Primary

#
public static bool ToDate_Primary(object data, ref DateTime destination)
Performs a direct cast from DateTime or GH_DateTime.
data (object)Data to convert.
destination (ref DateTime)Target for value assignment.
True on success, false on failure.

ToDate_Secondary

#
public static bool ToDate_Secondary(object data, ref DateTime destination)
Performs indirect casts from other data types into DateTime constructs.
data (object)Data to convert.
destination (ref DateTime)Target for value assignment.
True on success, false on failure.

ToDimension

#
public static bool ToDimension(object data, ref Dimension rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Dimension.
data (object)Data to convert
rc (ref Dimension)
conversion_level (GH_Conversion)Level of conversion.

ToDimension_Primary

#
public static bool ToDimension_Primary(object data, ref Dimension rc)
Performs a direct cast from Rhino.Geometry.Dimension or GH_Dimension. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref Dimension)Result of conversion
A Dimension instance if successful, or Nothing on failure.

ToDimension_Secondary

#
public static bool ToDimension_Secondary(object data, ref Dimension rc)
Attempts to convert other data types into an Rhino.Geometry.Dimension. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Dimension)
An Rhino.Geometry.Dimension instance if successful, or Nothing on failure.

ToDouble

#
public static bool ToDouble(object data, ref double destination, GH_Conversion conversion_level)
Convert data into Doubles.
data (object)Data to convert
destination (ref double)
conversion_level (GH_Conversion)Level of conversion.

ToDouble_Primary

#
public static bool ToDouble_Primary(object data, ref double destination)
Performs a direct cast from Double or GH_Number.
data (object)Data to convert.
destination (ref double)Target for value assignment.
True on success, false on failure.

ToDouble_Secondary

#
public static bool ToDouble_Secondary(object data, ref double destination)
Performs indirect casts from other data types into Doubles.
data (object)Data to convert.
destination (ref double)Target for value assignment.
True on success, false on failure.

ToExtrusion

#
public static bool ToExtrusion(object data, ref Extrusion rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Brep.
data (object)Data to convert
rc (ref Extrusion)
conversion_level (GH_Conversion)Level of conversion.

ToExtrusion_Primary

#
public static bool ToExtrusion_Primary(object data, ref Extrusion rc)
Performs a direct cast from Rhino.Geometry.Extrusion or GH_Extrusion. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Extrusion)Result of conversion
An Extrusion instance if successful, or Nothing on failure.

ToExtrusion_Secondary

#
public static bool ToExtrusion_Secondary(object data, ref Extrusion rc)
Attempts to convert other data types into a Extrusion. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Extrusion)
A Extrusion instance if successful, or Nothing on failure.

ToGeometricGoo

#
public static IGH_GeometricGoo ToGeometricGoo(object data)
Converts an object into GeometricGoo. Does not duplicate the data if a lossless conversion is possible.
data (object)Data to convert.
An instance that implements IGH_GeometricGoo on success or null on failure.

ToGeometryBase

#
public static GeometryBase ToGeometryBase(object data)
Attempt to convert an object into a Rhino.Geometry.GeometryBase instance.
data (object)Data to convert.
A GeometryBase instance on success or null on failure.

ToGHAngularDimension

#
public static bool ToGHAngularDimension(object data, GH_Conversion conversion_level, ref GH_AngularDimension target)
Convert data into GH_AngularDimension.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_AngularDimension)Destination of conversion. If Null, a new instance will be created.

ToGHAngularDimension_Primary

#
public static bool ToGHAngularDimension_Primary(object data, ref GH_AngularDimension target)
Converts similar data into a GH_AngularDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_AngularDimension)Target instance. If null, a new GH_AngularDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHAngularDimension_Secondary

#
public static bool ToGHAngularDimension_Secondary(object data, ref GH_AngularDimension target)
Converts similar data into a GH_AngularDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_AngularDimension)Target instance. If null, a new GH_AngularDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHAnnotationBase

#
public static bool ToGHAnnotationBase(object data, GH_Conversion conversion_level, ref GH_AnnotationBase target)
Convert data into GH_AnnotationBase.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_AnnotationBase)Destination of conversion. If Null, a new instance will be created.

ToGHArc

#
public static bool ToGHArc(object data, GH_Conversion conversion_level, ref GH_Arc target)
Convert data into GH_Arcs.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Arc)Destination of conversion. If Null, a new instance will be created.

ToGHArc_Primary

#
public static bool ToGHArc_Primary(object data, ref GH_Arc target)
Converts similar data into a GH_Arc instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Arc)Target instance. If null, a new GH_Arc will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHArc_Secondary

#
public static bool ToGHArc_Secondary(object data, ref GH_Arc target)
Converts similar data into a GH_Arc instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Arc)Target instance. If null, a new GH_Arc will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBoolean

#
public static bool ToGHBoolean(object data, GH_Conversion conversion_level, ref GH_Boolean target)
Convert data into GH_Boolean.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Boolean)Destination of conversion. If Null, a new instance will be created.

ToGHBoolean_Primary

#
public static bool ToGHBoolean_Primary(object data, ref GH_Boolean target)
Converts similar data into a GH_Boolean instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Boolean)Target instance. If null, a new GH_Boolean will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBoolean_Secondary

#
public static bool ToGHBoolean_Secondary(object data, ref GH_Boolean target)
Converts similar data into a GH_Boolean instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Boolean)Target instance. If null, a new GH_Boolean will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBox

#
public static bool ToGHBox(object data, GH_Conversion conversion_level, ref GH_Box target)
Convert data into GH_Boxes.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Box)Destination of conversion. If Null, a new instance will be created.

ToGHBox_Primary

#
public static bool ToGHBox_Primary(object data, ref GH_Box target)
Converts similar data into a GH_Box instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Box)Target instance. If null, a new GH_Box will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBox_Secondary

#
public static bool ToGHBox_Secondary(object data, ref GH_Box target)
Converts similar data into a GH_Box instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Box)Target instance. If null, a new GH_Box will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBrep

#
public static bool ToGHBrep(object data, GH_Conversion conversion_level, ref GH_Brep target)
Convert data into GH_Breps.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Brep)Destination of conversion. If Null, a new instance will be created.

ToGHBrep_Primary

#
public static bool ToGHBrep_Primary(object data, ref GH_Brep target)
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Brep)Target instance. If null, a new GH_Brep will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHBrep_Secondary

#
public static bool ToGHBrep_Secondary(object data, ref GH_Brep target)
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Brep)Target instance. If null, a new GH_Brep will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCentermark

#
public static bool ToGHCentermark(object data, GH_Conversion conversion_level, ref GH_Centermark target)
Convert data into GH_Centermark.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Centermark)Destination of conversion. If Null, a new instance will be created.

ToGHCentermark_Primary

#
public static bool ToGHCentermark_Primary(object data, ref GH_Centermark target)
Converts similar data into a GH_Centermark instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Centermark)Target instance. If null, a new GH_Centermark will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCentermark_Secondary

#
public static bool ToGHCentermark_Secondary(object data, ref GH_Centermark target)
Converts similar data into a GH_Centermark instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Centermark)Target instance. If null, a new GH_Centermark will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCircle

#
public static bool ToGHCircle(object data, GH_Conversion conversion_level, ref GH_Circle target)
Convert data into GH_Circles.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Circle)Destination of conversion. If Null, a new instance will be created.

ToGHCircle_Primary

#
public static bool ToGHCircle_Primary(object data, ref GH_Circle target)
Converts similar data into a GH_Circle instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Circle)Target instance. If null, a new GH_Circle will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCircle_Secondary

#
public static bool ToGHCircle_Secondary(object data, ref GH_Circle target)
Converts similar data into a GH_Circle instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Circle)Target instance. If null, a new GH_Circle will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHClippingPlane

#
public static bool ToGHClippingPlane(object data, GH_Conversion conversion_level, ref GH_ClippingPlane target)
Convert data into GH_ClippingPlane.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_ClippingPlane)Destination of conversion. If Null, a new instance will be created.

ToGHClippingPlane_Primary

#
public static bool ToGHClippingPlane_Primary(object data, ref GH_ClippingPlane target)
Converts similar data into a GH_ClippingPlane instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_ClippingPlane)Target instance. If null, a new GH_ClippingPlane will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHClippingPlane_Secondary

#
public static bool ToGHClippingPlane_Secondary(object data, ref GH_ClippingPlane target)
Converts similar data into a GH_Clipping instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_ClippingPlane)Target instance. If null, a new GH_ClippingPlane will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHColour

#
public static bool ToGHColour(object data, GH_Conversion conversion_level, ref GH_Colour target)
Convert data into GH_Colour.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Colour)Destination of conversion. If Null, a new instance will be created.

ToGHColour_Primary

#
public static bool ToGHColour_Primary(object data, ref GH_Colour target)
Converts similar data into a GH_Colour instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Colour)Target instance. If null, a new GH_Colour will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHColour_Secondary

#
public static bool ToGHColour_Secondary(object data, ref GH_Colour target)
Converts similar data into a GH_Colour instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Colour)Target instance. If null, a new GH_Colour will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHComplexNumber

#
public static bool ToGHComplexNumber(object data, GH_Conversion conversion_level, ref GH_ComplexNumber target)
Convert data into GH_ComplexNumber.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_ComplexNumber)Destination of conversion. If Null, a new instance will be created.

ToGHComplexNumber_Primary

#
public static bool ToGHComplexNumber_Primary(object data, ref GH_ComplexNumber target)
Converts similar data into a GH_ComplexNumber instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_ComplexNumber)Target instance. If null, a new GH_ComplexNumber will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHComplexNumber_Secondary

#
public static bool ToGHComplexNumber_Secondary(object data, ref GH_ComplexNumber target)
Converts similar data into a GH_ComplexNumber instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_ComplexNumber)Target instance. If null, a new GH_ComplexNumber will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCurve

#
public static bool ToGHCurve(object data, GH_Conversion conversion_level, ref GH_Curve target)
Convert data into GH_Curves.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Curve)Destination of conversion. If Null, a new instance will be created.

ToGHCurve_Primary

#
public static bool ToGHCurve_Primary(object data, ref GH_Curve target)
Converts similar data into a GH_Curve instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Curve)Target instance. If null, a new GH_Line will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHCurve_Secondary

#
public static bool ToGHCurve_Secondary(object data, ref GH_Curve target)
Converts similar data into a GH_Curve instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Curve)Target instance. If null, a new GH_Line will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHDimension

#
public static bool ToGHDimension(object data, GH_Conversion conversion_level, ref GH_Dimension target)
Convert data into GH_Dimension.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Dimension)Destination of conversion. If Null, a new instance will be created.

ToGHExtrusion

#
public static bool ToGHExtrusion(object data, GH_Conversion conversion_level, ref GH_Extrusion target)
Convert data into GH_Extrusion.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Extrusion)Destination of conversion. If Null, a new instance will be created.

ToGHExtrusion_Primary

#
public static bool ToGHExtrusion_Primary(object data, ref GH_Extrusion target)
Converts similar data into a GH_Extrusion instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Extrusion)Target instance. If null, a new GH_Brep will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHExtrusion_Secondary

#
public static bool ToGHExtrusion_Secondary(object data, ref GH_Extrusion target)
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Extrusion)Target instance. If null, a new GH_Brep will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHGuid

#
public static bool ToGHGuid(object data, GH_Conversion conversion_level, ref GH_Guid target)
Convert data into GH_Guid.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Guid)Destination of conversion. If Null, a new instance will be created.

ToGHGuid_Primary

#
public static bool ToGHGuid_Primary(object data, ref GH_Guid target)
Converts similar data into a GH_Guid instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Guid)Target instance. If null, a new GH_Guid will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHGuid_Secondary

#
public static bool ToGHGuid_Secondary(object data, ref GH_Guid target)
Converts similar data into a GH_Guid instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Guid)Target instance. If null, a new GH_Guid will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHHatch

#
public static bool ToGHHatch(object data, GH_Conversion conversion_level, ref GH_Hatch target)
Convert data into GH_Hatch.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Hatch)Destination of conversion. If Null, a new instance will be created.

ToGHHatch_Primary

#
public static bool ToGHHatch_Primary(object data, ref GH_Hatch target)
Converts similar data into a GH_Hatch instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Hatch)Target instance. If null, a new GH_Hatch will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHHatch_Secondary

#
public static bool ToGHHatch_Secondary(object data, ref GH_Hatch target)
Converts similar data into a GH_Hatch instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Hatch)Target instance. If null, a new GH_Hatch will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInstanceReference

#
public static bool ToGHInstanceReference(object data, GH_Conversion conversion_level, ref GH_InstanceReference target)
Convert data into GH_InstanceReference.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_InstanceReference)Destination of conversion. If Null, a new instance will be created.

ToGHInstanceReference_Primary

#
public static bool ToGHInstanceReference_Primary(object data, ref GH_InstanceReference target)
Converts similar data into a GH_InstanceReference instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_InstanceReference)Target instance. If null, a new GH_InstanceReference will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInstanceReference_Secondary

#
public static bool ToGHInstanceReference_Secondary(object data, ref GH_InstanceReference target)
Converts similar data into a GH_InstanceReference instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_InstanceReference)Target instance. If null, a new GH_InstanceReference will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInteger

#
public static bool ToGHInteger(object data, GH_Conversion conversion_level, ref GH_Integer target)
Convert data into GH_Integer.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Integer)Destination of conversion. If Null, a new instance will be created.

ToGHInteger_Primary

#
public static bool ToGHInteger_Primary(object data, ref GH_Integer target)
Converts similar data into a GH_Integer instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Integer)Target instance. If null, a new GH_Integer will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInteger_Secondary

#
public static bool ToGHInteger_Secondary(object data, ref GH_Integer target)
Converts similar data into a GH_Integer instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Integer)Target instance. If null, a new GH_Integer will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInterval

#
public static bool ToGHInterval(object data, GH_Conversion conversion_level, ref GH_Interval target)
Convert data into GH_Intervals.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Interval)Destination of conversion. If Null, a new instance will be created.

ToGHInterval_Primary

#
public static bool ToGHInterval_Primary(object data, ref GH_Interval target)
Converts similar data into a GH_Interval instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Interval)Target instance. If null, a new GH_Interval will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInterval_Secondary

#
public static bool ToGHInterval_Secondary(object data, ref GH_Interval target)
Converts similar data into a GH_Interval instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Interval)Target instance. If null, a new GH_Interval will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInterval2D

#
public static bool ToGHInterval2D(object data, GH_Conversion conversion_level, ref GH_Interval2D target)
Convert data into GH_Interval2Ds.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Interval2D)Destination of conversion. If Null, a new instance will be created.

ToGHInterval2D_Primary

#
public static bool ToGHInterval2D_Primary(object data, ref GH_Interval2D target)
Converts similar data into a GH_Interval2D instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Interval2D)Target instance. If null, a new GH_Interval2D will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHInterval2D_Secondary

#
public static bool ToGHInterval2D_Secondary(object data, ref GH_Interval2D target)
Converts similar data into a GH_Interval2D instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Interval2D)Target instance. If null, a new GH_Interval2D will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLeader

#
public static bool ToGHLeader(object data, GH_Conversion conversion_level, ref GH_Leader target)
Convert data into GH_Leader.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Leader)Destination of conversion. If Null, a new instance will be created.

ToGHLeader_Primary

#
public static bool ToGHLeader_Primary(object data, ref GH_Leader target)
Converts similar data into a GH_Leader instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Leader)Target instance. If null, a new GH_Leader will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLeader_Secondary

#
public static bool ToGHLeader_Secondary(object data, ref GH_Leader target)
Converts similar data into a GH_Leader instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Leader)Target instance. If null, a new GH_Leader will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLight

#
public static bool ToGHLight(object data, GH_Conversion conversion_level, ref GH_Light target)
Convert data into GH_Light.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Light)Destination of conversion. If Null, a new instance will be created.

ToGHLight_Primary

#
public static bool ToGHLight_Primary(object data, ref GH_Light target)
Converts similar data into a GH_Light instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Light)Target instance. If null, a new GH_Light will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLight_Secondary

#
public static bool ToGHLight_Secondary(object data, ref GH_Light target)
Converts similar data into a GH_Light instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Light)Target instance. If null, a new GH_Light will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLine

#
public static bool ToGHLine(object data, GH_Conversion conversion_level, ref GH_Line target)
Convert data into GH_Lines.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Line)Destination of conversion. If Null, a new instance will be created.

ToGHLine_Primary

#
public static bool ToGHLine_Primary(object data, ref GH_Line target)
Converts similar data into a GH_Line instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Line)Target instance. If null, a new GH_Line will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLine_Secondary

#
public static bool ToGHLine_Secondary(object data, ref GH_Line target)
Converts similar data into a GH_Line instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Line)Target instance. If null, a new GH_Line will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLinearDimension

#
public static bool ToGHLinearDimension(object data, GH_Conversion conversion_level, ref GH_LinearDimension target)
Convert data into GH_LinearDimension.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_LinearDimension)Destination of conversion. If Null, a new instance will be created.

ToGHLinearDimension_Primary

#
public static bool ToGHLinearDimension_Primary(object data, ref GH_LinearDimension target)
Converts similar data into a GH_LinearDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_LinearDimension)Target instance. If null, a new GH_LinearDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHLinearDimension_Secondary

#
public static bool ToGHLinearDimension_Secondary(object data, ref GH_LinearDimension target)
Converts similar data into a GH_LinearDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_LinearDimension)Target instance. If null, a new GH_LinearDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMatrix

#
public static bool ToGHMatrix(object data, GH_Conversion conversion_level, ref GH_Matrix target)
Convert data into ToGHMatrix.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Matrix)Destination of conversion. If Null, a new instance will be created.

ToGHMatrix_Primary

#
public static bool ToGHMatrix_Primary(object data, ref GH_Matrix target)
Converts similar data into a GH_Matrix instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Matrix)Target instance. If null, a new GH_Matrix will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMatrix_Secondary

#
public static bool ToGHMatrix_Secondary(object data, ref GH_Matrix target)
Converts similar data into a GH_Matrix instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Matrix)Target instance. If null, a new GH_Matrix will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMesh

#
public static bool ToGHMesh(object data, GH_Conversion conversion_level, ref GH_Mesh target)
Convert data into GH_Meshs.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Mesh)Destination of conversion. If Null, a new instance will be created.

ToGHMesh_Primary

#
public static bool ToGHMesh_Primary(object data, ref GH_Mesh target)
Converts similar data into a GH_Mesh instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Mesh)Target instance. If null, a new GH_Mesh will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMesh_Secondary

#
public static bool ToGHMesh_Secondary(object data, ref GH_Mesh target)
Converts similar data into a GH_Mesh instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Mesh)Target instance. If null, a new GH_Mesh will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMeshFace

#
public static bool ToGHMeshFace(object data, GH_Conversion conversion_level, ref GH_MeshFace target)
Convert data into GH_MeshFaces.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_MeshFace)Destination of conversion. If Null, a new instance will be created.

ToGHMeshFace_Primary

#
public static bool ToGHMeshFace_Primary(object data, ref GH_MeshFace target)
Converts similar data into a GH_MeshFace instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_MeshFace)Target instance. If null, a new GH_MeshFace will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHMeshFace_Secondary

#
public static bool ToGHMeshFace_Secondary(object data, ref GH_MeshFace target)
Converts similar data into a GH_MeshFace instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_MeshFace)Target instance. If null, a new GH_MeshFace will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHNumber

#
public static bool ToGHNumber(object data, GH_Conversion conversion_level, ref GH_Number target)
Convert data into GH_Number.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Number)Destination of conversion. If Null, a new instance will be created.

ToGHNumber_Primary

#
public static bool ToGHNumber_Primary(object data, ref GH_Number target)
Converts similar data into a GH_Number instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Number)Target instance. If null, a new GH_Number will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHNumber_Secondary

#
public static bool ToGHNumber_Secondary(object data, ref GH_Number target)
Converts similar data into a GH_Number instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Number)Target instance. If null, a new GH_Number will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHOrdinateDimension

#
public static bool ToGHOrdinateDimension(object data, GH_Conversion conversion_level, ref GH_OrdinateDimension target)
Convert data into GH_OrdinateDimension.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_OrdinateDimension)Destination of conversion. If Null, a new instance will be created.

ToGHOrdinateDimension_Primary

#
public static bool ToGHOrdinateDimension_Primary(object data, ref GH_OrdinateDimension target)
Converts similar data into a GH_OrdinateDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_OrdinateDimension)Target instance. If null, a new GH_OrdinateDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHOrdinateDimension_Secondary

#
public static bool ToGHOrdinateDimension_Secondary(object data, ref GH_OrdinateDimension target)
Converts similar data into a GH_OrdinateDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_OrdinateDimension)Target instance. If null, a new GH_OrdinateDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPlane

#
public static bool ToGHPlane(object data, GH_Conversion conversion_level, ref GH_Plane target)
Convert data into GH_Planes.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Plane)Destination of conversion. If Null, a new instance will be created.

ToGHPlane_Primary

#
public static bool ToGHPlane_Primary(object data, ref GH_Plane target)
Converts similar data into a GH_Plane instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Plane)Target instance. If null, a new GH_Plane will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPlane_Secondary

#
public static bool ToGHPlane_Secondary(object data, ref GH_Plane target)
Converts similar data into a GH_Plane instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Plane)Target instance. If null, a new GH_Plane will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPoint

#
public static bool ToGHPoint(object data, GH_Conversion conversion_level, ref GH_Point target)
Convert data into GH_Points.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Point)Destination of conversion. If Null, a new instance will be created.

ToGHPoint_Primary

#
public static bool ToGHPoint_Primary(object data, ref GH_Point target)
Converts similar data into a GH_Point instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Point)Target instance. If null, a new GH_Point will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPoint_Secondary

#
public static bool ToGHPoint_Secondary(object data, ref GH_Point target)
Converts similar data into a GH_Point instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Point)Target instance. If null, a new GH_Point will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPointCloud

#
public static bool ToGHPointCloud(object data, GH_Conversion conversion_level, ref GH_PointCloud target)
Convert data into GH_PointCloud.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_PointCloud)Destination of conversion. If Null, a new instance will be created.

ToGHPointCloud_Primary

#
public static bool ToGHPointCloud_Primary(object data, ref GH_PointCloud target)
Converts similar data into a GH_PointCloud instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_PointCloud)Target instance. If null, a new GH_PointCloud will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHPointCloud_Secondary

#
public static bool ToGHPointCloud_Secondary(object data, ref GH_PointCloud target)
Converts similar data into a GH_PointCloud instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_PointCloud)Target instance. If null, a new GH_PointCloud will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHRadialDimension

#
public static bool ToGHRadialDimension(object data, GH_Conversion conversion_level, ref GH_RadialDimension target)
Convert data into GH_RadialDimension.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_RadialDimension)Destination of conversion. If Null, a new instance will be created.

ToGHRadialDimension_Primary

#
public static bool ToGHRadialDimension_Primary(object data, ref GH_RadialDimension target)
Converts similar data into a GH_RadialDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_RadialDimension)Target instance. If null, a new GH_RadialDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHRadialDimension_Secondary

#
public static bool ToGHRadialDimension_Secondary(object data, ref GH_RadialDimension target)
Converts similar data into a GH_RadialDimension instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_RadialDimension)Target instance. If null, a new GH_RadialDimension will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHRectangle

#
public static bool ToGHRectangle(object data, GH_Conversion conversion_level, ref GH_Rectangle target)
Convert data into GH_Rectangles.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Rectangle)Destination of conversion. If Null, a new instance will be created.

ToGHRectangle_Primary

#
public static bool ToGHRectangle_Primary(object data, ref GH_Rectangle target)
Converts similar data into a GH_Rectangle instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Rectangle)Target instance. If null, a new GH_Rectangle will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHRectangle_Secondary

#
public static bool ToGHRectangle_Secondary(object data, ref GH_Rectangle target)
Converts similar data into a GH_Rectangle instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Rectangle)Target instance. If null, a new GH_Rectangle will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHString

#
public static bool ToGHString(object data, GH_Conversion conversion_level, ref GH_String target)
Convert data into GH_String.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_String)Destination of conversion. If Null, a new instance will be created.

ToGHString_Primary

#
public static bool ToGHString_Primary(object data, ref GH_String target)
Converts similar data into a GH_String instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_String)Target instance. If null, a new GH_String will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHString_Secondary

#
public static bool ToGHString_Secondary(object data, ref GH_String target)
Converts similar data into a GH_String instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_String)Target instance. If null, a new GH_String will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHSubD

#
public static bool ToGHSubD(object data, GH_Conversion conversion_level, ref GH_SubD target)
Convert data into GH_SubDs.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_SubD)Destination of conversion. If Null, a new instance will be created.

ToGHSubD_Primary

#
public static bool ToGHSubD_Primary(object data, ref GH_SubD target)
Converts similar data into a GH_SubD instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_SubD)Target instance. If null, a new GH_Brep will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHSubD_Secondary

#
public static bool ToGHSubD_Secondary(object data, ref GH_SubD target)
Converts similar data into a GH_SubD instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_SubD)Target instance. If null, a new GH_SubD will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHSurface

#
public static bool ToGHSurface(object data, GH_Conversion conversion_level, ref GH_Surface target)
Convert data into GH_Surfaces.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Surface)Destination of conversion. If Null, a new instance will be created.

ToGHSurface_Primary

#
public static bool ToGHSurface_Primary(object data, ref GH_Surface target)
Converts similar data into a GH_Surface instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Surface)Target instance. If null, a new GH_Surface will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHSurface_Secondary

#
public static bool ToGHSurface_Secondary(object data, ref GH_Surface target)
Converts similar data into a GH_Surface instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Surface)Target instance. If null, a new GH_Surface will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTextDot

#
public static bool ToGHTextDot(object data, GH_Conversion conversion_level, ref GH_TextDot target)
Convert data into GH_TextDot.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_TextDot)Destination of conversion. If Null, a new instance will be created.

ToGHTextDot_Primary

#
public static bool ToGHTextDot_Primary(object data, ref GH_TextDot target)
Converts similar data into a GH_TextDot instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_TextDot)Target instance. If null, a new GH_TextDot will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTextDot_Secondary

#
public static bool ToGHTextDot_Secondary(object data, ref GH_TextDot target)
Converts similar data into a GH_TextDot instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_TextDot)Target instance. If null, a new GH_TextDot will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTextEntity

#
public static bool ToGHTextEntity(object data, GH_Conversion conversion_level, ref GH_TextEntity target)
Convert data into GH_TextEntity.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_TextEntity)Destination of conversion. If Null, a new instance will be created.

ToGHTextEntity_Primary

#
public static bool ToGHTextEntity_Primary(object data, ref GH_TextEntity target)
Converts similar data into a GH_TextEntity instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_TextEntity)Target instance. If null, a new GH_TextEntity will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTextEntity_Secondary

#
public static bool ToGHTextEntity_Secondary(object data, ref GH_TextEntity target)
Converts similar data into a GH_TextEntity instance. Data is not guaranteed to be duplicated.
data (object)Data to convert
target (ref GH_TextEntity)Target instance. If null, a new GH_TextEntity will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTime

#
public static bool ToGHTime(object data, GH_Conversion conversion_level, ref GH_Time target)
Convert data into GH_Time.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Time)Destination of conversion. If Null, a new instance will be created.

ToGHTime_Primary

#
public static bool ToGHTime_Primary(object data, ref GH_Time target)
Converts similar data into a GH_Time instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Time)Target instance. If null, a new GH_Time will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHTime_Secondary

#
public static bool ToGHTime_Secondary(object data, ref GH_Time target)
Converts similar data into a GH_Time instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Time)Target instance. If null, a new GH_Time will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHVector

#
public static bool ToGHVector(object data, GH_Conversion conversion_level, ref GH_Vector target)
Convert data into GH_Vectors.
data (object)Data to convert
conversion_level (GH_Conversion)Level of conversion.
target (ref GH_Vector)Destination of conversion. If Null, a new instance will be created.

ToGHVector_Primary

#
public static bool ToGHVector_Primary(object data, ref GH_Vector target)
Converts similar data into a GH_Vector instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Vector)Target instance. If null, a new GH_Vector will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGHVector_Secondary

#
public static bool ToGHVector_Secondary(object data, ref GH_Vector target)
Converts similar data into a GH_Vector instance. Data is not quaranteed to be duplicated.
data (object)Data to convert
target (ref GH_Vector)Target instance. If null, a new GH_Vector will be constructed. If not null, the instance values will be set.
True on success, False on failure.

ToGoo

#
public static IGH_Goo ToGoo(object data)
Converts an object into Goo. Does not duplicate the data if a lossless conversion is possible.
Remarks: This function calls a whole sh*tload of other conversion functions. IT IS SLOW.
data (object)Data to convert.
IGH_Goo instance. If Data is not a null reference this function ALWAYS returns a GOO instance.

ToGUID

#
public static bool ToGUID(object data, ref Guid destination, GH_Conversion conversion_level)
Convert data into Guids.
data (object)Data to convert
destination (ref Guid)
conversion_level (GH_Conversion)Level of conversion.

ToGUID_Primary

#
public static bool ToGUID_Primary(object data, ref Guid destination)
Performs a direct cast from Guid, GH_Guid, String and GH_String.
data (object)Data to convert.
destination (ref Guid)Target for value assignment.
True on success, false on failure.

ToGUID_Secondary

#
public static bool ToGUID_Secondary(object data, ref Guid destination)
Performs indirect casts from other data types into Guids.
data (object)Data to convert.
destination (ref Guid)Target for value assignment.
True on success, false on failure.

ToHatch

#
public static bool ToHatch(object data, ref Hatch rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Hatch.
data (object)Data to convert
rc (ref Hatch)
conversion_level (GH_Conversion)Level of conversion.

ToHatch_Primary

#
public static bool ToHatch_Primary(object data, ref Hatch rc)
Performs a direct cast from Rhino.Geometry.Hatch or GH_Hatch. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref Hatch)Result of conversion
A Hatch instance if successful, or Nothing on failure.

ToHatch_Secondary

#
public static bool ToHatch_Secondary(object data, ref Hatch rc)
Attempts to convert other data types into an Rhino.Geometry.Hatch. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Hatch)
An Rhino.Geometry.Hatch instance if successful, or Nothing on failure.

ToInt32

#
public static bool ToInt32(object data, ref int destination, GH_Conversion conversion_level)
Convert data into Int32s.
data (object)Data to convert
destination (ref int)
conversion_level (GH_Conversion)Level of conversion.

ToInt32_Primary

#
public static bool ToInt32_Primary(object data, ref int destination)
Performs a direct cast from Int32 or GH_Integer.
data (object)Data to convert.
destination (ref int)Target for value assignment.
True on success, false on failure.

ToInt32_Secondary

#
public static bool ToInt32_Secondary(object data, ref int destination)
Performs indirect casts from other data types into Integers.
data (object)Data to convert.
destination (ref int)Target for value assignment.
True on success, false on failure.

ToInterval

#
public static bool ToInterval(object data, ref Interval rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Interval.
data (object)Data to convert
rc (ref Interval)
conversion_level (GH_Conversion)Level of conversion.

ToInterval_Primary

#
public static bool ToInterval_Primary(object data, ref Interval rc)
Performs a direct cast from OnInterval or GH_Interval.
data (object)Data to convert
rc (ref Interval)[out] Interval cast.
True on success, false on failure.

ToInterval_Secondary

#
public static bool ToInterval_Secondary(object data, ref Interval rc)
Attempts to convert other data types into an Interval. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Interval)[out] Interval cast.
True on success, false on failure.

ToLeader

#
public static bool ToLeader(object data, ref Leader rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Leader.
data (object)Data to convert
rc (ref Leader)
conversion_level (GH_Conversion)Level of conversion.

ToLeader_Primary

#
public static bool ToLeader_Primary(object data, ref Leader rc)
Performs a direct cast from Rhino.Geometry.Leader or GH_Leader. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref Leader)Result of conversion
A Leader instance if successful, or Nothing on failure.

ToLeader_Secondary

#
public static bool ToLeader_Secondary(object data, ref Leader rc)
Attempts to convert other data types into an Rhino.Geometry.Leader. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Leader)
An Rhino.Geometry.Leader instance if successful, or Nothing on failure.

ToLight_Secondary

#
public static bool ToLight_Secondary(object data, ref Light rc)
Attempts to convert other data types into an Rhino.Geometry.Light. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Light)
An Rhino.Geometry.Light instance if successful, or Nothing on failure.

ToLine

#
public static bool ToLine(object data, ref Line rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Line.
data (object)Data to convert
rc (ref Line)
conversion_level (GH_Conversion)Level of conversion.

ToLine_Primary

#
public static bool ToLine_Primary(object data, ref Line rc)
Performs a direct cast from OnLine or GH_Line. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Line)
An OnLine instance if successful, or Nothing on failure.

ToLine_Secondary

#
public static bool ToLine_Secondary(object data, ref Line rc)
Attempts to convert other data types into an OnLine. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Line)
An OnLine instance if successful, or Nothing on failure.

ToMatrix

#
public static bool ToMatrix(object data, ref Matrix rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Matrix.
data (object)Data to convert
rc (ref Matrix)
conversion_level (GH_Conversion)Level of conversion.

ToMatrix_Primary

#
public static bool ToMatrix_Primary(object data, ref Matrix rc)
Performs a direct cast from Matrix or GH_Matrix.
data (object)Data to convert
rc (ref Matrix)[out] Matrix cast.
True on success, false on failure.

ToMatrix_Secondary

#
public static bool ToMatrix_Secondary(object data, ref Matrix rc)
Attempts to convert other data types into a Matrix. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Matrix)[out] Matrix cast.
True on success, false on failure.

ToMesh

#
public static bool ToMesh(object data, ref Mesh rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Mesh.
data (object)Data to convert
rc (ref Mesh)
conversion_level (GH_Conversion)Level of conversion.

ToMesh_Primary

#
public static bool ToMesh_Primary(object data, ref Mesh rc)
Performs a direct cast from Rhino.Geometry.Mesh or GH_Mesh. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref Mesh)Result of conversion
A Mesh instance if successful, or Nothing on failure.

ToMesh_Secondary

#
public static bool ToMesh_Secondary(object data, ref Mesh rc)
Attempts to convert other data types into an OnMesh. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Mesh)
An OnMesh instance if successful, or Nothing on failure.

ToNextPowerOfTen

#
public static double ToNextPowerOfTen(double num)
Round a number upwards to the nearest power of ten.
num (double)Number to round.
The power of ten equal to or higher than num.

ToPlane

#
public static bool ToPlane(object data, ref Plane rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Plane.
data (object)Data to convert
rc (ref Plane)
conversion_level (GH_Conversion)Level of conversion.

ToPlane_Primary

#
public static bool ToPlane_Primary(object data, ref Plane rc)
Performs a direct cast from OnPlane or GH_Plane. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Plane)
An OnPlane instance if successful, or Nothing on failure.

ToPlane_Secondary

#
public static bool ToPlane_Secondary(object data, ref Plane rc)
Attempts to convert other data types into an OnPlane. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Plane)
An OnPlane instance if successful, or Nothing on failure.

ToPlural

#
public static string ToPlural(string singular)
Apply english rules to convert a noun into its plural form. This algorithm is not water-tight as it will not handle any irregular cases.
singular (string)Singular form of noun.
Plural form of noun.

ToPoint

#
public static Point ToPoint(PointF in)
Convert a floating point GDI point structure to an integer rounded point.
in (PointF)PointF to convert.
Integer accuracy point.

ToPoint3d

#
public static bool ToPoint3d(object data, ref Point3d rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Point3d.
data (object)Data to convert
rc (ref Point3d)
conversion_level (GH_Conversion)Level of conversion.

ToPoint3d_Primary

#
public static bool ToPoint3d_Primary(object data, ref Point3d rc)
Performs a direct cast from On3dPoint or GH_Point. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Point3d)
An On3dPoint instance if successful, or Nothing on failure.

ToPoint3d_Secondary

#
public static bool ToPoint3d_Secondary(object data, ref Point3d rc)
Attempts to convert other data types into an Point. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Point3d)[out] Point cast.
True on success, false on failure.

ToPointCloud

#
public static bool ToPointCloud(object data, ref PointCloud rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.PointCloud.
data (object)Data to convert
rc (ref PointCloud)
conversion_level (GH_Conversion)Level of conversion.

ToPointCloud_Primary

#
public static bool ToPointCloud_Primary(object data, ref PointCloud rc)
Performs a direct cast from Rhino.Geometry.PointCloud or GH_PointCloud. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref PointCloud)Result of conversion
A PointCloud instance if successful, or Nothing on failure.

ToPointCloud_Secondary

#
public static bool ToPointCloud_Secondary(object data, ref PointCloud rc)
Attempts to convert other data types into an Rhino.Geometry.PointCloud. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref PointCloud)
An Rhino.Geometry.PointCloud instance if successful, or Nothing on failure.

ToPointF

#
public static PointF ToPointF(Point3d in)
Convert a Rhino SDK point structure to a GDI point structure.
in (Point3d)Point3d to convert.
Floating point accuracy GDI point.

ToPrevPowerOfTen

#
public static double ToPrevPowerOfTen(double num)
Round a number downwards to the nearest power of ten.
num (double)Number to round.
The power of ten equal to or less than num.

ToRectangle

#
public static Rectangle ToRectangle(RectangleF in)
Convert a floating point GDI rectangle structure to an integer rounded rectangle. Use this method for any and all GUI conversions as the specific rounding scheme used here avoids pixel jitter.
in (RectangleF)RectangleF to convert.
Integer accuracy rectangle.

ToRectangle3d

#
public static bool ToRectangle3d(object data, ref Rectangle3d rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Line.
data (object)Data to convert
rc (ref Rectangle3d)
conversion_level (GH_Conversion)Level of conversion.

ToRectangle3d_Primary

#
public static bool ToRectangle3d_Primary(object data, ref Rectangle3d rc)
Performs a direct cast from Rectangle3d or GH_Rectangle. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Rectangle3d)
A Rectangle3d instance if successful, or Nothing on failure.

ToRectangle3d_Secondary

#
public static bool ToRectangle3d_Secondary(object data, ref Rectangle3d rc)
Attempts to convert other data types into a Rectangle3d. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Rectangle3d)
A Rectangle3d instance if successful, or Nothing on failure.

ToRelativePath

#
public static string ToRelativePath(string anchor_path, string target_path)
obsoleteDo not use this method, it is lame
Create a relative path from two absolute paths.
anchor_path (string)Anchor path, the relative path result will be based on this location. Must be absolute.
target_path (string)Target path, this is the path that will be converted. Must be absolute and must have the same root as the Anchor.
The relative path on success or null on failure.
ArgumentNullExceptionThrown if anchor_path is a null reference.
ArgumentNullExceptionThrown if target_path is a null reference.

ToSafeRhinoCommonObject

#
public static object ToSafeRhinoCommonObject(object data)
Convert RhinoCommon types that are dangerous to use out of context (BrepFace, BrepEdge, etc.) into safe types (Brep, Curve, etc.).
data (object)Data to convert.
Safe data.

ToSHA_Hash

#
public static Guid ToSHA_Hash(byte[] data)
Create a SHA hash. The hash algorithm is only guaranteed to yield the same results from within a unique application domain.
data (byte[])Data to hash.
A guid representing the (partial) SHA hash.

ToSHA_Hash

#
public static Guid ToSHA_Hash(Stream data)
Create a SHA hash. The hash algorithm is only guaranteed to yield the same results from within a unique application domain.
data (Stream)Data to hash.
A guid representing the (partial) SHA hash.

ToSize

#
public static Size ToSize(SizeF in)
Convert a floating point GDI size structure to an integer rounded size.
in (SizeF)SizeF to convert.
Integer accuracy size.

ToString

#
public static bool ToString(object data, ref string destination, GH_Conversion conversion_level)
Convert data into Colors.
data (object)Data to convert
destination (ref string)
conversion_level (GH_Conversion)Level of conversion.

ToString_Primary

#
public static bool ToString_Primary(object data, ref string destination)
Performs a direct cast from String and GH_String.
data (object)Data to convert.
destination (ref string)Target for value assignment.
True on success, false on failure.

ToString_Secondary

#
public static bool ToString_Secondary(object data, ref string destination)
Creates a String representation of an object by calling the ToString() function.
data (object)Data to convert.
destination (ref string)Target for value assignment.
True on success, false on failure.

ToSubD

#
public static bool ToSubD(object data, ref SubD rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.SubD.
data (object)Data to convert
rc (ref SubD)
conversion_level (GH_Conversion)Level of conversion.

ToSubD_Primary

#
public static bool ToSubD_Primary(object data, ref SubD rc)
Performs a direct cast from OnSubD or GH_SubD. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref SubD)
An OnSubD instance if successful, or Nothing on failure.

ToSubD_Secondary

#
public static bool ToSubD_Secondary(object data, ref SubD rc)
Attempts to convert other data types into a Sub-D. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref SubD)
A Sub-D instance if successful, or Nothing on failure.

ToSurface

#
public static bool ToSurface(object data, ref Surface rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Surface.
data (object)Data to convert
rc (ref Surface)
conversion_level (GH_Conversion)Level of conversion.

ToSurface_Primary

#
public static bool ToSurface_Primary(object data, ref Surface rc)
Performs a direct cast from OnSurface or GH_Surface. Data is not quaranteed to be duplicated. If data is of type GH_Surface, then trim curves are ignored.
data (object)Data to convert
rc (ref Surface)
An OnSurface instance if successful, or Nothing on failure.

ToSurface_Secondary

#
public static bool ToSurface_Secondary(object data, ref Surface rc)
Attempts to convert other data types into an IOnSurface. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Surface)
An IOnSurface instance if successful, or Nothing on failure.

ToTextDot

#
public static bool ToTextDot(object data, ref TextDot rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.TextDot.
data (object)Data to convert
rc (ref TextDot)
conversion_level (GH_Conversion)Level of conversion.

ToTextDot_Primary

#
public static bool ToTextDot_Primary(object data, ref TextDot rc)
Performs a direct cast from Rhino.Geometry.TextDot or GH_TextDot. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref TextDot)Result of conversion
A TextDot instance if successful, or Nothing on failure.

ToTextDot_Secondary

#
public static bool ToTextDot_Secondary(object data, ref TextDot rc)
Attempts to convert other data types into an Rhino.Geometry.TextDot. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref TextDot)
An Rhino.Geometry.TextDot instance if successful, or Nothing on failure.

ToTextEntity

#
public static bool ToTextEntity(object data, ref TextEntity rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.TextEntity.
data (object)Data to convert
rc (ref TextEntity)
conversion_level (GH_Conversion)Level of conversion.

ToTextEntity_Primary

#
public static bool ToTextEntity_Primary(object data, ref TextEntity rc)
Performs a direct cast from Rhino.Geometry.TextEntity or GH_TextEntity. Data is not guaranteed to be duplicated.
data (object)Data to convert
rc (ref TextEntity)Result of conversion
A TextEntity instance if successful, or Nothing on failure.

ToTextEntity_Secondary

#
public static bool ToTextEntity_Secondary(object data, ref TextEntity rc)
Attempts to convert other data types into an Rhino.Geometry.TextEntity. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref TextEntity)
An Rhino.Geometry.TextEntity instance if successful, or Nothing on failure.

ToUVInterval

#
public static bool ToUVInterval(object data, ref UVInterval rc, GH_Conversion conversion_level)
Convert data into Grasshopper.Kernel.Types.UVInterval.
data (object)Data to convert
rc (ref UVInterval)
conversion_level (GH_Conversion)Level of conversion.

ToUVInterval_Primary

#
public static bool ToUVInterval_Primary(object data, ref UVInterval rc)
Performs a direct cast from UVInterval or GH_Interval2D.
data (object)Data to convert
rc (ref UVInterval)[out] Interval cast.
True on success, false on failure.

ToUVInterval_Secondary

#
public static bool ToUVInterval_Secondary(object data, ref UVInterval rc)
Attempts to convert other data types into a UVInterval. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref UVInterval)[out] Interval cast.
True on success, false on failure.

ToVariableName

#
public static string ToVariableName(string compound)
Extract the implied variable name from a compound string. A string is considered compound if it contains a parenthesis pair with at least one character within the brackets.
compound (string)String to parse.
The variable name as extracted or the original compound if no name was implied.

ToVariant

#
public static GH_Variant ToVariant(object value)
Convert an object to a Grasshopper Expression Variant if possible.
value (object)Data to convert.
An expression variant that matches the input best or a VAR_Null instance.

ToVector3d

#
public static bool ToVector3d(object data, ref Vector3d rc, GH_Conversion conversion_level)
Convert data into Rhino.Geometry.Vector3d.
data (object)Data to convert
rc (ref Vector3d)
conversion_level (GH_Conversion)Level of conversion.

ToVector3d_Primary

#
public static bool ToVector3d_Primary(object data, ref Vector3d rc)
Performs a direct cast from On3dVector or GH_Vector. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Vector3d)
An On3dVector instance if successful, or Nothing on failure.

ToVector3d_Secondary

#
public static bool ToVector3d_Secondary(object data, ref Vector3d rc)
Attempts to convert other data types into a Vector. Data is not quaranteed to be duplicated.
data (object)Data to convert
rc (ref Vector3d)[out] Vector cast.
True on success, false o failure.