dust3d/thirdparty/cgal/CGAL-5.1/include/CGAL/Mesher_level_default_implem...

135 lines
3.4 KiB
C
Raw Normal View History

// Copyright (c) 2005 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
2020-10-13 12:44:25 +00:00
// This file is part of CGAL (www.cgal.org)
//
2020-10-13 12:44:25 +00:00
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Mesher_level/include/CGAL/Mesher_level_default_implementations.h $
// $Id: Mesher_level_default_implementations.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : Laurent RINEAU
#ifndef CGAL_MESHER_LEVEL_DEFAULT_IMPLEMENTATIONS_H
#define CGAL_MESHER_LEVEL_DEFAULT_IMPLEMENTATIONS_H
#include <CGAL/disable_warnings.h>
#include <CGAL/Mesher_level.h>
namespace CGAL {
/** This class implements the two get_triangulation_ref() functions.
\param Tr The triangulation type */
template <class Tr>
class Triangulation_ref_impl
{
Tr& tr;
public:
2020-10-13 12:44:25 +00:00
Triangulation_ref_impl(Tr& t) : tr(t)
{
}
2020-10-13 12:44:25 +00:00
Tr& triangulation_ref_impl()
{
return tr;
}
const Tr& triangulation_ref_impl() const
{
return tr;
}
}; // end class Triangulation_ref_impl<Tr>
/** This struct implements an empty private_test_point_conflict_impl()
function. */
2020-10-13 12:44:25 +00:00
struct No_private_test_point_conflict
{
template <typename Point, typename Zone>
Mesher_level_conflict_status
2020-10-13 12:44:25 +00:00
private_test_point_conflict_impl(const Point&, const Zone&) const
{
return NO_CONFLICT;
}
}; // end No_private_test_point_conflict
/** This struct implements an empty test_point_conflict_from_superior_impl()
function. */
struct No_test_point_conflict_from_superior
{
template <typename Point, typename Zone>
Mesher_level_conflict_status
2020-10-13 12:44:25 +00:00
test_point_conflict_from_superior_impl(const Point&, const Zone&) const
{
return NO_CONFLICT;
}
}; // end No_test_point_conflict_from_superior
/** This struct implements empty functions:
- private_test_point_conflict_impl() and
- test_point_conflict_from_superior_impl().
*/
2020-10-13 12:44:25 +00:00
struct No_test_point_conflict :
public No_private_test_point_conflict,
public No_test_point_conflict_from_superior
{
};
/** This struct implements an empty before_insertion_impl()
function. */
struct No_before_insertion
{
template <typename Cell_handle, typename Point, typename Zone>
void before_insertion_impl(const Cell_handle&, const Point&,
2020-10-13 12:44:25 +00:00
Zone& )
{
}
}; // end No_before_insertion
/** This struct implements an empty after_insertion_impl()
function. */
struct No_after_insertion
{
template <typename Vertex_handle>
void after_insertion_impl(const Vertex_handle&)
{
}
}; // end No_after_insertion
/** This struct implements an empty after_insertion_impl()
function. */
struct No_after_no_insertion
{
template <typename Cell_handle, typename Point, typename Zone>
void after_no_insertion_impl(const Cell_handle&, const Point&,
2020-10-13 12:44:25 +00:00
const Zone& )
{
}
}; // end No_after_no_insertion
/** This struct implements empty functions:
- before_insertion_impl(),
- after_insertion_impl(),
- after_no_insertion_impl()
*/
struct No_before_after_insertion :
public No_after_insertion,
public No_before_insertion,
public No_after_no_insertion
{
};
/** This struct implements an empty before_conflicts_impl() function. */
struct No_before_conflicts {
template <typename Face_handle, typename Point>
void before_conflicts_impl(const Face_handle&, const Point&)
{
}
};
} // end namespace CGAL
#include <CGAL/enable_warnings.h>
#endif // CGAL_MESHER_LEVEL_DEFAULT_IMPLEMENTATIONS_H