Represents a 3D rectangle. GH_Rectangle re-implements the RhinoCommon Rectangle3d.
Constructors
GH_Rectangle
#public GH_Rectangle(GH_Rectangle other)
Create a duplicate of another circle.
Parameters:
| other (GH_Rectangle) | Circle to mimic. |
GH_Rectangle
#Create a duplicate of another rectangle.
Parameters:
| rec (Rectangle3d) | Rectangle to copy. If null, a default rectangle will be created. |
Fields
m_value
protected T m_value
Properties
Boundingbox
#Gets the boundingbox for this geometry.
Returns: The boundingbox for this piece of geometry or Boundingbox.Empty if the geometry is null or invalid.
Overrides: GH_GeometricGoo<T>.Boundingbox
IsGeometryLoaded
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.
Implements: IsGeometryLoaded
IsReferencedGeometry
Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: IsReferencedGeometry
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
ReferenceID
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.
Implements: ReferenceID
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.
Overrides: GH_Goo<T>.Value
Methods
BakeGeometry
#Parameters:
| doc (RhinoDoc) | |
| att (ObjectAttributes) | |
| obj_guid (ref Guid) |
Implements: BakeGeometry
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Parameters:
| source (object) |
Overrides: GH_GeometricGoo<T>.CastFrom
Remarks: If false, the target instance contents are not guaranteed to be valid.
Parameters:
| target (ref Q) | Pointer to target of cast. |
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.
Parameters:
| target (ref T) |
Overrides: GH_GeometricGoo<T>.CastTo
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.
Implements: ClearCaches
DuplicateGeometry
#Create a duplicate of this rectangle.
Overrides: GH_GeometricGoo<T>.DuplicateGeometry
EmitProxy
#Returns a proxy that represents this rectangle. Do not call this function unless you're
Overrides: GH_GeometricGoo<T>.EmitProxy
LoadGeometry
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: LoadGeometry
LoadGeometry
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.
Parameters:
| doc (RhinoDoc) | Document to use for loading. |
Implements: 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