Vertex Search on GeodesicDome

posted 17 Nov 2011, 08:03 by Masahiro Takatsuka
To use the GeodesicDome data structure, I need to be able to search the neighborhood of a specified vertex according to the distance from it.
I implemented a simple algorithm, which builds a tree whose root is the specified vertex. The depth of the tree corresponds to the distance from vertices to the root vertex.
The following GeodesicDome was colored to confirm the tree structure.

Comments