Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] serialize AABB structure?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] serialize AABB structure?


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] serialize AABB structure?
  • Date: Mon, 09 Jul 2012 11:12:04 +0200

<>
writes:

> I'm using CGAL's AABB tree for closest point queries, and it is very fast
> (except for the first query..weird). However, construction takes 5-10
> seconds,
> which is annoying. Is there functionality to save/load the tree structure to
> disk?

Unfortunately, there isn't, but it would definitely a nice to have
feature. You will need to serialize the internal AABB_node structure of
the tree, the AABB_search_tree and the primitives that make up the
tree. Have a look at the two members m_primitives and m_p_root_node in
AABB_tree.

The biggest problem I see is generic serialization of all number types,
but you can probably forgo that and use something that only works for
the type and primitives you use. The serialization of the node structure
and the search_tree should be do-able as well.




Archive powered by MHonArc 2.6.18.

Top of Page