Merge pull request #5637 from sloriot/PMP-hole_filling_empty_range_warning

Fix use of empty range
This commit is contained in:
Laurent Rineau 2021-04-28 15:22:41 +02:00
commit 795c931b55
2 changed files with 4 additions and 0 deletions

View File

@ -1226,6 +1226,8 @@ triangulate_hole_polyline(const PointRange1& points,
bool use_delaunay_triangulation,
const Kernel&)
{
CGAL_assertion(!points.empty());
typedef Kernel K;
typedef typename K::Point_3 Point_3;
#ifndef CGAL_HOLE_FILLING_DO_NOT_USE_DT3

View File

@ -423,6 +423,8 @@ namespace Polygon_mesh_processing {
OutputIterator out,
const NamedParameters& np)
{
if (points.empty()) return out;
using parameters::choose_parameter;
using parameters::get_parameter;