RhinoCommon: Draw Extrusion object

Hello,

In Rhinocommon (Rhino WIP), what’s the correct way of drawing an extrusion object?
There’s no mention of extrusions on
http://developer.rhino3d.com/api/RhinoCommon/html/Methods_T_Rhino_Display_DisplayPipeline.htm

Presumeably I will need to convert them to meshes or breps beforehand?
Which is better?
Or have I overlooked something?

Many thanks,

Daniel

If you want to draw it shaded, you need to get a mesh representation.
In Wireframe mode, however, you could just do this:

Extrusion ext; // defined elsewhere
Curve[] wires = ext.GetWireframe();
for (int i = 0; i < wires.Length; ++i)
    dp.DrawCurve(wires[i], dp.DisplayPipelineAttributes.CurveColor);