GH_RenderArgs

References
public class GH_RenderArgs
This class is passed to objects that implement IGH_RenderAwareData or IGH_RenderAwareObject during render queue operations.

Constructors

GH_RenderArgs

#
public GH_RenderArgs(RhinoDoc doc, ViewportInfo vp, RenderPrimitiveList geometry, Guid id, Dictionary<int, RenderMaterial> materialCache)
Create new render arguments.
doc (RhinoDoc)Rhino document.
vp (ViewportInfo)Viewport.
geometry (RenderPrimitiveList)Geometry list.
id (Guid)Render plugin id.
materialCache (Dictionary<int, RenderMaterial>)Material cache - can be Nothing.

GH_RenderArgs

#
public GH_RenderArgs(RhinoDoc doc, ViewportInfo vp, RenderPrimitiveList geometry, Guid id, RenderMaterial matNormal, RenderMaterial matSelected)
Create new render arguments.
doc (RhinoDoc)Rhino document.
vp (ViewportInfo)Viewport.
geometry (RenderPrimitiveList)Geometry list.
id (Guid)Render plugin id.
matNormal (RenderMaterial)Material for unselected objects.
matSelected (RenderMaterial)Material for selected objects.

Properties

Document

#
public RhinoDoc Document { get; }
Gets the rhino document from whence the render originated.

Geomety

#
Gets the geometry primitive list to append to.

MaterialCache

#
[EditorBrowsable(EditorBrowsableState.Never)] public Dictionary<int, RenderMaterial> MaterialCache { get; }
Gets the material cache.

MaterialNormal

#
public RenderMaterial MaterialNormal { get; }
obsoleteThe render arguments no longer provide material hints
Gets the material hint to use for unselected objects.

MaterialSelected

#
public RenderMaterial MaterialSelected { get; }
obsoleteThe render arguments no longer provide material hints
Gets the material hint to use for selected objects.

ModelTransform

#Since v8.0
public Transform ModelTransform { get; }
Gets the current model transform.

PluginId

#
public Guid PluginId { get; }
Gets the render plugin id that is about to render this geometry.

Viewport

#
public ViewportInfo Viewport { get; }
Gets the viewport details involved in this rendering.

ViewportName

#Since v8.0
public string ViewportName { get; }
Gets the viewport name involved in this rendering.

Methods

PopModelTransform

#
public Transform PopModelTransform()

PushModelTransform

#
public void PushModelTransform(Transform transform)
transform (Transform)