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

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

PureTimeTicks

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

Properties

CultureTable

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

Methods

BackSolveExpression

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

ByteArrayToCommonObject<T>

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

CombineDateAndTime

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

CommonObjectToByteArray

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

CreateDateAndTime

#
public static DateTime CreateDateAndTime(
dateTime
)

CreatePureDate

#
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.
public static DateTime CreatePureDate()

CreatePureTime

#
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.
public static DateTime CreatePureTime()

CreatePureTime

#
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.
public static DateTime CreatePureTime(
hours,
minutes,
seconds
)

FileToHash

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

FindRhinoObjectByNameAndType

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

GeometryToObjRef

#
Create an ObjRef for a referenced IGH_GeometricGoo. Unreferenced IGH_GeometryGoo will return null.
public static ObjRef GeometryToObjRef(
in
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

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

GetClippingPlaneFromDocument

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

GetCurveFromDocument

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

GetExtrusionFromDocument

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

GetMeshFromDocument

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

GetPlaneFromDocument

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

GetPointFromDocument

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

GetSubDFromDocument

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

GetSurfaceFromDocument

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

GetTimeKind

#
Gets the kind of time implied by two System.DateTime values.
public static GH_TimeKind GetTimeKind(
A,
First time to evaluate.
B
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

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

IsPureDate

#
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.
public static bool IsPureDate(
potentialDate
Date to test.
)
True if the date is considered pure.

IsPureTime

#
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.
public static bool IsPureTime(
potentialTime
Date to test.
)
True if the time is considered undefined.

ObjRefToGeometry

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

ParseExpression

#
Attempts to parse an expression.
public static GH_Variant ParseExpression(
exp,
Expression to parse.
recursive
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

#
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.
public static bool StringToDate(
text,
String to parse.
date
If the string could be parsed, the pure date will be returned here.
)
True if string was successfully parsed, false if not.

StringToGuid

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

StringToTime

#
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.
public static bool StringToTime(
text,
String to parse.
time
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

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

ToAnnotationBase

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

ToAnnotationBase_Primary

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

ToAnnotationBase_Secondary

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

ToArc

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

ToArc_Primary

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

ToArc_Secondary

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

ToBoolean

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

ToBoolean_Primary

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

ToBoolean_Secondary

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

ToBoundingBox_Primary

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

ToBox_Primary

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

ToBrep

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

ToBrep_Primary

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

ToBrep_Secondary

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

ToCircle

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

ToCircle_Primary

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

ToCircle_Secondary

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

ToClippingPlane

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

ToClippingPlane_Primary

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

ToClippingPlane_Secondary

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

ToColor

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

ToColor_Primary

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

ToColor_Secondary

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

ToComplex

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

ToComplex_Primary

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

ToComplex_Secondary

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

ToCoordinates

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

ToCulture

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

ToCulture_Primary

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

ToCulture_Secondary

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

ToCurve

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

ToCurve_Primary

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

ToCurve_Secondary

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

ToDate

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

ToDate_Primary

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

ToDate_Secondary

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

ToDimension

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

ToDimension_Primary

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

ToDimension_Secondary

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

ToDouble

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

ToDouble_Primary

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

ToDouble_Secondary

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

ToExtrusion

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

ToExtrusion_Primary

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

ToExtrusion_Secondary

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

ToGeometricGoo

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

ToGeometryBase

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

ToGHAngularDimension

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

ToGHAngularDimension_Primary

#
Converts similar data into a GH_AngularDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHAngularDimension_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_AngularDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHAngularDimension_Secondary(
data,
Data to convert
target
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

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

ToGHArc

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

ToGHArc_Primary

#
Converts similar data into a GH_Arc instance. Data is not quaranteed to be duplicated.
public static bool ToGHArc_Primary(
data,
Data to convert
ref GH_Arc
target
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

#
Converts similar data into a GH_Arc instance. Data is not quaranteed to be duplicated.
public static bool ToGHArc_Secondary(
data,
Data to convert
ref GH_Arc
target
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

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

ToGHBoolean_Primary

#
Converts similar data into a GH_Boolean instance. Data is not quaranteed to be duplicated.
public static bool ToGHBoolean_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Boolean instance. Data is not quaranteed to be duplicated.
public static bool ToGHBoolean_Secondary(
data,
Data to convert
target
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

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

ToGHBox_Primary

#
Converts similar data into a GH_Box instance. Data is not guaranteed to be duplicated.
public static bool ToGHBox_Primary(
data,
Data to convert
ref GH_Box
target
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

#
Converts similar data into a GH_Box instance. Data is not quaranteed to be duplicated.
public static bool ToGHBox_Secondary(
data,
Data to convert
ref GH_Box
target
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

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

ToGHBrep_Primary

#
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
public static bool ToGHBrep_Primary(
data,
Data to convert
ref GH_Brep
target
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

#
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
public static bool ToGHBrep_Secondary(
data,
Data to convert
ref GH_Brep
target
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

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

ToGHCentermark_Primary

#
Converts similar data into a GH_Centermark instance. Data is not guaranteed to be duplicated.
public static bool ToGHCentermark_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Centermark instance. Data is not guaranteed to be duplicated.
public static bool ToGHCentermark_Secondary(
data,
Data to convert
target
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

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

ToGHCircle_Primary

#
Converts similar data into a GH_Circle instance. Data is not quaranteed to be duplicated.
public static bool ToGHCircle_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Circle instance. Data is not quaranteed to be duplicated.
public static bool ToGHCircle_Secondary(
data,
Data to convert
target
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

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

ToGHClippingPlane_Primary

#
Converts similar data into a GH_ClippingPlane instance. Data is not guaranteed to be duplicated.
public static bool ToGHClippingPlane_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Clipping instance. Data is not guaranteed to be duplicated.
public static bool ToGHClippingPlane_Secondary(
data,
Data to convert
target
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

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

ToGHColour_Primary

#
Converts similar data into a GH_Colour instance. Data is not quaranteed to be duplicated.
public static bool ToGHColour_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Colour instance. Data is not quaranteed to be duplicated.
public static bool ToGHColour_Secondary(
data,
Data to convert
target
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

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

ToGHComplexNumber_Primary

#
Converts similar data into a GH_ComplexNumber instance. Data is not quaranteed to be duplicated.
public static bool ToGHComplexNumber_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_ComplexNumber instance. Data is not quaranteed to be duplicated.
public static bool ToGHComplexNumber_Secondary(
data,
Data to convert
target
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

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

ToGHCurve_Primary

#
Converts similar data into a GH_Curve instance. Data is not quaranteed to be duplicated.
public static bool ToGHCurve_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Curve instance. Data is not quaranteed to be duplicated.
public static bool ToGHCurve_Secondary(
data,
Data to convert
target
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

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

ToGHExtrusion

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

ToGHExtrusion_Primary

#
Converts similar data into a GH_Extrusion instance. Data is not quaranteed to be duplicated.
public static bool ToGHExtrusion_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Brep instance. Data is not quaranteed to be duplicated.
public static bool ToGHExtrusion_Secondary(
data,
Data to convert
target
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

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

ToGHGuid_Primary

#
Converts similar data into a GH_Guid instance. Data is not quaranteed to be duplicated.
public static bool ToGHGuid_Primary(
data,
Data to convert
ref GH_Guid
target
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

#
Converts similar data into a GH_Guid instance. Data is not quaranteed to be duplicated.
public static bool ToGHGuid_Secondary(
data,
Data to convert
ref GH_Guid
target
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

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

ToGHHatch_Primary

#
Converts similar data into a GH_Hatch instance. Data is not guaranteed to be duplicated.
public static bool ToGHHatch_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Hatch instance. Data is not guaranteed to be duplicated.
public static bool ToGHHatch_Secondary(
data,
Data to convert
target
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

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

ToGHInstanceReference_Primary

#
Converts similar data into a GH_InstanceReference instance. Data is not guaranteed to be duplicated.
public static bool ToGHInstanceReference_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_InstanceReference instance. Data is not guaranteed to be duplicated.
public static bool ToGHInstanceReference_Secondary(
data,
Data to convert
target
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

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

ToGHInteger_Primary

#
Converts similar data into a GH_Integer instance. Data is not quaranteed to be duplicated.
public static bool ToGHInteger_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Integer instance. Data is not quaranteed to be duplicated.
public static bool ToGHInteger_Secondary(
data,
Data to convert
target
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

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

ToGHInterval_Primary

#
Converts similar data into a GH_Interval instance. Data is not quaranteed to be duplicated.
public static bool ToGHInterval_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Interval instance. Data is not quaranteed to be duplicated.
public static bool ToGHInterval_Secondary(
data,
Data to convert
target
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

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

ToGHInterval2D_Primary

#
Converts similar data into a GH_Interval2D instance. Data is not quaranteed to be duplicated.
public static bool ToGHInterval2D_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Interval2D instance. Data is not quaranteed to be duplicated.
public static bool ToGHInterval2D_Secondary(
data,
Data to convert
target
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

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

ToGHLeader_Primary

#
Converts similar data into a GH_Leader instance. Data is not guaranteed to be duplicated.
public static bool ToGHLeader_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Leader instance. Data is not guaranteed to be duplicated.
public static bool ToGHLeader_Secondary(
data,
Data to convert
target
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

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

ToGHLight_Primary

#
Converts similar data into a GH_Light instance. Data is not guaranteed to be duplicated.
public static bool ToGHLight_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Light instance. Data is not guaranteed to be duplicated.
public static bool ToGHLight_Secondary(
data,
Data to convert
target
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

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

ToGHLine_Primary

#
Converts similar data into a GH_Line instance. Data is not quaranteed to be duplicated.
public static bool ToGHLine_Primary(
data,
Data to convert
ref GH_Line
target
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

#
Converts similar data into a GH_Line instance. Data is not quaranteed to be duplicated.
public static bool ToGHLine_Secondary(
data,
Data to convert
ref GH_Line
target
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

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

ToGHLinearDimension_Primary

#
Converts similar data into a GH_LinearDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHLinearDimension_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_LinearDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHLinearDimension_Secondary(
data,
Data to convert
target
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

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

ToGHMatrix_Primary

#
Converts similar data into a GH_Matrix instance. Data is not quaranteed to be duplicated.
public static bool ToGHMatrix_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Matrix instance. Data is not quaranteed to be duplicated.
public static bool ToGHMatrix_Secondary(
data,
Data to convert
target
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

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

ToGHMesh_Primary

#
Converts similar data into a GH_Mesh instance. Data is not quaranteed to be duplicated.
public static bool ToGHMesh_Primary(
data,
Data to convert
ref GH_Mesh
target
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

#
Converts similar data into a GH_Mesh instance. Data is not quaranteed to be duplicated.
public static bool ToGHMesh_Secondary(
data,
Data to convert
ref GH_Mesh
target
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

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

ToGHMeshFace_Primary

#
Converts similar data into a GH_MeshFace instance. Data is not quaranteed to be duplicated.
public static bool ToGHMeshFace_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_MeshFace instance. Data is not quaranteed to be duplicated.
public static bool ToGHMeshFace_Secondary(
data,
Data to convert
target
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

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

ToGHNumber_Primary

#
Converts similar data into a GH_Number instance. Data is not quaranteed to be duplicated.
public static bool ToGHNumber_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Number instance. Data is not quaranteed to be duplicated.
public static bool ToGHNumber_Secondary(
data,
Data to convert
target
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

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

ToGHOrdinateDimension_Primary

#
Converts similar data into a GH_OrdinateDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHOrdinateDimension_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_OrdinateDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHOrdinateDimension_Secondary(
data,
Data to convert
target
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

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

ToGHPlane_Primary

#
Converts similar data into a GH_Plane instance. Data is not quaranteed to be duplicated.
public static bool ToGHPlane_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Plane instance. Data is not quaranteed to be duplicated.
public static bool ToGHPlane_Secondary(
data,
Data to convert
target
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

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

ToGHPoint_Primary

#
Converts similar data into a GH_Point instance. Data is not quaranteed to be duplicated.
public static bool ToGHPoint_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Point instance. Data is not quaranteed to be duplicated.
public static bool ToGHPoint_Secondary(
data,
Data to convert
target
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

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

ToGHPointCloud_Primary

#
Converts similar data into a GH_PointCloud instance. Data is not quaranteed to be duplicated.
public static bool ToGHPointCloud_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_PointCloud instance. Data is not quaranteed to be duplicated.
public static bool ToGHPointCloud_Secondary(
data,
Data to convert
target
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

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

ToGHRadialDimension_Primary

#
Converts similar data into a GH_RadialDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHRadialDimension_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_RadialDimension instance. Data is not guaranteed to be duplicated.
public static bool ToGHRadialDimension_Secondary(
data,
Data to convert
target
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

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

ToGHRectangle_Primary

#
Converts similar data into a GH_Rectangle instance. Data is not quaranteed to be duplicated.
public static bool ToGHRectangle_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Rectangle instance. Data is not quaranteed to be duplicated.
public static bool ToGHRectangle_Secondary(
data,
Data to convert
target
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

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

ToGHString_Primary

#
Converts similar data into a GH_String instance. Data is not quaranteed to be duplicated.
public static bool ToGHString_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_String instance. Data is not quaranteed to be duplicated.
public static bool ToGHString_Secondary(
data,
Data to convert
target
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

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

ToGHSubD_Primary

#
Converts similar data into a GH_SubD instance. Data is not quaranteed to be duplicated.
public static bool ToGHSubD_Primary(
data,
Data to convert
ref GH_SubD
target
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

#
Converts similar data into a GH_SubD instance. Data is not quaranteed to be duplicated.
public static bool ToGHSubD_Secondary(
data,
Data to convert
ref GH_SubD
target
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

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

ToGHSurface_Primary

#
Converts similar data into a GH_Surface instance. Data is not quaranteed to be duplicated.
public static bool ToGHSurface_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Surface instance. Data is not quaranteed to be duplicated.
public static bool ToGHSurface_Secondary(
data,
Data to convert
target
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

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

ToGHTextDot_Primary

#
Converts similar data into a GH_TextDot instance. Data is not guaranteed to be duplicated.
public static bool ToGHTextDot_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_TextDot instance. Data is not guaranteed to be duplicated.
public static bool ToGHTextDot_Secondary(
data,
Data to convert
target
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

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

ToGHTextEntity_Primary

#
Converts similar data into a GH_TextEntity instance. Data is not guaranteed to be duplicated.
public static bool ToGHTextEntity_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_TextEntity instance. Data is not guaranteed to be duplicated.
public static bool ToGHTextEntity_Secondary(
data,
Data to convert
target
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

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

ToGHTime_Primary

#
Converts similar data into a GH_Time instance. Data is not quaranteed to be duplicated.
public static bool ToGHTime_Primary(
data,
Data to convert
ref GH_Time
target
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

#
Converts similar data into a GH_Time instance. Data is not quaranteed to be duplicated.
public static bool ToGHTime_Secondary(
data,
Data to convert
ref GH_Time
target
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

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

ToGHVector_Primary

#
Converts similar data into a GH_Vector instance. Data is not quaranteed to be duplicated.
public static bool ToGHVector_Primary(
data,
Data to convert
target
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

#
Converts similar data into a GH_Vector instance. Data is not quaranteed to be duplicated.
public static bool ToGHVector_Secondary(
data,
Data to convert
target
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

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

ToGUID

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

ToGUID_Primary

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

ToGUID_Secondary

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

ToHatch

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

ToHatch_Primary

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

ToHatch_Secondary

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

ToInt32

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

ToInt32_Primary

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

ToInt32_Secondary

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

ToInterval

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

ToInterval_Primary

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

ToInterval_Secondary

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

ToLeader

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

ToLeader_Primary

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

ToLeader_Secondary

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

ToLight_Secondary

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

ToLine

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

ToLine_Primary

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

ToLine_Secondary

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

ToMatrix

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

ToMatrix_Primary

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

ToMatrix_Secondary

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

ToMesh

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

ToMesh_Primary

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

ToMesh_Secondary

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

ToNextPowerOfTen

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

ToPlane

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

ToPlane_Primary

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

ToPlane_Secondary

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

ToPlural

#
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.
public static string ToPlural(
singular
Singular form of noun.
)
Plural form of noun.

ToPoint

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

ToPoint3d

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

ToPoint3d_Primary

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

ToPoint3d_Secondary

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

ToPointCloud

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

ToPointCloud_Primary

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

ToPointCloud_Secondary

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

ToPointF

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

ToPrevPowerOfTen

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

ToRectangle

#
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.
public static Rectangle ToRectangle(
in
RectangleF to convert.
)
Integer accuracy rectangle.

ToRectangle3d

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

ToRectangle3d_Primary

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

ToRectangle3d_Secondary

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

ToRelativePath

#
Create a relative path from two absolute paths.
public static string ToRelativePath(
anchor_path,
Anchor path, the relative path result will be based on this location. Must be absolute.
target_path
Target path, this is the path that will be converted. Must be absolute and must have the same root as the Anchor.
)
obsoleteDo not use this method, it is lame
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

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

ToSHA_Hash

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

ToSHA_Hash

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

ToSize

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

ToString

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

ToString_Primary

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

ToString_Secondary

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

ToSubD

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

ToSubD_Primary

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

ToSubD_Secondary

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

ToSurface

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

ToSurface_Primary

#
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.
public static bool ToSurface_Primary(
data,
Data to convert
ref Surface
rc
)
An OnSurface instance if successful, or Nothing on failure.

ToSurface_Secondary

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

ToTextDot

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

ToTextDot_Primary

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

ToTextDot_Secondary

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

ToTextEntity

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

ToTextEntity_Primary

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

ToTextEntity_Secondary

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

ToUVInterval

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

ToUVInterval_Primary

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

ToUVInterval_Secondary

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

ToVariableName

#
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.
public static string ToVariableName(
compound
String to parse.
)
The variable name as extracted or the original compound if no name was implied.

ToVariant

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

ToVector3d

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

ToVector3d_Primary

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

ToVector3d_Secondary

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