[TypeName("Model Object")] [TypeDescription("Rhino model object")] public sealed class ModelObject : ModelComponentContent, IGH_BakeAwareData, IGH_PreviewData, IGH_PreviewMeshData, IGH_RenderAwareData
Represents a Rhino model object. Wraps the functionality of the RhinoObject type.

Constructors

ModelObject

#
public ModelObject()

ModelObject

#
public ModelObject(
Attributes
attributes
)

ModelObject

#
public ModelObject(
id
)

ModelObject

#
public ModelObject(
document,
objectAttributes,
geometry
)

ModelObject

#
public ModelObject(
document,
objectAttributes
)

ModelObject

#
public ModelObject(
rhinoObject
)

Fields

Serial

protected internal int Serial
inherited fromModelData

Properties

Attribs

#
protected internal ModelObject.Attributes Attribs { get; set; }

BoundingBox

#
[Browsable(false)] public BoundingBox BoundingBox { get; }
Explicit

IGH_PreviewData.ClippingBox

#
[Browsable(false)] BoundingBox ClippingBox
ClippingBox

DefaultAttributes

#
protected override ModelData.Attributes DefaultAttributes { get; }

Display

#
public ObjectDisplay Display { get; }

DisplayName

[Browsable(false)] public string DisplayName { get; }
inherited fromModelData
DisplayName

Drafting

#
public ObjectDrafting Drafting { get; }

Frame

#
[Browsable(false)] public Plane? Frame { get; }

Id

public Guid? Id { get; }
inherited fromModelContent

IsReferencedData

protected bool IsReferencedData { get; }
inherited fromModelContent
IsReferencedData

IsReferencedDataLoaded

protected bool IsReferencedDataLoaded { get; }
inherited fromModelContent

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

#
protected override string IsValidWhyNot { get; }

Layer

#
public ModelLayer Layer { get; }

Name

public virtual ModelContentName Name { get; }
inherited fromModelContent

Notes

public string Notes { get; }
inherited fromModelContent

ObjectType

#
public ObjectType ObjectType { get; }

ObjectTypeMask

#
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static ObjectType ObjectTypeMask { get; set; }

Parent

public ModelContentName Parent { get; }
inherited fromModelContent

Render

#
public ObjectRender Render { get; }

SectionStyle

#
public ObjectSectionStyle.Value? SectionStyle { get; }

Tags

public ModelTags Tags { get; }
inherited fromModelContent

TypeDescription

protected string TypeDescription { get; }
inherited fromModelData
TypeDescription

TypeName

#
public override string TypeName { get; }

Url

#
public string Url { get; }

UserText

public ModelUserText UserText { get; }
inherited fromModelComponentContent

Visibility

#
public ObjectVisibility Visibility { get; }

Methods

Explicit

IGH_RenderAwareData.AppendRenderGeometry

#
void AppendRenderGeometry()

AsFrozen

Try to obtain a dereferenced snapshot of itself.
public ModelContent AsFrozen(
deep = true
Determines whether or not referenced content should also be frozen.
)
inherited fromModelContent
Itself if it is already dereferenced.
Explicit

IGH_BakeAwareData.BakeGeometry

#
bool BakeGeometry(
doc,
att,
ref Guid
obj_guid
)
BakeGeometry

Cast

#
public static ModelObject Cast(
source
)

CastTo<T>

#
public override bool CastTo<T>(
ref T
target
)
Explicit

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()
Explicit

IGH_PreviewData.DrawViewportMeshes

#
void DrawViewportMeshes()
DrawViewportMeshes
Explicit

IGH_PreviewData.DrawViewportWires

#
void DrawViewportWires()
DrawViewportWires

Equals

public bool Equals()
inherited fromModelContent

Equals

public bool Equals(
other
)
inherited fromModelData

Equals

public override bool Equals(
other
)
inherited fromModelContent
ModelData.Equals

GetBoundingBox

#
public BoundingBox GetBoundingBox(
xform
)

GetHashCode

public override int GetHashCode()
inherited fromModelContent
Explicit

IGH_PreviewMeshData.GetPreviewMeshes

#
Mesh[] GetPreviewMeshes()
GetPreviewMeshes

InternaliseData

protected bool InternaliseData()
inherited fromModelContent

LoadReferencedData

protected virtual bool LoadReferencedData()
inherited fromModelContent
LoadReferencedData

Read

protected override bool Read(
reader
)
inherited fromModelContent
ModelData.Read
Read

RenderItem

protected virtual bool RenderItem(
graphics,
area,
alpha
)
inherited fromModelContent

RuntimeId

protected internal Guid? RuntimeId(
document
)
inherited fromModelContent

ToAttributes

#
public ModelObject.Attributes ToAttributes()

ToDetails

public string ToDetails()
inherited fromModelData

TooltipString

#
public override string TooltipString()

ToString

#
public override string ToString()

UnloadReferencedData

protected virtual void UnloadReferencedData()
inherited fromModelContent

Write

protected override bool Write(
writer
)
inherited fromModelContent
ModelData.Write
Write

Convertors

OperationResultDescription
implicitModelObject.AttributesModelObject
implicitRhinoObjectModelObject