
Brandon Kohn wrote:
Hi all,
I've been doing some work for the past few weeks on a generative/generic 2D geometry library (leaving open the possibility for 3D in the future). The idea is for all the algorithms to be generative taking coordinate, point, segment, polyline/gon types as template parameters (or deducing where presented as nested typedefs) and specialized traits types for accessing type traits and methods ( things like access_traits<point_type>::get_x( point ) .). So far the library has allowed me to work with the same algorithms in native floating type and exact types like gmp's mpq_class. It's just a first rough draft of ideas, and I would really like some input from the community to see if I'm on the right track for something that boost would be interested in having. I'll post a copy of the lib in the va ult. It's header only (with a small testbed with trivial testing and a visual studio 2008 solution/project). I hope there should not be too many issues compiling these tests/headers under ot her platforms.
I'll put it in the vault as generative_geometry_algorithms.zip
link:
Thanks for any constructive input.
Apologies I haven't looked at your library yet but is it likely that the algorithms will be usable with eigen2* data types? Eigen2 seems to be the best open source small vector/matrix library right now for performance. At least that I can find. * http://eigen.tuxfamily.org/ Thanks, -- Michael Marcin