RhinoCommon: Draw Extrusion object


In Rhinocommon (Rhino WIP), what’s the correct way of drawing an extrusion object?
There’s no mention of extrusions on

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

Many thanks,


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);