Re: [brlcad-devel] [brlcad-users] Casting RT Structs
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Tom B. <tom...@gm...> - 2008-08-27 01:48:18
|
On Tue, Aug 26, 2008 at 3:29 PM, Butler, Lee Mr CIV USA USAMC <lee...@us...> wrote: > You have the right test. Unfortunately, it does not guarantee *symantic* correctness. A user can union a region below another region. It's wrong but possible. Now subtracting a region from another region is often worth doing. Yep, we've done that before. But is it correct to say the first region on a path is the "real" region? > As for converting to a struct region, my (very) vague recollection is that this is performed during prep time. > > One question is: Where did you get the rt_comb_internal? It comes from a function used by db_tree_walk for region starts. Function args to db_tree_walk include: rtip->rti_dbip, // database instance The args to the region_start function: struct db_tree_state* /* tsp */, struct db_full_path* pathp, const struct rt_comb_internal* combp, genptr_t client_data Inside this function is where I would like to get the struct region if possible. Thanks, Lee. -Tom |