Hi!
I'm implementing rt_comb_brep() which is going to convert a COMB to BREP with
NURBS boolean evaluations. But currently I have to pass in a db_i pointer every
time because the tree only stores names in its leaves, so we have to look up
the database and find the solids referred to in the COMB.
The tree in BRL-CAD is defined as a union. When traversing a comb tree, for a
non-leaf node, tr_b is used and for a leaf, tr_l is used. It seems that both of
them doesn't contain any information about the database. tr_a does have that
info, but I cannot find a node with op == OP_SOLID inside the tree.
As I cannot get that info within the tree, rt_comb_brep() must have a param
added for passing a db_i pointer:
void rt_comb_brep(ON_Brep **b, const struct rt_db_internal *ip, const struct
bn_tol *UNUSED(tol), struct db_i *db)
But other rt_XX_brep() functions doesn't have that pointer, so they are not
consistent. My question is, is that any way that we can eliminate that param
(for consistency and elegance) and find the solids referred to provided only a
tree (union tree)?
Thank you.
Cheers!
Wu
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel