mirror of https://github.com/CGAL/cgal
nontype template parameter name is changed from fast_bbox_intersection to Fast_sdf_calculation_mode
This commit is contained in:
parent
50c6542740
commit
789ee361cb
|
|
@ -36,8 +36,8 @@ namespace CGAL
|
||||||
* @param traits traits object
|
* @param traits traits object
|
||||||
* @return minimum and maximum SDF values before linear normalization
|
* @return minimum and maximum SDF values before linear normalization
|
||||||
*/
|
*/
|
||||||
template <bool fast_bbox_intersection, class Polyhedron, class SDFPropertyMap,
|
template <bool Fast_sdf_calculation_mode, class Polyhedron,
|
||||||
class GeomTraits
|
class SDFPropertyMap, class GeomTraits
|
||||||
#ifndef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
#ifndef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
||||||
= typename Polyhedron::Traits
|
= typename Polyhedron::Traits
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -49,7 +49,7 @@ compute_sdf_values(const Polyhedron& polyhedron,
|
||||||
int number_of_rays = 25,
|
int number_of_rays = 25,
|
||||||
GeomTraits traits = GeomTraits())
|
GeomTraits traits = GeomTraits())
|
||||||
{
|
{
|
||||||
internal::Surface_mesh_segmentation<Polyhedron, GeomTraits, fast_bbox_intersection>
|
internal::Surface_mesh_segmentation<Polyhedron, GeomTraits, Fast_sdf_calculation_mode>
|
||||||
algorithm(polyhedron, traits);
|
algorithm(polyhedron, traits);
|
||||||
return algorithm.calculate_sdf_values(cone_angle, number_of_rays, sdf_values);
|
return algorithm.calculate_sdf_values(cone_angle, number_of_rays, sdf_values);
|
||||||
}
|
}
|
||||||
|
|
@ -128,7 +128,7 @@ segment_from_sdf_values(const Polyhedron& polyhedron,
|
||||||
* call `CGAL::segment_from_sdf_values`.
|
* call `CGAL::segment_from_sdf_values`.
|
||||||
*
|
*
|
||||||
* @pre @a polyhedron.is_pure_triangle()
|
* @pre @a polyhedron.is_pure_triangle()
|
||||||
* @tparam fast_bbox_intersection regardless of `GeomTraits`, use inexact predicates while traversing AABB tree nodes.
|
* @tparam Fast_sdf_calculation_mode regardless of `GeomTraits`, use inexact predicates while traversing AABB tree nodes.
|
||||||
* It is default to true, and can be omitted.
|
* It is default to true, and can be omitted.
|
||||||
* @tparam Polyhedron a %CGAL polyhedron
|
* @tparam Polyhedron a %CGAL polyhedron
|
||||||
* @tparam SegmentPropertyMap a `ReadWritePropertyMap` with `Polyhedron::Facet_const_handle` as key and `int` as value type
|
* @tparam SegmentPropertyMap a `ReadWritePropertyMap` with `Polyhedron::Facet_const_handle` as key and `int` as value type
|
||||||
|
|
@ -142,7 +142,7 @@ segment_from_sdf_values(const Polyhedron& polyhedron,
|
||||||
* @param traits traits object
|
* @param traits traits object
|
||||||
* @return number of segments
|
* @return number of segments
|
||||||
*/
|
*/
|
||||||
template < bool fast_bbox_intersection, class Polyhedron,
|
template < bool Fast_sdf_calculation_mode, class Polyhedron,
|
||||||
class SegmentPropertyMap, class GeomTraits
|
class SegmentPropertyMap, class GeomTraits
|
||||||
#ifndef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
#ifndef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
||||||
= typename Polyhedron::Traits
|
= typename Polyhedron::Traits
|
||||||
|
|
@ -163,7 +163,7 @@ compute_sdf_values_and_segment(const Polyhedron& polyhedron,
|
||||||
boost::associative_property_map<Facet_double_map> sdf_property_map(
|
boost::associative_property_map<Facet_double_map> sdf_property_map(
|
||||||
internal_sdf_map);
|
internal_sdf_map);
|
||||||
|
|
||||||
compute_sdf_values<fast_bbox_intersection, Polyhedron, boost::associative_property_map<Facet_double_map>, GeomTraits>
|
compute_sdf_values<Fast_sdf_calculation_mode, Polyhedron, boost::associative_property_map<Facet_double_map>, GeomTraits>
|
||||||
(polyhedron, sdf_property_map, cone_angle, number_of_rays, traits);
|
(polyhedron, sdf_property_map, cone_angle, number_of_rays, traits);
|
||||||
return segment_from_sdf_values<Polyhedron, boost::associative_property_map<Facet_double_map>, SegmentPropertyMap, GeomTraits>
|
return segment_from_sdf_values<Polyhedron, boost::associative_property_map<Facet_double_map>, SegmentPropertyMap, GeomTraits>
|
||||||
(polyhedron, sdf_property_map, segment_ids, number_of_levels, smoothing_lambda,
|
(polyhedron, sdf_property_map, segment_ids, number_of_levels, smoothing_lambda,
|
||||||
|
|
@ -192,7 +192,7 @@ compute_sdf_values_and_segment(const Polyhedron& polyhedron,
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
|
||||||
#ifdef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
#ifdef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
||||||
template <bool fast_bbox_intersection, class Polyhedron, class SDFPropertyMap>
|
template <bool Fast_sdf_calculation_mode, class Polyhedron, class SDFPropertyMap>
|
||||||
std::pair<double, double>
|
std::pair<double, double>
|
||||||
compute_sdf_values(const Polyhedron& polyhedron,
|
compute_sdf_values(const Polyhedron& polyhedron,
|
||||||
SDFPropertyMap sdf_values,
|
SDFPropertyMap sdf_values,
|
||||||
|
|
@ -200,7 +200,7 @@ compute_sdf_values(const Polyhedron& polyhedron,
|
||||||
int number_of_rays = 25,
|
int number_of_rays = 25,
|
||||||
typename Polyhedron::Traits traits = typename Polyhedron::Traits())
|
typename Polyhedron::Traits traits = typename Polyhedron::Traits())
|
||||||
{
|
{
|
||||||
return compute_sdf_values<fast_bbox_intersection, Polyhedron, SDFPropertyMap, typename Polyhedron::Traits>
|
return compute_sdf_values<Fast_sdf_calculation_mode, Polyhedron, SDFPropertyMap, typename Polyhedron::Traits>
|
||||||
(polyhedron, sdf_values, cone_angle, number_of_rays, traits);
|
(polyhedron, sdf_values, cone_angle, number_of_rays, traits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -230,7 +230,7 @@ segment_from_sdf_values(const Polyhedron& polyhedron,
|
||||||
traits);
|
traits);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <bool fast_bbox_intersection, class Polyhedron, class SegmentPropertyMap>
|
template <bool Fast_sdf_calculation_mode, class Polyhedron, class SegmentPropertyMap>
|
||||||
int
|
int
|
||||||
compute_sdf_values_and_segment(const Polyhedron& polyhedron,
|
compute_sdf_values_and_segment(const Polyhedron& polyhedron,
|
||||||
SegmentPropertyMap segment_ids,
|
SegmentPropertyMap segment_ids,
|
||||||
|
|
@ -240,7 +240,7 @@ compute_sdf_values_and_segment(const Polyhedron& polyhedron,
|
||||||
double smoothing_lambda = 0.26,
|
double smoothing_lambda = 0.26,
|
||||||
typename Polyhedron::Traits traits = typename Polyhedron::Traits())
|
typename Polyhedron::Traits traits = typename Polyhedron::Traits())
|
||||||
{
|
{
|
||||||
return compute_sdf_values_and_segment< fast_bbox_intersection, Polyhedron, SegmentPropertyMap, typename Polyhedron::Traits>
|
return compute_sdf_values_and_segment< Fast_sdf_calculation_mode, Polyhedron, SegmentPropertyMap, typename Polyhedron::Traits>
|
||||||
(polyhedron, segment_ids, cone_angle, number_of_rays, number_of_levels,
|
(polyhedron, segment_ids, cone_angle, number_of_rays, number_of_levels,
|
||||||
smoothing_lambda, traits);
|
smoothing_lambda, traits);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue