GH_PreviewArgs

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

Properties

DefaultCurveThickness

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

Display

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

Document

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

MeshingParameters

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

ShadeMaterial

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

ShadeMaterial_Selected

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

Viewport

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

WireColour

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

WireColour_Selected

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