remove unused Boolean parameter

This commit is contained in:
Sébastien Loriot 2022-07-11 15:47:05 +02:00
parent 9fe15e6fe6
commit 536fa70418
3 changed files with 5 additions and 9 deletions

View File

@ -361,7 +361,7 @@ namespace Point_set {
FT radius; Line_3 axis;
std::tie(radius, axis) = internal::create_cylinder(
region, m_point_map, m_normal_map,
m_traits, false).first;
m_traits).first;
if (radius >= FT(0)) {
m_radius = radius;
@ -379,7 +379,7 @@ namespace Point_set {
const Region& region) const {
return internal::create_cylinder(
region, m_point_map, m_normal_map,
m_traits, false).first;
m_traits).first;
}
/// \endcond

View File

@ -202,7 +202,7 @@ namespace Point_set {
neighbors.push_back(it);
m_scores[idx] = -internal::create_cylinder(
neighbors, m_point_map, m_normal_map, m_traits, true).second;
neighbors, m_point_map, m_normal_map, m_traits).second;
if (m_scores[idx] == -(std::numeric_limits<double>::max)())
seed_cutoff++;

View File

@ -62,11 +62,7 @@ namespace internal {
};
template<typename Input, typename Result, bool = std::is_same<Input, Result>::value >
struct conditional_deref {
Result operator()(Input it) {
assert(false);
}
};
struct conditional_deref;
template<typename Input, typename Result>
struct conditional_deref<Input, Result, true> {
@ -655,7 +651,7 @@ namespace internal {
create_cylinder(
const Region& region, const PointMap point_map,
const NormalMap normal_map,
const Traits& traits, const bool compute_score) {
const Traits& traits) {
if (region.size() < 6)
return std::make_pair(