Gurwinder,

Sorry you had to leave the channel before getting a response when we were deep 
into a conversation.  

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.

Cheers!
Sean
 
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to