Skip to content

Commit e6677cf

Browse files
Amal Dev ParakkatAmal Dev Parakkat
Amal Dev Parakkat
authored and
Amal Dev Parakkat
committed
hide the class
1 parent bbf5911 commit e6677cf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Ball_merge_surface_reconstruction/doc/Ball_merge_surface_reconstruction/PackageDescription.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
/// \defgroup PkgBallMergeConcepts Concepts
33
/// \ingroup PkgBallMergeRef
44

5-
/// \defgroup PkgBallMergeAlgorithmClasses Algorithm Classes
6-
/// \ingroup PkgBallMergeRef
7-
85
/// \defgroup PkgBallMergeTraitsClasses Traits Classes
96
/// \ingroup PkgBallMergeRef
107

@@ -31,6 +28,7 @@
3128

3229
\cgalCRPSection{Concepts}
3330

34-
\cgalCRPSection{Classes}
35-
- `CGAL::Ball_merge_surface_reconstruction<Traits,ConcurrencyTag>`
31+
\cgalCRPSection{Functions}
32+
- `CGAL::ball_merge_surface_reconstruction_local()`
33+
- `CGAL::ball_merge_surface_reconstruction_global()`
3634
*/

Ball_merge_surface_reconstruction/include/CGAL/Ball_merge_surface_reconstruction.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
namespace CGAL {
2929

30+
namespace internal{
31+
3032
template <typename Traits, typename ConcurrencyTag>
3133
class Ball_merge_surface_reconstruction {
3234

@@ -50,7 +52,7 @@ class Ball_merge_surface_reconstruction {
5052
private:
5153

5254
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)); }
5456

5557
//Function that computes the Intersection Ratio (IR) given two cell handles
5658
// 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)
224226
}
225227
};
226228

229+
}
230+
227231
/// \ingroup PkgBallMergeRef
228232
template <class Concurrency_tag, class Traits>
229233
void ball_merge_surface_reconstruction_local(const std::vector<CGAL::Point_3<Traits>>& points,
230234
std::vector<std::array<int, 3> >& out_triangles,
231235
double parameter, double tlen=200.)
232236
{
233-
CGAL::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
237+
CGAL::internal::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
234238
bmsr.option=0;
235239
bmsr(points, parameter, tlen);
236240
bmsr.set_triangle_indices_hull1(out_triangles);
@@ -243,7 +247,7 @@ void ball_merge_surface_reconstruction_global(const std::vector<CGAL::Point_3<Tr
243247
std::vector<std::array<int, 3> >& out_triangles2,
244248
double parameter)
245249
{
246-
CGAL::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
250+
CGAL::internal::Ball_merge_surface_reconstruction<Traits, Concurrency_tag> bmsr;
247251
bmsr.option=1;
248252
bmsr(points, parameter, 0);
249253
bmsr.set_triangle_indices_hull1(out_triangles1);

0 commit comments

Comments
 (0)