Represents a 3D plane. GH_Plane re-implements the OpenNURBS OnPlane class.

Constructors

GH_Plane

#
Default constructor. Creates a world XY plane.
public GH_Plane()

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.
)

GH_Plane

#
public GH_Plane(
id
)

GH_Plane

#
Create a duplicate of another plane.
public GH_Plane(
plane
Plane to set.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

Boundingbox

#
public override BoundingBox Boundingbox { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

IsGeometryLoaded

#
Gets the load state of this plane. The plane is considered to be loaded when it is valid.
public override bool IsGeometryLoaded { get; }

IsReferencedGeometry

Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
public virtual bool IsReferencedGeometry { get; }
inherited fromGH_GeometricGoo<T>

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.
public override bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public override string IsValidWhyNot { get; }

ReferenceID

#
public override Guid ReferenceID { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

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; }
inherited fromGH_GeometricGoo<T>
GH_Goo<T>.Value

Methods

BakeGeometry

#
public bool BakeGeometry(
doc,
att,
ref Guid
obj_guid
)
BakeGeometry

CastFrom

#
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastFrom(
source
)

CastTo<Q>

Attempt a cast to type Q.
public virtual bool CastTo<Q>(
ref Q
target
Pointer to target of cast.
)
inherited fromGH_Goo<T>
Remarks: If false, the target instance contents are not guaranteed to be valid.
True on success, false on failure.
CastTo

CastTo<T>

#
Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastTo<T>(
ref T
target
)

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()
inherited fromGH_GeometricGoo<T>
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

#
public static void DrawPlane(
display,
plane,
size,
frequency
)

DrawPlane

#
Draw a plane with default colours and default size.
public static void DrawPlane(
display,
plane
)

DrawPlaneIcon

#
public static void DrawPlaneIcon(
display,
plane,
size,
Color
edgeColour,
Color
fillColour
)

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateGeometry

#
Create a duplicate of this plane.
public override IGH_GeometricGoo DuplicateGeometry()

DuplicatePlane

#
Create a duplicate of this plane.
public GH_Plane DuplicatePlane()

EmitProxy

#
Returns a proxy that represents this plane. Do not call this function unless you're
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
public override BoundingBox GetBoundingBox(
xform
)

LoadGeometry

#
If the geometry is referenced and not yet loaded, attempts to load the geometry.
public override bool LoadGeometry()
True if the geometry is loaded (or if it was already loaded), False on failure.

LoadGeometry

#
public override bool LoadGeometry()

Morph

#
public override IGH_GeometricGoo Morph(
xmorph
)

Read

#
public override bool Read(
reader
)
GH_Goo<T>.Read

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.
public virtual object ScriptVariable()
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
Format the plane using default grasshopper formatting logic.
public override string ToString()

Transform

#
public override IGH_GeometricGoo Transform(
Transform
xform
)

Write

#
public override bool Write(
writer
)
GH_Goo<T>.Write