[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)
attributes (ModelObject.Attributes)

ModelObject

#
public ModelObject(Guid id)
id (Guid)

ModelObject

#
public ModelObject(RhinoDoc document, ObjectAttributes objectAttributes, GeometryBase geometry)
document (RhinoDoc)
objectAttributes (ObjectAttributes)
geometry (GeometryBase)

ModelObject

#
public ModelObject(RhinoDoc document, ObjectAttributes objectAttributes)
document (RhinoDoc)
objectAttributes (ObjectAttributes)

ModelObject

#
public ModelObject(RhinoObject rhinoObject)
rhinoObject (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(GH_RenderArgs args, RenderMaterial material)
args (GH_RenderArgs)
material (RenderMaterial)

AsFrozen

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

IGH_BakeAwareData.BakeGeometry

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

Cast

#
public static ModelObject Cast(object source)
source (object)

CastTo<T>

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

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()
Explicit

IGH_PreviewData.DrawViewportMeshes

#
void DrawViewportMeshes(GH_PreviewMeshArgs args)
args (GH_PreviewMeshArgs)
DrawViewportMeshes
Explicit

IGH_PreviewData.DrawViewportWires

#
void DrawViewportWires(GH_PreviewWireArgs args)
args (GH_PreviewWireArgs)
DrawViewportWires

Equals

public bool Equals(ModelContent other)
inherited fromModelContent
other (ModelContent)

Equals

public bool Equals(ModelData other)
inherited fromModelData
other (ModelData)

Equals

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

GetBoundingBox

#
public BoundingBox GetBoundingBox(Transform xform)
xform (Transform)

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(GH_IReader reader)
inherited fromModelContent
reader (GH_IReader)
ModelData.Read
Read

RenderItem

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

RuntimeId

protected internal Guid? RuntimeId(RhinoDoc document)
inherited fromModelContent
document (RhinoDoc)

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(GH_IWriter writer)
inherited fromModelContent
writer (GH_IWriter)
ModelData.Write
Write

Convertors

OperationResultDescription
implicitModelObject.AttributesModelObject
implicitRhinoObjectModelObject