Hi, i’m trying to give a preview of a nurbs surface my plugin is generating before the users presses enter to confirm the settings.
In the CRhinoDisplayPipeline there is DrawNurbsSurface(const ON_NurbsSurface &nurbs_surface, int display_density=1), which is useful, but it only dispalys the wires. What i’d like is to offer a shaded preview of the nurbs surface.
Any idea how to get that done?
NOTE:what i tried was to try to use ON_Brep::Create(ON_NurbsSurface *&pNurbsSurface) method to create a Brep out of the ON_NurbsSurface, and use that to call DrawShadedBrep (brep), but the Create() method throws an access violation.