Represents an implementation of a Rhino hatch.

Constructors

GH_Hatch

#
Default constructor, creates an invalid hatch.
public GH_Hatch()

GH_Hatch

#
Create a duplicate of another GH_Hatch. This constructor also copies reference data.
public GH_Hatch(
GH_Hatch
other
Hatch to duplicate
)

GH_Hatch

#
Create a new referenced hatch that references a Rhino hatch with the specified ID.
public GH_Hatch(
ref_guid
ID of hatch object to reference.
)

GH_Hatch

#
Create a duplicate of an existing hatch.
public GH_Hatch(
hatch,
Hatch to duplicate
pattern
)

GH_Hatch

#
Create a duplicate of an existing hatch.
public GH_Hatch(
hatch
Hatch to duplicate
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

BackgroundColor

#
public Color BackgroundColor { get; set; }

BackgroundPlotColor

#
public Color BackgroundPlotColor { get; set; }

BoundaryColor

#
public Color BoundaryColor { get; set; }

BoundaryColorSource

#
public ItemColorSource BoundaryColorSource { get; set; }

BoundaryPlotColor

#
public Color BoundaryPlotColor { get; set; }

BoundaryPlotColorSource

#
public ItemColorSource BoundaryPlotColorSource { get; set; }

BoundaryPlotWeightMillimeters

#
public double BoundaryPlotWeightMillimeters { get; set; }

BoundaryVisible

#
public bool BoundaryVisible { get; set; }

BoundingBox

#
public override BoundingBox BoundingBox { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

IsGeometryLoaded

#
Gets the load state of this hatch object. The hatch is considered to be loaded when the local hatch instance is not null.
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 this hatch. If the hatch is referenced but cannot be loaded, the hatch is not valid.
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; }

Pattern

#
public ModelHatchPattern Pattern { get; set; }

ReferenceID

#
public override Guid ReferenceID { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

#
public override Hatch Value { get; set; }

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 volatile caches for this instance. The boundingbox is cleared, and if the hatch is referenced, the local instance of the hatch is erased.
public override void ClearCaches()

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateGeometry

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

DuplicateHatch

#
Create a duplicate of this hatch.
public GH_Hatch DuplicateHatch()

EmitProxy

#
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

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

Morph

#
public override IGH_GeometricGoo Morph(
xmorph
)

Read

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

ScriptVariable

#
public override object ScriptVariable()

ToString

#
Format the hatch 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