Class Conversions
Contains all extension method definitions for converting Speckle stream object types into
native Unity types and vice versa.
Inheritance
System.Object
Conversions
Assembly: cs.temp.dll.dll
Syntax
public static class Conversions
Fields
scaleFactor
The scale factor for each geometry object to be spawned in to.
Declaration
public static double scaleFactor
Field Value
Type |
Description |
System.Double |
|
Methods
ToNative(SpeckleBrep)
Declaration
public static SpeckleUnityMesh ToNative(this SpeckleBrep brep)
Parameters
Type |
Name |
Description |
SpeckleBrep |
brep |
|
Returns
ToNative(SpeckleCurve)
Declaration
public static SpeckleUnityPolyline ToNative(this SpeckleCurve curve)
Parameters
Type |
Name |
Description |
SpeckleCurve |
curve |
|
Returns
ToNative(SpeckleLine)
Declaration
public static SpeckleUnityPolyline ToNative(this SpeckleLine line)
Parameters
Type |
Name |
Description |
SpeckleLine |
line |
|
Returns
ToNative(SpeckleMesh)
Declaration
public static SpeckleUnityMesh ToNative(this SpeckleMesh speckleMesh)
Parameters
Type |
Name |
Description |
SpeckleMesh |
speckleMesh |
|
Returns
ToNative(SpeckleNumber)
Declaration
public static float ToNative(this SpeckleNumber number)
Parameters
Type |
Name |
Description |
SpeckleNumber |
number |
|
Returns
Type |
Description |
System.Single |
|
ToNative(SpecklePoint)
Declaration
public static SpeckleUnityPoint ToNative(this SpecklePoint point)
Parameters
Type |
Name |
Description |
SpecklePoint |
point |
|
Returns
ToNative(SpecklePolyline)
Declaration
public static SpeckleUnityPolyline ToNative(this SpecklePolyline polyline)
Parameters
Type |
Name |
Description |
SpecklePolyline |
polyline |
|
Returns
ToNative(SpeckleString)
Declaration
public static string ToNative(this SpeckleString str)
Parameters
Type |
Name |
Description |
SpeckleString |
str |
|
Returns
Type |
Description |
System.String |
|
ToPoint(Double, Double, Double)
Declaration
public static Vector3 ToPoint(double x, double y, double z)
Parameters
Type |
Name |
Description |
System.Double |
x |
|
System.Double |
y |
|
System.Double |
z |
|
Returns
ToPoint(Double[])
Declaration
public static Vector3 ToPoint(double[] ptValues)
Parameters
Type |
Name |
Description |
System.Double[] |
ptValues |
|
Returns
ToPoints(IEnumerable<Double>)
Declaration
public static Vector3[] ToPoints(this IEnumerable<double> arr)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Double> |
arr |
|
Returns
Type |
Description |
Vector3[] |
|
ToSpeckle(SpeckleUnityNumber)
Declaration
public static SpeckleNumber ToSpeckle(this SpeckleUnityNumber obj)
Parameters
Returns
Type |
Description |
SpeckleNumber |
|
ToSpeckle(SpeckleUnityPoint)
Declaration
public static SpecklePoint ToSpeckle(this SpeckleUnityPoint obj)
Parameters
Returns
Type |
Description |
SpecklePoint |
|