|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71093 - trunk/boost/geometry/strategies/cartesian
From: bruno.lalande_at_[hidden]
Date: 2011-04-07 17:11:17
Author: bruno.lalande
Date: 2011-04-07 17:11:17 EDT (Thu, 07 Apr 2011)
New Revision: 71093
URL: http://svn.boost.org/trac/boost/changeset/71093
Log:
Actually enabled centroid linestring calculation for nD.
Text files modified:
trunk/boost/geometry/strategies/cartesian/centroid_weighted_length.hpp | 24 ++++--------------------
1 files changed, 4 insertions(+), 20 deletions(-)
Modified: trunk/boost/geometry/strategies/cartesian/centroid_weighted_length.hpp
==============================================================================
--- trunk/boost/geometry/strategies/cartesian/centroid_weighted_length.hpp (original)
+++ trunk/boost/geometry/strategies/cartesian/centroid_weighted_length.hpp 2011-04-07 17:11:17 EDT (Thu, 07 Apr 2011)
@@ -109,30 +109,15 @@
namespace services
{
-// Register this strategy for linestrings and polygons, in two or three dimensions
-template <typename Point, typename Geometry>
-struct default_strategy
-<
- cartesian_tag,
- linear_tag,
- 2,
- Point,
- Geometry
->
-{
- typedef weighted_length
- <
- Point,
- typename point_type<Geometry>::type
- > type;
-};
-template <typename Point, typename Geometry>
+// Register this strategy for linear geometries, in all dimensions
+
+template <std::size_t N, typename Point, typename Geometry>
struct default_strategy
<
cartesian_tag,
linear_tag,
- 3,
+ N,
Point,
Geometry
>
@@ -145,7 +130,6 @@
};
-
} // namespace services
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk