GH_PreviewUtil

public sealed class GH_PreviewUtil : IDisposable
This class exposes functionality that makes it easy to draw temporary geometry in Rhino viewports.

Constructors

GH_PreviewUtil

#
public GH_PreviewUtil()

GH_PreviewUtil

#
public GH_PreviewUtil(
enable
)

Properties

Enabled

#
Gets or sets the enabled state of this Preview util.
public bool Enabled { get; set; }

WireColour

#
Gets or sets the colour to use for Preview geometry.
public Color WireColour { get; set; }

Methods

AddBox

#
Add a box to the temporary Preview lists.
public void AddBox(
box
Box to add.
)

AddBrep

#
Add a brep to the temporary Preview lists.
public void AddBrep(
brep
Brep to add. Invalid breps will be ignored.
)

AddCurve

#
Add a curve to the temporary Preview lists.
public void AddCurve(
curve
Curve to add. Invalid curves will be ignored.
)

AddLine

#
Add a line to the temporary Preview lists.
public void AddLine(
line
Line to add. Invalid lines will be ignored.
)

AddMesh

#
Add a mesh to the temporary Preview lists.
public void AddMesh(
mesh
Mesh to add. Invalid meshes will be ignored.
)

AddPlane

#
Add a plane to the temporary Preview lists.
public void AddPlane(
plane
Plane to add. Invalid planes will be ignored.
)

AddPoint

#
Add a point to the temporary Preview lists.
public void AddPoint(
point
Point to add. Invalid points will be ignored.
)

AddVector

#
Add a vector to the temporary Preview lists.
public void AddVector(
vector
Vector to add. Invalid vectors will be ignored.
)

Clear

#
Clear all temporary geometry.
public void Clear()

Dispose

#
public void Dispose()

Redraw

#
Forces a redraw the the viewports.
public void Redraw()