|
Boost Users : |
From: Jeremy Graham Siek (jsiek_at_[hidden])
Date: 2004-06-15 22:07:49
Hi Jason,
To access the colors, store a color property map in the visitor (pass
it into the constructor).
Take a look at
libs/boost/example/bfs-example2.cpp
to see how to access property maps and store them in a visitor.
Cheers,
Jeremy
On Jun 15, 2004, at 4:38 PM, Jason Crosswhite wrote:
> Hello,
>
> I am just starting to use the BGL, and have been beating my head upon
> a problem. I am needing to find an irregularly bounded set of points
> in three dimensional space. The points are within a convex hull and
> the graph edges are edges in a delaunay triangulation. I want to
> start at a node known to be on the hull, and crawl through the inside
> with either depth first or breadth first search. If you are on the
> hull, you would not allow the search to continue outside the hull.
>
> I thought of doing this with a simple visitor, and color the unwanted
> vertices black. However, from inside the scope of the visitor, I do
> not believe I can have access to the colors. Several ugly hacks come
> to mind, but I would like to know if there is an easy way of doing
> this first?
>
> -Jason Crosswhite
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
_______________________________________________
Jeremy Siek <jsiek_at_[hidden]>
http://www.osl.iu.edu/~jsiek
Ph.D. Candidate, Indiana University Bloomington
C++ Booster (http://www.boost.org)
_______________________________________________
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net