|
Boost : |
Subject: Re: [boost] Preview 4 of the Generic Geometry Library (ggl)
From: Barend Gehrels (barend_at_[hidden])
Date: 2009-02-18 17:28:58
Luke,
> If I add triangle it goes to 11. Because my template code can generate the 10x10 instantiations of functions with ~O(10) template function definitions I'm not that intimidated by the idea of adding a triangle concept at some future point. I simply make it a refinement of polygon and it suddenly works with literally hundreds of different functions I've already defined.
I think our approach is the same in this way. The triangle example c04
shows that it can be implemented... as a specialization of a polygon...
7x7 versions really does not mean that there are 49 implementations.
> Your cartesian and sperical can each be converted to the other, putting them together in an equivalency class, whereas conversion from 45 to 90 is not generally allowable, making them equivalent in same contexts but not in others.
>
>
We don't convert them, we handle it as different coordinate systems with
different strategies.
This discussion concentrated on implementation details, but there is
more in this new preview. The library is really generic now, concepts
are everywhere, as requested by the list before. It can take any
std::vector or range, as requested by this list. It is coordinate system
agnostic and dimension agnostic, as requested by the list. How is
everything now? Let's put it in another way, is there any interest in
such a geometry library?
Regards, Barend
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk