diff --git a/Skin_surface_3/include/CGAL/Skin_surface_base_3.h b/Skin_surface_3/include/CGAL/Skin_surface_base_3.h old mode 100644 new mode 100755 index 4f821ed01da..1ad01b0871d --- a/Skin_surface_3/include/CGAL/Skin_surface_base_3.h +++ b/Skin_surface_3/include/CGAL/Skin_surface_base_3.h @@ -30,6 +30,7 @@ #include #include #include +#include // For the Weighted_converter #include @@ -88,7 +89,7 @@ private: public: typedef Anchor_point Vertex_info; - typedef std::pair Cell_info; + typedef std::pair > Cell_info; private: // Triangulated_mixed_complex: diff --git a/Skin_surface_3/include/CGAL/Triangulated_mixed_complex_observer_3.h b/Skin_surface_3/include/CGAL/Triangulated_mixed_complex_observer_3.h old mode 100644 new mode 100755 index db2ccf3cb91..1b57eadc474 --- a/Skin_surface_3/include/CGAL/Triangulated_mixed_complex_observer_3.h +++ b/Skin_surface_3/include/CGAL/Triangulated_mixed_complex_observer_3.h @@ -24,6 +24,8 @@ #include #include +#include + namespace CGAL { template @@ -162,7 +164,7 @@ public: FT shrink; Rt_Simplex prev_s; - Quadratic_surface *surf; + boost::shared_ptr surf; // c is the center of the orthogonal sphere // w is the weight of the orthogonal sphere @@ -177,14 +179,14 @@ public: Q[1] = Q[3] = Q[4] = 0; Q[0] = Q[2] = Q[5] = orient; - surf = new Quadratic_surface(Q, c, s*w, (orient==1? 0 : 3)); + surf = boost::shared_ptr(new Quadratic_surface(Q, c, s*w, (orient==1? 0 : 3))); } else { // Multiply with 1-s to make the function defining the // skin surface implicitly continuous Q[1] = Q[3] = Q[4] = 0; Q[0] = Q[2] = Q[5] = orient*(1-s); - surf = new Quadratic_surface(Q, c, s*(1-s)*w, (orient==1? 0 : 3)); + surf = boost::shared_ptr(new Quadratic_surface(Q, c, s*(1-s)*w, (orient==1? 0 : 3))); } } @@ -204,7 +206,7 @@ public: Q[4] = orient*(-2*t.z()*t.y()/den); Q[5] = orient*(- t.z()*t.z()/den + (1-s)); - surf = new Quadratic_surface(Q, c, s*(1-s)*w, (orient==1? 1 : 2)); + surf = boost::shared_ptr(new Quadratic_surface(Q, c, s*(1-s)*w, (orient==1? 1 : 2))); } Surface_RT Q[6];