diff --git a/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/add_imaginary_layer.h b/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/add_imaginary_layer.h
index c35861d2752..59c796333cd 100644
--- a/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/add_imaginary_layer.h
+++ b/Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/add_imaginary_layer.h
@@ -206,11 +206,9 @@ namespace internal
template
void add_layer_of_imaginary_tets(T3& tr, const Index& imaginary_index)
{
- typedef typename T3::Geom_traits Gt;
- typedef typename Gt::Point_3 Point_3;
- typedef typename Gt::Vector_3 Vector_3;
-
- typedef typename T3::Vertex_handle Vertex_handle;
+ typedef typename T3::Vertex_handle Vertex_handle;
+ typedef typename T3::Point Point;
+ typedef typename T3::Geom_traits::Vector_3 Vector_3;
//compute normals
boost::unordered_map normals;
@@ -220,7 +218,7 @@ namespace internal
const double offset = 0.04 * compute_bbox_max_size(tr);
//compute points to be inserted
- std::vector offset_points;
+ std::vector offset_points;
compute_offset_points(normals,
offset,
std::back_inserter(offset_points));