Properties

Boundingbox

#
Gets the (cached) boundingbox for this geometry. Not all geometry types cache boundingbox results.
BoundingBox Boundingbox { get; }
The boundingbox for this piece of geometry or Boundingbox.Empty if the geometry is null or invalid.

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.
bool IsGeometryLoaded { get; }

IsReferencedGeometry

#
Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
bool IsReferencedGeometry { get; }

IsValid

Gets a value indicating whether or not the current value is valid.
bool IsValid { get; }
inherited fromIGH_Goo

IsValidWhyNot

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

ReferenceID

#
Gets or sets the Guid of the object that is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Guid ReferenceID { get; set; }

TypeDescription

Gets a description of the type of the implementation.
string TypeDescription { get; }
inherited fromIGH_Goo

TypeName

Gets the name of the type of the implementation.
string TypeName { get; }
inherited fromIGH_Goo

Methods

CastFrom

Attempt a cast from generic object
bool CastFrom(
source
Reference to source of cast.
)
inherited fromIGH_Goo
Remarks: If False, the contents of this instance are not to be trusted.
True on success, false on failure.

CastTo<T>

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

ClearCaches

#
Clears all caches. Typically if the geometry is referenced, this will erase the local copy.
void ClearCaches()

Duplicate

Make a complete duplicate of this instance. No shallow copies.
IGH_Goo Duplicate()
inherited fromIGH_Goo
Remarks: Classes which implement this interface should also provide type specific Duplicate methods

DuplicateGeometry

#
Make a complete duplicate of this geometry. No shallow copies.
IGH_GeometricGoo DuplicateGeometry()
Remarks: Each class that implements this interface should also provide a type specific duplication method

EmitProxy

Create a new proxy for this instance. Return Null if this class does not support proxies.
IGH_GooProxy EmitProxy()
inherited fromIGH_Goo

GetBoundingBox

#
Compute an aligned boundingbox.
BoundingBox GetBoundingBox(
xform
Transformation to apply to geometry for BoundingBox computation.
)
The world aligned boundingbox of the transformed geometry.

LoadGeometry

#
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
bool LoadGeometry()

LoadGeometry

#
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
bool LoadGeometry(
doc
Document to use for loading.
)

Morph

#
Morph the object or a deformable representation of the object.
IGH_GeometricGoo Morph(
xmorph
Spatial deform.
)
Deformed geometry. If the local geometry can be deformed accurately, then the returned instance equals this instance. Not all geometry types can be accurately deformed though, if this is the case, this function will return an instance of another IGH_GeometricGoo derived type which can be deformed.

Read

This method is called whenever the instance is required to deserialize itself.
bool Read(
reader
Reader object to deserialize from.
)
inherited fromGH_ISerializable
True on success, false on failure.

ScriptVariable

This function will be called when the local IGH_Goo instance disapears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
object ScriptVariable()
inherited fromIGH_Goo
The object that represents this IGH_Goo instance in a script.

ToString

Creates a string description of the current instance value
string ToString()
inherited fromIGH_Goo

Transform

#
Transforms the object or a deformable representation of the object.
IGH_GeometricGoo Transform(
Transform
xform
Transformation matrix.
)
Transformed geometry. If the local geometry can be transformed accurately, then the returned instance equals this instance. Not all geometry types can be accurately transformed under all circumstances though, if this is the case, this function will return an instance of another IGH_GeometricGoo derived type which can be transformed.

Write

This method is called whenever the instance is required to serialize itself.
bool Write(
writer
Writer object to serialize with.
)
inherited fromGH_ISerializable
True on success, false on failure.