Merged 71027,71093,71117 (centroid nD plus convert to detail)

[SVN r71120]
This commit is contained in:
Barend Gehrels
2011-04-08 15:43:58 +00:00
parent b38c8a16dd
commit 596cefb5b1
7 changed files with 18 additions and 16 deletions

View File

@@ -78,6 +78,7 @@ void test_2d()
template <typename P>
void test_3d()
{
test_centroid<bg::model::linestring<P> >("LINESTRING(1 2 3,4 5 -6,7 -8 9,-10 11 12,13 -14 -15, 16 17 18)", 5.6748865168734692, 0.31974938587214002, 1.9915270387763671);
test_centroid<bg::model::box<P> >("POLYGON((1 2 3,5 6 7))", 3, 4, 5);
test_centroid<P>("POINT(1 2 3)", 1, 2, 3);
}
@@ -93,6 +94,7 @@ int test_main(int, char* [])
#if defined(HAVE_TTMATH)
test_2d<bg::model::d2::point_xy<ttmath_big> >();
test_3d<boost::tuple<ttmath_big, ttmath_big, ttmath_big> >();
#endif
return 0;