mirror of https://github.com/CGAL/cgal
move default property map All_cells_selected to a new file
This commit is contained in:
parent
46cc19321e
commit
42decee467
|
|
@ -0,0 +1,49 @@
|
|||
// Copyright (c) 2020 GeometryFactory (France) and Telecom Paris (France).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org)
|
||||
//
|
||||
// $URL$
|
||||
// $Id$
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
|
||||
//
|
||||
//
|
||||
// Author(s) : Jane Tournois
|
||||
|
||||
#ifndef CGAL_TETRAHEDRAL_REMESHING_PROPERTY_MAPS_H
|
||||
#define CGAL_TETRAHEDRAL_REMESHING_PROPERTY_MAPS_H
|
||||
|
||||
#include <CGAL/license/Tetrahedral_remeshing.h>
|
||||
|
||||
#include <CGAL/property_map.h>
|
||||
|
||||
|
||||
namespace CGAL
|
||||
{
|
||||
namespace Tetrahedral_remeshing
|
||||
{
|
||||
namespace internal
|
||||
{
|
||||
|
||||
template<typename Tr>
|
||||
struct All_cells_selected
|
||||
{
|
||||
using key_type = typename Tr::Cell_handle;
|
||||
using value_type = bool;
|
||||
using reference = bool;
|
||||
using category = boost::read_write_property_map_tag;
|
||||
|
||||
friend value_type get(const All_cells_selected&, const key_type& c)
|
||||
{
|
||||
using SI = typename Tr::Cell::Subdomain_index;
|
||||
return c->subdomain_index() != SI();
|
||||
}
|
||||
friend void put(All_cells_selected&, const key_type&, const value_type)
|
||||
{} //nothing to do : subdomain indices are updated in remeshing};
|
||||
};
|
||||
|
||||
} // end namespace internal
|
||||
} // end namespace Tetrahedral_remeshing
|
||||
} // end namespace CGAL
|
||||
|
||||
#endif // CGAL_TETRAHEDRAL_REMESHING_PROPERTY_MAPS_H
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
#include <CGAL/Tetrahedral_remeshing/internal/flip_edges.h>
|
||||
#include <CGAL/Tetrahedral_remeshing/internal/smooth_vertices.h>
|
||||
#include <CGAL/Tetrahedral_remeshing/internal/peel_slivers.h>
|
||||
#include <CGAL/Tetrahedral_remeshing/internal/property_maps.h>
|
||||
|
||||
#include <CGAL/Tetrahedral_remeshing/internal/tetrahedral_remeshing_helpers.h>
|
||||
#include <CGAL/Tetrahedral_remeshing/internal/compute_c3t3_statistics.h>
|
||||
|
|
@ -58,22 +59,7 @@ public:
|
|||
void after_flip(CellHandle /* c */) {}
|
||||
};
|
||||
|
||||
template<typename Tr>
|
||||
struct All_cells_selected
|
||||
{
|
||||
using key_type = typename Tr::Cell_handle;
|
||||
using value_type = bool;
|
||||
using reference = bool;
|
||||
using category = boost::read_write_property_map_tag;
|
||||
|
||||
friend value_type get(const All_cells_selected&, const key_type& c)
|
||||
{
|
||||
using SI = typename Tr::Cell::Subdomain_index;
|
||||
return c->subdomain_index() != SI();
|
||||
}
|
||||
friend void put(All_cells_selected&, const key_type&, const value_type)
|
||||
{} //nothing to do : subdomain indices are updated in remeshing};
|
||||
};
|
||||
|
||||
template<typename Triangulation
|
||||
, typename SizingFunction
|
||||
|
|
|
|||
Loading…
Reference in New Issue