[MOAB-dev] question about OBB

Tim Tautges tautges at mcs.anl.gov
Mon May 2 10:08:09 CDT 2011


Hmm, maybe that third argument should be true so the OBB gets deleted with the GTT?  Or, there should be an argument to 
the GTT constructor that passes through to that argument in OBBTree?

- tim

On 04/29/2011 05:19 PM, Iulian Grindeanu wrote:
> Hello,
> I have a question about OBB;
> When we use it in geom topo tool, the default constructor is called for obb:
> GeomTopoTool::GeomTopoTool(Interface *impl, bool find_geoments) :
>    mdbImpl(impl), sense2Tag(0), senseNEntsTag(0), senseNSensesTag(0),
>    geomTag(0), gidTag(0), obbTree(impl), contiguous(true), oneVolRootSet(0)
>
> This means that the obb sets are not deleted, even after GeomTopoTool is deleted. The third argument is by default false,
> (OrientedBoxTreeTool( Interface* i,
>                             const char* tag_name = 0,
>                             bool destroy_created_trees = false ))
>
>
> (if we would use obbTree(impl, 0, true), the OBB sets will be deleted when GeomTopoTool is deleted)
>
> Or is there another way to "clean" after the OBB?
>
> I am not quite sure about the lifecycle of OBB / and its sets
>
>
> Thanks,
> Iulian
>

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the moab-dev mailing list