On Tue, Sep 3, 2013 at 5:48 AM, phoenix <[email protected]> wrote:
> 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.
>
> 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)?

The only way I can see is to add a slot for the db_i pointer to either
rt_comb_internal or rt_db_internal and make sure it is initialized
before any of the rt_XX_brep calls, but that feels clumsy even if
altering one of those structures can be done without introducing other
problems... hmm.

Sean, is there a standard way to get at db_i information while walking a tree?

CY

------------------------------------------------------------------------------
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

Reply via email to