On Fri, Jul 31, 2015 at 11:14 AM, Christopher Sean Morrison <brl...@mac.com> wrote:
> > Gurwinder, > > Sorry you had to leave the channel before getting a response when we were > deep into a conversation. > System down my side. Sorry from my side too. > > The g-xxx.c code is not a good example for getting at the pipe data > structure. Take a look at src/librt/primitives/pipe/pipe.c and look at one > of the simpler functions there that has an rt_db_internal (which you can > get with db_lookup()), like rt_pipe_describe(). > > Notice how that function extracts the rt_pipe_internal structure from the > idb_ptr and iterates over the pipe segment list. To access the bend > radius, just read the pp_bendradius field of that segment. There are many > examples you can follow in that file. > Ok, Thanks for it. I will do it and write you in my next mail about my progress. I'm also working on Bot and ARBN on POV-Ray side and I think I'll done these by today. -- Gurwinder Singh Bains http://gurwindersinghbains93.wordpress.com
------------------------------------------------------------------------------
_______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel