mirror of https://github.com/CGAL/cgal
remove test that was using non-documented API
This commit is contained in:
parent
3658aa045a
commit
a51683e497
|
|
@ -36,12 +36,10 @@ typedef Rt_2::Edge Edge;
|
|||
typedef Rt_2::Rec_edge_2 R_edge_2;
|
||||
|
||||
void simple_point_set(PointMassList &points);
|
||||
void test_num_of_vertices_in_triangulation();
|
||||
void test_edge_collapse();
|
||||
|
||||
int main ()
|
||||
{
|
||||
test_num_of_vertices_in_triangulation();
|
||||
test_edge_collapse();
|
||||
}
|
||||
|
||||
|
|
@ -123,29 +121,6 @@ void test_edge_collapse()
|
|||
CGAL_USE(found);
|
||||
}
|
||||
|
||||
void test_num_of_vertices_in_triangulation()
|
||||
{
|
||||
std::cerr << "test_num_of_vertices_in_triangulation" << std::endl;
|
||||
|
||||
PointMassList points;
|
||||
simple_point_set(points);
|
||||
|
||||
CGAL::Optimal_transportation_reconstruction_2<K, Point_property_map, Mass_property_map> otr2;
|
||||
int nb = 0;
|
||||
for (PointMassList::iterator it = points.begin(); it != points.end(); it++)
|
||||
{
|
||||
PointMassPair pmp = *it;
|
||||
Point point = pmp.first;
|
||||
otr2.insert_point(point, false, nb++);
|
||||
}
|
||||
|
||||
Rt_2 rt2;
|
||||
otr2.extract_tds_output(rt2);
|
||||
|
||||
//test if vertices are indeed added to the Reconstruction_triangulation_2
|
||||
assert(points.size() == rt2.number_of_vertices());
|
||||
}
|
||||
|
||||
void simple_point_set(PointMassList &points)
|
||||
{
|
||||
points.push_back(std::make_pair(Point(0.1,0.1), 1));
|
||||
|
|
|
|||
Loading…
Reference in New Issue