[C++] two dimensional surfaces don't show

I just tried to add an ON_NurbsSurface with m_dim = 2. The IsValid() function does not complain, but when I add it to the document I see nothing. When I make m_dim = 3 with zeroes in the third dimension, it works as expected and I see my flat surface.
Can you confirm that this is indeed the way it should work? Or am I missing something?

When you add a surface to the document, Rhino creates a Brep from it on your behalf. In order to add a surface to a Brep (ON_Brep::AddSurface), the surface must be dimension == 3.

1 Like