Subject: CGAL users discussion list
List archive
- From: "Kiran Varanasi" <>
- To:
- Subject: [cgal-discuss] spatial search tree for facets
- Date: Mon, 10 Nov 2008 14:52:02 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=H7dFdRESBB2FIX24E7Z8JuZcNg826nkFK2L8hfpVo6wE0A5pMXyzo7401yM+xq1F+B SwAuHrSGIJe9x4ck6pnXtVhtwmegl82RRY15UPHyrMpCtb34U6mc/ZJR8LDSLAEiTqdw Egwa/anCej9eQg0pBj2AgoTUrVUIGJodx+Xzc=
Hi all
I would like to implement a fast algorithm to check if a line segment intersects with any of the facets of a mesh (Polyhedron_3). My idea is to chop the line segment into tiny pieces and check if the bounding box of any of these pieces overlaps with the bounding box of a mesh facet. If yes, I will perform a costlier test of whether the line segment is exactly intersecting the facet (CGAL::do_intersect).
My idea is to hash the facets into a search tree by bounding boxes, and then perform the test on these bounding boxes.
CGAL has a data structure Neighbor_search_tree which works well, but I can insert only points into this search_tree. I would like to know if there is any similar data structure for bounding boxes.
Best Regards
Kiran
- [cgal-discuss] spatial search tree for facets, Kiran Varanasi, 11/10/2008
- Re: [cgal-discuss] spatial search tree for facets, Camille Wormser, 11/10/2008
Archive powered by MHonArc 2.6.16.