Just a thank you for the implementation of this. I’d expected doing some manual display overrides to be hard, but it’s this easy:
(where a ForEach-able container of items is supplied externally)
protected override void DrawForeground(Rhino.Display.DrawEventArgs e)
{
foreach (GeometryBase itm in items)
{
System.Drawing.Color clr = System.Drawing.Color.Red;
Rhino.Display.DisplayPen pen = new Rhino.Display.DisplayPen();
pen.Color = clr;
pen.Thickness = 3;
if (itm is Curve)
{
e.Display.DrawCurve((Curve) itm, pen);
}
}
}