On Tue, Aug 26, 2008 at 3:29 PM, Butler, Lee Mr CIV USA USAMC
<[EMAIL PROTECTED]> 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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to