mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 23:22:10 +00:00
Merge branch 'develop' of https://github.com/boostorg/geometry into feature/setops
This commit is contained in:
@@ -285,7 +285,7 @@ struct sectionalize_part
|
||||
section_type section;
|
||||
|
||||
bool mark_first_non_duplicated = true;
|
||||
std::size_t last_non_duplicate_index = 0;
|
||||
std::size_t last_non_duplicate_index = sections.size();
|
||||
|
||||
iterator_type it = boost::begin(range);
|
||||
|
||||
|
||||
@@ -22,14 +22,15 @@
|
||||
|
||||
//TEST
|
||||
//#include <to_svg.hpp>
|
||||
//#include <boost/geometry.hpp>
|
||||
//#include <boost/geometry/multi/geometries/multi_linestring.hpp>
|
||||
#include <boost/geometry.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_linestring.hpp>
|
||||
|
||||
template <typename T>
|
||||
void test_all()
|
||||
{
|
||||
typedef bg::model::point<T, 2, bg::cs::cartesian> pt;
|
||||
typedef bg::model::linestring<pt> ls;
|
||||
typedef bg::model::multi_linestring<ls> mls;
|
||||
|
||||
test_geometry<ls, ls>("LINESTRING(0 0,2 0)", "LINESTRING(0 0,2 0)", "tii", "txx");
|
||||
test_geometry<ls, ls>("LINESTRING(0 0,2 0)", "LINESTRING(2 0,0 0)", "tix", "txi");
|
||||
@@ -120,6 +121,10 @@ void test_all()
|
||||
// to_svg<ls, ls>("LINESTRING(31 0,15 0,10 5,5 5,4 0,1 0,0 0,-1 1)", "LINESTRING(-1 -1,0 0,1 0,2 0,2.5 1,3 0,30 0)", "test33.svg");
|
||||
// to_svg<ls, ls>("LINESTRING(31 0,15 0,10 5,5 5,4 0,1 0,0 0,-1 1)", "LINESTRING(30 0,3 0,2.5 1,2 0,1 0,0 0,-1 -1)", "test34.svg");
|
||||
//}
|
||||
|
||||
test_geometry<mls, mls>("MULTILINESTRING((0 0,10 0,30 0))",
|
||||
"MULTILINESTRING((0 10,5 0,20 0,20 0,30 0),(2 0,2 0),(3 0,3 0,3 0))",
|
||||
expected("mii")("ccc")("ccc")("txx"));
|
||||
}
|
||||
|
||||
int test_main(int, char* [])
|
||||
|
||||
Reference in New Issue
Block a user