Represents a 3D rectangle. GH_Rectangle re-implements the RhinoCommon Rectangle3d.

Constructors

GH_Rectangle

#
public GH_Rectangle()
Default constructor

GH_Rectangle

#
public GH_Rectangle(GH_Rectangle other)
Create a duplicate of another circle.
other (GH_Rectangle)Circle to mimic.

GH_Rectangle

#
public GH_Rectangle(Rectangle3d rec)
Create a duplicate of another rectangle.
rec (Rectangle3d)Rectangle to copy. If null, a default rectangle will be created.

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

Boundingbox

#
public override BoundingBox Boundingbox { get; }
Gets the boundingbox for this geometry.
The boundingbox for this piece of geometry or Boundingbox.Empty if the geometry is null or invalid.

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

IsGeometryLoaded

public virtual bool IsGeometryLoaded { get; }
Gets a value indicating whether or not this geometry is currently loaded (assuming it is referenced). Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
inherited fromGH_GeometricGoo<T>
IsGeometryLoaded

IsReferencedGeometry

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

IsValid

#
public override bool IsValid { get; }
Gets the validity of this instance.

IsValidWhyNot

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

ReferenceID

public virtual Guid ReferenceID { get; set; }
Gets or sets the Guid of the object that is referenced. Not all IGH_GeometricGoo implementations support referenced geometry. The default implementation is to always return Guid.Empty.
inherited fromGH_GeometricGoo<T>
ReferenceID

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

public override T Value { get; set; }
Gets or sets the value of this type. Note that if the type has a ReferenceID this value might get destroyed in the future.
inherited fromGH_GeometricGoo<T>
GH_Goo<T>.Value

Methods

BakeGeometry

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

CastFrom

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

CastTo<Q>

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

CastTo<T>

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

ClearCaches

public virtual void 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.
inherited fromGH_GeometricGoo<T>
ClearCaches

DrawViewportMeshes

#
public void DrawViewportMeshes(GH_PreviewMeshArgs args)
args (GH_PreviewMeshArgs)
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires(GH_PreviewWireArgs args)
args (GH_PreviewWireArgs)
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateGeometry

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

DuplicateRectangle

#
public GH_Rectangle DuplicateRectangle()
Create a duplicate of this rectangle.

EmitProxy

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

GetBoundingBox

#
public override BoundingBox GetBoundingBox(Transform xform)
xform (Transform)

LoadGeometry

public virtual bool LoadGeometry()
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
inherited fromGH_GeometricGoo<T>
LoadGeometry

LoadGeometry

public virtual bool LoadGeometry(RhinoDoc doc)
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
inherited fromGH_GeometricGoo<T>
doc (RhinoDoc)Document to use for loading.
LoadGeometry

Morph

#
public override IGH_GeometricGoo Morph(SpaceMorph xmorph)
xmorph (SpaceMorph)

Read

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

ScriptVariable

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

ToString

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

Transform

#
public override IGH_GeometricGoo Transform(Transform xform)
xform (Transform)

Write

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