Hi Raj,

> Through this thread my plan is to understand the nurb and brep and how
> much I could accomodate in the GSOC timeline.
> 
I'm pretty sure you can implement full python support for the BRL-CAD
BREP/NURBs primitives, it is a matter of understanding the data
structures and how to manipulate those structures the best in python.
> 
> First and foremost what is a nurb ?

This is a good start:

http://en.wikipedia.org/wiki/NURB

http://en.wikipedia.org/wiki/BREP

> Secondly how is it created in brlcad ?
>      Like I see a mk_vol and mk_metaball, I dont see a mk_nurb the
> closest I find is rt_nurb_mk_poly.

There's likely no mk_... method, but all primitives can be exported
using wdb_export. For a concrete example in the python-brlcad context,
see:

https://github.com/ncsaba/python-brlcad/blob/master/brlcad/wdb.py#L261

In short, you need to create the rt_nurb_internal structure, then pass
it to wdb_export.

The complexity of the project lies in the actual translation between the
C/C++ data structures for the NURB and whatever you choose in python to
represent the same. At the same time the python code should allow easy
manipulation of those structures in python to facilitate
building/modifying/scripting them, that's the whole point of the
project... for that you need to understand the NURB concept and be able
to build some geometry based on it, to be able to write code which makes
it easy to do that !

Cheers,
Csaba



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to