Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] can't create stl containers of type AABB tree in CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] can't create stl containers of type AABB tree in CGAL


Chronological Thread 
  • From: Zohar <>
  • To:
  • Subject: Re: [cgal-discuss] can't create stl containers of type AABB tree in CGAL
  • Date: Mon, 17 Mar 2014 09:29:24 -0700 (PDT)


Please let me be more specific:

1. There is a default constructor for AABB, so there's no problem with:

map<int, AABB_tree> i2t;

Then populate a tree:

map<int, AABB_tree>::iterator it;
it->rebuild(..);

with another tree sequence.

2. By shared memory I mean:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa366551%28v=vs.85%29.aspx

Allocate enough memory for your tree, cast the pointer to AABB*, populate it
(using rebuild), and it would live beyond your .mex.

3. Second option use:

http://www.boost.org/doc/libs/1_55_0/libs/serialization/doc/tutorial.html

To save your tree, and then load it again.




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/can-t-create-stl-containers-of-type-AABB-tree-in-CGAL-tp4658973p4658981.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page