public class GH_Plane : GH_GeometricGoo<Plane>, IGH_BakeAwareData, IGH_PreviewData, IGH_GeometricGoo
Represents a 3D plane. GH_Plane re-implements the OpenNURBS OnPlane class.
Constructors
GH_Plane
#Create a duplicate of another plane.
public GH_Plane()
GH_Plane
other
Plane to copy. If null, a default plane will be created.
Fields
m_value
protected T m_value
Properties
IsGeometryLoaded
#Gets the load state of this plane. The plane is considered to be loaded when it is valid.
Overrides: GH_GeometricGoo<T>.IsGeometryLoaded
IsReferencedGeometry
Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: IsReferencedGeometry
IsValid
#Gets the validity of the plane. If the plane is invalid, attempts are made to fix the data. If the plane remains invalid, False is returned.
Overrides: GH_GeometricGoo<T>.IsValid
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
Value
Gets or sets the value of this type. Note that if the type has a ReferenceID this value might get destroyed in the future.
public override T Value { get; set; }
Overrides: GH_Goo<T>.Value
Methods
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Overrides: GH_GeometricGoo<T>.CastFrom
CastTo<Q>
Attempt a cast to type Q.
Remarks: If false, the target instance contents are not guaranteed to be valid.
Returns: True on success, false on failure.
Implements: CastTo
CastTo<T>
#Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
Overrides: GH_GeometricGoo<T>.CastTo
ClearCaches
Clears all caches. Typically if the geometry is referenced, this will erase the local copy. If your T is a value-type, you must override this function and specifically unset the local value.
public virtual void ClearCaches()
Implements: ClearCaches
DrawPlane
#public static void DrawPlane()
display,
plane,
size,
frequency,
Color
grid_color,
Color
x_color,
Color
y_color,
Color
back_color
DrawPlane
#public static void DrawPlane()
display,
plane,
size,
frequency,
Color
grid_color,
Color
x_color,
Color
y_color,
Color
z_color,
Color
back_color
DrawPlane
#public static void DrawPlane()
display,
plane,
size,
frequency,
Color
grid_color,
Color
x_color,
Color
y_color
DrawPlane
#DrawPlaneIcon
#public static void DrawPlaneIcon()
EmitProxy
#Returns a proxy that represents this plane. Do not call this function unless you're
Overrides: GH_GeometricGoo<T>.EmitProxy
LoadGeometry
#If the geometry is referenced and not yet loaded, attempts to load the geometry.
Returns: True if the geometry is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
LoadGeometry
#Overrides: GH_GeometricGoo<T>.LoadGeometry
ScriptVariable
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable