From 63cc93d15d3c9af7f75c72d3b43e4ea030c8a3c7 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 25 Apr 2017 15:15:57 +0200 Subject: [PATCH] change some private to protected, and add a constructor to be able to use the methods in a derived class --- .../CGAL/Polyhedral_complex_mesh_domain_3.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h b/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h index abaf63a67c2..c9c02edcc97 100644 --- a/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h +++ b/Mesh_3/include/CGAL/Polyhedral_complex_mesh_domain_3.h @@ -272,12 +272,15 @@ class Polyhedral_complex_mesh_domain_3 Tag_true, //Use_patch_id_tag Tag_true > >//Use_exact_intersection_tag { +protected: typedef boost::adjacency_list< boost::setS, // this avoids parallel edges boost::vecS, boost::undirectedS, typename Polyhedron::Point, typename Polyhedron::Vertex::Set_of_indices> Featured_edges_copy_graph; + +private: typedef IGT_ IGT; public: @@ -351,6 +354,16 @@ public: this->build(); } + Polyhedral_complex_mesh_domain_3 + ( +#ifndef DOXYGEN_RUNNING + CGAL::Random* p_rng = NULL +#endif + ) + : Base(p_rng) + , borders_detected_(false) + {} + /// @cond DEVELOPERS const std::vector& polyhedra() const { return stored_polyhedra; @@ -618,7 +631,8 @@ public: }; Is_in_domain is_in_domain_object() const { return Is_in_domain(*this); } /// @endcond -private: + +protected: void initialize_ts(Polyhedron& p); void add_features_from_split_graph_into_polylines(Featured_edges_copy_graph& graph); @@ -634,6 +648,7 @@ private: return patch_id_to_polyhedron_id.size(); } +protected: std::vector stored_polyhedra; std::vector > patch_indices; std::vector patch_id_to_polyhedron_id;