Bugfix: Poisson requires *oriented* normals

This commit is contained in:
Simon Giraudot 2016-09-30 09:15:06 +02:00
parent 95baff0111
commit 416dcaa6a1
1 changed files with 7 additions and 0 deletions

View File

@ -402,6 +402,13 @@ namespace SurfaceReconstruction
CGAL::jet_estimate_normals<Concurrency_tag>(points.begin_or_selection_begin(), points.end(),
CGAL::make_normal_of_point_with_normal_pmap(Point_set::value_type()),
2 * neighbors);
points.set_first_selected
(CGAL::mst_orient_normals(points.begin_or_selection_begin(), points.end(),
CGAL::make_normal_of_point_with_normal_pmap(Point_set::value_type()),
2 * neighbors));
points.delete_selection(); // remove unoriented points
}
}