Hallo zusammen,
schreib mir grad mit googletest ein 2d clipping test betreff geschwindigkeit.
so initialisieren sie das polygon bei boost im tutorial http://geometrylibrary.geodan.nl/03__polygon__example_8cpp-example.html
wollte ich so umsetzen. Jedoch ifnder er das polygon_2d net... und ich raff absolut net wieso... ich nutz doch genauso den namespace
Oder steh ich grad total auf dem schlauch?
schreib mir grad mit googletest ein 2d clipping test betreff geschwindigkeit.
Code:
int main(void)
{
using namespace boost::geometry;
// Define a polygon and fill the outer ring.
// In most cases you will read it from a file or database
polygon_2d poly;
{
const double coor[][2] = {
{2.0, 1.3}, {2.4, 1.7}, {2.8, 1.8}, {3.4, 1.2}, {3.7, 1.6},
{3.4, 2.0}, {4.1, 3.0}, {5.3, 2.6}, {5.4, 1.2}, {4.9, 0.8}, {2.9, 0.7},
{2.0, 1.3} // closing point is opening point
};
assign(poly, coor);
}
so initialisieren sie das polygon bei boost im tutorial http://geometrylibrary.geodan.nl/03__polygon__example_8cpp-example.html
Code:
TEST(TestClipping, Boost)
{
using namespace boost::geometry;
for(int i=0;i<1000000;i++){
// Define a polygon and fill the outer ring.
// In most cases you will read it from a file or database
polygon_2d poly;
{
const double coor[][2] = {{0.0, 0.0}, {50.0, 0.0}, {50.0, 200.0}, {0.0, 200.0} // closing point is opening point
};
assign(poly, coor);
}
}
}
wollte ich so umsetzen. Jedoch ifnder er das polygon_2d net... und ich raff absolut net wieso... ich nutz doch genauso den namespace
Oder steh ich grad total auf dem schlauch?