mirror of https://github.com/CGAL/cgal
unified the function call
This commit is contained in:
parent
0044439f82
commit
48706aa565
|
|
@ -80,11 +80,11 @@ int main(void)
|
|||
|
||||
|
||||
//begin
|
||||
std::vector<Point>::const_iterator sample_points_begin =
|
||||
CGAL::regularize_and_simplify_point_set<CGAL::Parallel_tag>(
|
||||
//std::vector<Point>::const_iterator sample_points_begin =
|
||||
CGAL::wlop_simplify_and_regularize_point_set<CGAL::Sequential_tag>(
|
||||
points.begin(),
|
||||
points.end(),
|
||||
//back_inserter(output),
|
||||
back_inserter(output),
|
||||
retain_percentage,
|
||||
neighbor_radius,
|
||||
iter_number,
|
||||
|
|
@ -93,18 +93,27 @@ int main(void)
|
|||
long memory = CGAL::Memory_sizer().virtual_size();
|
||||
std::cout << "total done: " << task_timer.time() << " seconds, "
|
||||
<< (memory>>20) << " Mb allocated" << std::endl;
|
||||
// Copy results to sample points
|
||||
std::copy(sample_points_begin,
|
||||
static_cast<std::vector<Point>::const_iterator>(points.end()),
|
||||
points_sampled.begin());
|
||||
|
||||
std::ofstream out(INPUT_FILENAME_WITHOUT_EXT + "_WLOPED.xyz");
|
||||
if (!out ||
|
||||
!CGAL::write_xyz_points(
|
||||
out, points_sampled.begin(), points_sampled.end()))
|
||||
!CGAL::write_xyz_points(
|
||||
out, output.begin(), output.end()))
|
||||
{
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Copy results to sample points
|
||||
/*std::copy(sample_points_begin,
|
||||
static_cast<std::vector<Point>::const_iterator>(points.end()),
|
||||
points_sampled.begin());
|
||||
|
||||
std::ofstream out(INPUT_FILENAME_WITHOUT_EXT + "_WLOPED.xyz");
|
||||
if (!out ||
|
||||
!CGAL::write_xyz_points(
|
||||
out, points_sampled.begin(), points_sampled.end()))
|
||||
{
|
||||
return EXIT_FAILURE;
|
||||
}*/
|
||||
//end
|
||||
|
||||
system("Pause");
|
||||
|
|
|
|||
Loading…
Reference in New Issue