Hi,

I'm currently writing a 3dm to osb converter based
on OpenNURBS. I am using the opennurbs_gl.cpp sample
as a basis (it renders a 3dm file directly into OpenGL).
The trickiest part of the conversion are the NURBS. I got
stuck with the trimming and hopefully Akos or Patrik will
have time to look into it. Now I have a different problem.
Rhino of course supports also polylines. In the opennurbs
sample those lines are not mapped into GL_LINES but into
1st degree curves. To do so, it uses calls to

gluBeginCurve(...);
gluNurbsCurve(...);
gluEndCurve(...);


As if it is a trim curve. In OpenSG this would be something like
this:

    SurfacePtr surface;
    NodePtr ret = makeCoredNode<Surface>(&surface);

    beginEditCP(surface);
       surface->addCurve(...);
    endEditCP(surface);


Unfortunately, I don't see anything in the output osb. My
question is, if this is a "legal" OpenSG surface or if there's
just anything missing.

Regards,

  Toni



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to