mirror of https://github.com/CGAL/cgal
fixed 2D test suite (compiles and runs on Linux)
This commit is contained in:
parent
c3cdf194b5
commit
dc76a09bed
|
|
@ -42,11 +42,6 @@ void test_2D()
|
||||||
quality = linear_least_squares_fitting_2(points.begin(),points.end(),line,centroid,k);
|
quality = linear_least_squares_fitting_2(points.begin(),points.end(),line,centroid,k);
|
||||||
std::cout << "done (quality: " << quality << ")" << std::endl;
|
std::cout << "done (quality: " << quality << ")" << std::endl;
|
||||||
|
|
||||||
Vector_2 v = line.to_vector();
|
|
||||||
v = v / std::sqrt(v*v); // normalize
|
|
||||||
std::cout << "vector: " << v.x() << " "
|
|
||||||
<< v.y() << std::endl;
|
|
||||||
|
|
||||||
if(!line.is_horizontal())
|
if(!line.is_horizontal())
|
||||||
{
|
{
|
||||||
std::cout << "failure" << std::endl;
|
std::cout << "failure" << std::endl;
|
||||||
|
|
@ -65,6 +60,7 @@ void test_2D_point_set(const unsigned int nb_points)
|
||||||
|
|
||||||
std::cout << "generate " << nb_points <<
|
std::cout << "generate " << nb_points <<
|
||||||
" 2D points on a horizontal line...";
|
" 2D points on a horizontal line...";
|
||||||
|
std::list<Point_2> points;
|
||||||
points_on_segment_2(p,q,100,std::back_inserter(points));
|
points_on_segment_2(p,q,100,std::back_inserter(points));
|
||||||
std::cout << "done " << std::endl;
|
std::cout << "done " << std::endl;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue