Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69582 - trunk/libs/geometry/test/geometries
From: barend.gehrels_at_[hidden]
Date: 2011-03-05 08:54:35


Author: barendgehrels
Date: 2011-03-05 08:54:32 EST (Sat, 05 Mar 2011)
New Revision: 69582
URL: http://svn.boost.org/trac/boost/changeset/69582

Log:
Small renaming and comments
Text files modified:
   trunk/libs/geometry/test/geometries/boost_polygon_overlay.cpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/libs/geometry/test/geometries/boost_polygon_overlay.cpp
==============================================================================
--- trunk/libs/geometry/test/geometries/boost_polygon_overlay.cpp (original)
+++ trunk/libs/geometry/test/geometries/boost_polygon_overlay.cpp 2011-03-05 08:54:32 EST (Sat, 05 Mar 2011)
@@ -1,6 +1,6 @@
 // Boost.Geometry (aka GGL, Generic Geometry Library) test file
 //
-// Copyright Barend Gehrels 2010, Geodan, Amsterdam, the Netherlands
+// Copyright Barend Gehrels 2011, Geodan, Amsterdam, the Netherlands
 // Use, modification and distribution is subject to the Boost Software License,
 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
@@ -18,7 +18,7 @@
 #include<iostream>
 
 template <typename T>
-void test_overlay_using_bp(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q)
+void test_overlay_using_boost_polygon(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q)
 {
     typedef boost::polygon::polygon_set_data<T> polygon_set;
 
@@ -26,7 +26,7 @@
     polygon_set out_i, out_u;
 
     {
- // Read it using Boost.Geometry
+ // Read polygons, conveniently using Boost.Geometry
         typedef boost::geometry::model::multi_polygon
             <
                 boost::polygon::polygon_with_holes_data<T>
@@ -65,7 +65,7 @@
 
 
 template <typename T>
-void test_overlay_using_bg(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q)
+void test_overlay_using_boost_geometry(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q)
 {
     typedef boost::geometry::model::multi_polygon
         <
@@ -104,8 +104,8 @@
 template <typename T>
 void test_overlay(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q)
 {
- test_overlay_using_bp<T>(case_id, wkt_p, wkt_q);
- test_overlay_using_bg<T>(case_id, wkt_p, wkt_q);
+ test_overlay_using_boost_polygon<T>(case_id, wkt_p, wkt_q);
+ test_overlay_using_boost_geometry<T>(case_id, wkt_p, wkt_q);
 }
 
 
@@ -116,4 +116,4 @@
     test_overlay<int>("case 2", "MULTIPOLYGON(((200 400,100 400,100 300,200 400)),((300 100,200 100,200 0,300 0,300 100)),((600 700,500 700,500 600,600 700)),((700 300,600 300,600 200,700 300)),((800 500,700 600,700 500,800 500)),((900 800,800 700,900 700,900 800)),((1000 200,900 100,1000 100,1000 200)),((1000 800,900 900,900 800,1000 800)))",
         "MULTIPOLYGON(((200 800,100 800,100 700,200 700,200 800)),((400 200,300 100,400 100,400 200)),((400 800,300 700,400 700,400 800)),((700 100,600 0,700 0,700 100)),((700 200,600 200,600 100,700 200)),((900 200,800 200,800 0,900 0,900 200)),((1000 300,900 200,1000 200,1000 300)))");
     return 0;
-}
\ No newline at end of file
+}


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