On Jul 14, 2013, at 6:55 AM, Harmanpreet Singh wrote:

> On Sun, Jun 30, 2013 at 8:56 AM, Christopher Sean Morrison
> <[email protected]> wrote:
> 
>> There's also WebGLU.  System GLU has limited support for visualizing trimmed 
>> NURBS.
> 
> ...snip...
> It also offers support for animation and partial .obj parser
> implemented to load objects. However, the developers didn't specify
> the support for visualizing trimmed NURBS.

I mentioned WebGLU not because it currently has support for NURBS but because 
it aims to provide GLU support, which specifies NURBS capability.  I'd already 
looked at their code and noticed they do not implement that piece.  The implied 
suggestion was to talk to them and ask if they had any plans for it, or to 
perhaps even investigate implementing it yourself, perhaps following GLU's 
implementation as an example.

>> You could also directly convert NURBS to Bezier surface patches, which 
>> you'll find a lot more support for:
> 
> Not getting you here.

You can deconstruct a NURBS surface into a set of Bezier surfaces, which are a 
more simple representation.  Our old "bspline" primitive implements NURBS 
support this way.  There's lots of toolkits that will visualize Bezier surfaces 
(web and otherwise) including the link below.  I believe the GLU implementation 
converts NURBS to Bezier, then to triangles. 

>> http://www.ibiblio.org/e-notes/Splines/Intro.htm
> 
> Above link uses CanvasMatrix.js, a javascript matrix library. It is
> offered by Apple Inc. here is its source code:
> http://www.ibiblio.org/e-notes/webgl/CanvasMatrix.src.js. I read the
> conditions of its use and seems favorable but senior developers must
> have a look. I didn't found anything related to this library except
> this single source file.

You must have focused on the 3D examples at the end.  Those links before the 
examples explain different representation forms including NURBS, Bezier 
patches, and subdivision surfaces.  Those explanations were actually the more 
important point.

There's no problem with that license; it's 2-clause BSD.

>> They almost certainly do not support NURBS OBJ files.  Rhino3D is one of the 
>> few tools I know of that implements support for NURBS OBJ files.
> 
> Rhino3D has proprietary license, hence is out of the race.

The point was that one is not likely to encounter NURBS OBJ files as little 
software supports them.  Most only support polygonal OBJ files.

Cheers!
Sean



------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to