27
27
28
28
namespace CGAL {
29
29
30
+ namespace internal {
31
+
30
32
template <typename Traits, typename ConcurrencyTag>
31
33
class Ball_merge_surface_reconstruction {
32
34
@@ -50,7 +52,7 @@ class Ball_merge_surface_reconstruction {
50
52
private:
51
53
52
54
double distance (const Point& p1, const Point& p2) const
53
- { return sqrt (squared_distance (p1,p2)); }
55
+ { return std:: sqrt (typename Traits::Compute_squared_distance_3 () (p1,p2)); }
54
56
55
57
// Function that computes the Intersection Ratio (IR) given two cell handles
56
58
// AF This could become a filtered predicate if robustness might be an issue
@@ -224,13 +226,15 @@ void set_triangle_indices_hull1(std::vector<std::array<int,3>>& meshFaceIndices)
224
226
}
225
227
};
226
228
229
+ }
230
+
227
231
// / \ingroup PkgBallMergeRef
228
232
template <class Concurrency_tag , class Traits >
229
233
void ball_merge_surface_reconstruction_local (const std::vector<CGAL::Point_3<Traits>>& points,
230
234
std::vector<std::array<int , 3 > >& out_triangles,
231
235
double parameter, double tlen=200 .)
232
236
{
233
- CGAL::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
237
+ CGAL::internal:: Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
234
238
bmsr.option =0 ;
235
239
bmsr (points, parameter, tlen);
236
240
bmsr.set_triangle_indices_hull1 (out_triangles);
@@ -243,7 +247,7 @@ void ball_merge_surface_reconstruction_global(const std::vector<CGAL::Point_3<Tr
243
247
std::vector<std::array<int , 3 > >& out_triangles2,
244
248
double parameter)
245
249
{
246
- CGAL::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
250
+ CGAL::internal:: Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
247
251
bmsr.option =1 ;
248
252
bmsr (points, parameter, 0 );
249
253
bmsr.set_triangle_indices_hull1 (out_triangles1);
0 commit comments