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.

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?

Lee

----- Original Message -----
From: Tom Browder <[EMAIL PROTECTED]>
Date: Tuesday, August 26, 2008 15:49
Subject: [brlcad-users] Casting RT Structs
To: [email protected]

> If I have a 'struct rt_comb_internal' pointer (say, combp):
> 
> 1. How do I confirm it's a region?
> 
>      I believe I test combp->region_flag for truth.  If it is true,
> does that guarantee any regions below it are not acting as regions?
> 
> 2. If it's possible, how do I manipulate combp to get to its 
> region pointer?
> 
> Thanks.
> 
> -Tom
> 
> -------------------------------------------------------------------
> ------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challengeBuild 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 Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/brlcad-users

-------------------------------------------------------------------------
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 Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to