[MOAB-dev] question about OBB

Iulian Grindeanu iulian at mcs.anl.gov
Mon May 2 10:46:52 CDT 2011


Hello,
Actually, I would like to have more control over the OBB tree creation/deletion or even update.
When I am modifying geometry (or meshes), instead of deleting the whole tree, and creating it again, I would like to
update "locally". Is that possible? 

So in the following scenario: 
I have a model with 200 surfaces. I would like to split one surface in 2, generate one more surface (and at least one edge)
Can I modify the tree locally?

It might be a too difficult job, and not worth the effort.

There are methods to build a "tree" from a range of entities, and join after that with an existing tree,
but I do not see any method to "delete" a tree (or a branch?)

Or am I missing something?

Thanks,
Iulian

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