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(bool enable)
enable (bool)

Properties

Enabled

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

WireColour

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

Methods

AddBox

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

AddBrep

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

AddCurve

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

AddLine

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

AddMesh

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

AddPlane

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

AddPoint

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

AddVector

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

Clear

#
public void Clear()
Clear all temporary geometry.

Dispose

#
public void Dispose()

Redraw

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