mirror of https://github.com/CGAL/cgal
Merge pull request #5637 from sloriot/PMP-hole_filling_empty_range_warning
Fix use of empty range
This commit is contained in:
commit
795c931b55
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue