diff --git a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h index c08ddb7089e..312d17274d1 100644 --- a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h +++ b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h @@ -1031,7 +1031,7 @@ construct_point_on_curve(const Point_3& starting_point, } - +/// @cond DEVELOPERS template typename Mesh_domain_with_polyline_features_3::Corner_index Mesh_domain_with_polyline_features_3:: @@ -1064,6 +1064,34 @@ add_corners(InputIterator first, InputIterator end, return indices_out; } +template +typename Mesh_domain_with_polyline_features_3::Corner_index +Mesh_domain_with_polyline_features_3:: +register_corner(const Point_3& p, const Curve_index& curve_index) +{ + // 'add_corner' will itself seek if 'p' is already a corner, and, in that case, + // return the Corner_index that has been assigned to this position. + Corner_index index = add_corner(p); + corners_tmp_incidences_[index].insert(curve_index); + + return index; +} + + +template +typename Mesh_domain_with_polyline_features_3::Corner_index +Mesh_domain_with_polyline_features_3:: +add_corner_with_context(const Point_3& p, const Surface_patch_index& surface_patch_index) +{ + Corner_index index = add_corner(p); + + Surface_patch_index_set& incidences = corners_incidences_[index]; + incidences.insert(surface_patch_index); + + return index; +} +/// @endcond + template template @@ -1398,36 +1426,7 @@ get_incidences(Curve_index id) const return it->second; } -/// @endcond -template -typename Mesh_domain_with_polyline_features_3::Corner_index -Mesh_domain_with_polyline_features_3:: -register_corner(const Point_3& p, const Curve_index& curve_index) -{ - // 'add_corner' will itself seek if 'p' is already a corner, and, in that case, - // return the Corner_index that has been assigned to this position. - Corner_index index = add_corner(p); - corners_tmp_incidences_[index].insert(curve_index); - - return index; -} - - -template -typename Mesh_domain_with_polyline_features_3::Corner_index -Mesh_domain_with_polyline_features_3:: -add_corner_with_context(const Point_3& p, const Surface_patch_index& surface_patch_index) -{ - Corner_index index = add_corner(p); - - Surface_patch_index_set& incidences = corners_incidences_[index]; - incidences.insert(surface_patch_index); - - return index; -} - -/// @cond DEVELOPERS template template typename Mesh_domain_with_polyline_features_3::Curve_index