GH_PreviewArgs

This class is passed to Objects that implement IGH_PreviewObject during drawing operations.

Properties

DefaultCurveThickness

#
Gets the curve thickness as defined by the viewport display scheme.
public int DefaultCurveThickness { get; }

Display

#
Gets the Pipeline that is being used to draw the current preview.
public DisplayPipeline Display { get; }
Display

Document

#
Gets the Grasshopper document that is currently drawing the preview.
public GH_Document Document { get; }
Document

MeshingParameters

#
Gets the meshing parameters to be used during meshing breps.
public MeshingParameters MeshingParameters { get; }
MeshingParameters

ShadeMaterial

#
Gets the document default material for unselected Faces.
public DisplayMaterial ShadeMaterial { get; }
ShadeMaterial

ShadeMaterial_Selected

#
Gets the document default material for selected Faces.
public DisplayMaterial ShadeMaterial_Selected { get; }

Viewport

#
Gets the Viewport in which the current preview is drawn.
public RhinoViewport Viewport { get; }
Viewport

WireColour

#
Gets the document default colour for unselected Wires.
public Color WireColour { get; }
WireColour

WireColour_Selected

#
Gets the document default colour for selected Wires.
public Color WireColour_Selected { get; }