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

#
Create new render arguments.
public GH_RenderArgs(
doc,
Rhino document.
vp,
Viewport.
geometry,
Geometry list.
id,
Render plugin id.
materialCache
Material cache - can be Nothing.
)

GH_RenderArgs

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

Properties

Document

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

Geomety

#
Gets the geometry primitive list to append to.

MaterialCache

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

MaterialNormal

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

MaterialSelected

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

ModelTransform

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

PluginId

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

Viewport

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

ViewportName

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

Methods

PopModelTransform

#
public Transform PopModelTransform()

PushModelTransform

#
public void PushModelTransform(
transform
)