Represents a 3D oriented Box volume.

Constructors

GH_Box

#
public GH_Box()

GH_Box

#
public GH_Box(BoundingBox box)
box (BoundingBox)

GH_Box

#
public GH_Box(Box box)
box (Box)

GH_Box

#
public GH_Box(GH_Box other)
other (GH_Box)

GH_Box

#
public GH_Box(Guid id)
id (Guid)

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

#
public override bool IsGeometryLoaded { get; }

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; }

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 override Guid ReferenceID { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

#
public override Box Value { get; set; }

Methods

AppendRenderGeometry

#
public void AppendRenderGeometry(GH_RenderArgs args, RenderMaterial materialHint)
args (GH_RenderArgs)
materialHint (RenderMaterial)

BakeGeometry

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

Brep

#
public Brep Brep()
Differs from Rhino.Geometry.Brep.FromBox() because it Handles degenerate cases.

CastFrom

#
public override bool CastFrom(object source)
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)
target (ref T)

ClearCaches

#
public override void 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()

DuplicateBox

#
public GH_Box DuplicateBox()

DuplicateGeometry

#
public override IGH_GeometricGoo DuplicateGeometry()

EmitProxy

#
public override IGH_GooProxy EmitProxy()

Geometry

#
public bool Geometry(ref Brep brp, ref Curve crv, ref Point pt)
Convert the box to a GeometryBase instance.
brp (ref Brep)If the box is at most degenerate in one direction, the brp parameter will be filled out.
crv (ref Curve)If the box is degenerate in exactly two directions, the crv parameter will be filled out.
pt (ref Point)If the box is degenerate in all three directions, the pt parameter will be filled out.
True on success, false on failure.

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 override bool LoadGeometry(RhinoDoc doc)
doc (RhinoDoc)

Mesh

#
public Mesh Mesh()

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

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