Skip to content
Snippets Groups Projects
Commit da6c16f9 authored by Tom Fischer's avatar Tom Fischer
Browse files

[T/GL] Set point ids in test.

parent 697b3a92
No related branches found
No related tags found
No related merge requests found
...@@ -23,21 +23,22 @@ TEST(GeoLib, TestComputeAndInsertAllIntersectionPoints) ...@@ -23,21 +23,22 @@ TEST(GeoLib, TestComputeAndInsertAllIntersectionPoints)
{ {
// *** insert points in vector // *** insert points in vector
std::vector<GeoLib::Point*> *pnts(new std::vector<GeoLib::Point*>); std::vector<GeoLib::Point*> *pnts(new std::vector<GeoLib::Point*>);
pnts->push_back(new GeoLib::Point(0.0,0.0,0.0)); pnts->push_back(new GeoLib::Point(0.0,0.0,0.0,0));
pnts->push_back(new GeoLib::Point(11.0,0.0,0.0)); pnts->push_back(new GeoLib::Point(11.0,0.0,0.0,1));
pnts->push_back(new GeoLib::Point(0.0,1.0,0.0,2));
pnts->push_back(new GeoLib::Point(1.0,-1.0,0.0,3));
pnts->push_back(new GeoLib::Point(2.0, 1.0,0.0,4));
pnts->push_back(new GeoLib::Point(3.0,-1.0,0.0,5));
pnts->push_back(new GeoLib::Point(4.0, 1.0,0.0,6));
pnts->push_back(new GeoLib::Point(5.0,-1.0,0.0,7));
pnts->push_back(new GeoLib::Point(6.0, 1.0,0.0,8));
pnts->push_back(new GeoLib::Point(7.0,-1.0,0.0,9));
pnts->push_back(new GeoLib::Point(8.0, 1.0,0.0,10));
pnts->push_back(new GeoLib::Point(9.0,-1.0,0.0,11));
pnts->push_back(new GeoLib::Point(10.0, 1.0,0.0,12));
pnts->push_back(new GeoLib::Point(11.0,-1.0,0.0,13));
pnts->push_back(new GeoLib::Point(0.0,1.0,0.0));
pnts->push_back(new GeoLib::Point(1.0,-1.0,0.0));
pnts->push_back(new GeoLib::Point(2.0, 1.0,0.0));
pnts->push_back(new GeoLib::Point(3.0,-1.0,0.0));
pnts->push_back(new GeoLib::Point(4.0, 1.0,0.0));
pnts->push_back(new GeoLib::Point(5.0,-1.0,0.0));
pnts->push_back(new GeoLib::Point(6.0, 1.0,0.0));
pnts->push_back(new GeoLib::Point(7.0,-1.0,0.0));
pnts->push_back(new GeoLib::Point(8.0, 1.0,0.0));
pnts->push_back(new GeoLib::Point(9.0,-1.0,0.0));
pnts->push_back(new GeoLib::Point(10.0, 1.0,0.0));
pnts->push_back(new GeoLib::Point(11.0,-1.0,0.0));
GeoLib::GEOObjects geo_objs; GeoLib::GEOObjects geo_objs;
std::string geo_name("TestGeometry"); std::string geo_name("TestGeometry");
...@@ -48,7 +49,7 @@ TEST(GeoLib, TestComputeAndInsertAllIntersectionPoints) ...@@ -48,7 +49,7 @@ TEST(GeoLib, TestComputeAndInsertAllIntersectionPoints)
ply0->addPoint(0); ply0->addPoint(0);
ply0->addPoint(1); ply0->addPoint(1);
GeoLib::Polyline* ply1(new GeoLib::Polyline(*pnts)); GeoLib::Polyline* ply1(new GeoLib::Polyline(*pnts));
for (std::size_t k(2); k<14; k++) for (std::size_t k(2); k<pnts->size(); ++k)
ply1->addPoint(k); ply1->addPoint(k);
std::vector<GeoLib::Polyline*>* plys(new std::vector<GeoLib::Polyline*>); std::vector<GeoLib::Polyline*>* plys(new std::vector<GeoLib::Polyline*>);
plys->push_back(ply0); plys->push_back(ply0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment