From 4a9ee63b83b1a1e0f18c1560327901bb4a1ee7ec Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Wed, 14 Nov 2018 16:33:11 +0100 Subject: [PATCH] Add a method that allows to add several edges into a current facet. --- .../CGAL/Combinatorial_map_incremental_builder.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Combinatorial_map/include/CGAL/Combinatorial_map_incremental_builder.h b/Combinatorial_map/include/CGAL/Combinatorial_map_incremental_builder.h index aad1af7e6bc..15c54263965 100644 --- a/Combinatorial_map/include/CGAL/Combinatorial_map_incremental_builder.h +++ b/Combinatorial_map/include/CGAL/Combinatorial_map_incremental_builder.h @@ -169,15 +169,20 @@ namespace CGAL { prev_dart=cur; } - // add one facet, s is a sequence of labels, add all the corresponding edges into the current facet. - void add_facet(const std::string& s) + // add the given edges to the current facet + // s is a sequence of labels, add all the corresponding edges into the current facet. + void add_edges_to_facet(const std::string& s) { - begin_facet(); - std::istringstream iss(s); for (std::string token; std::getline(iss, token, ' '); ) { add_edge_to_facet(token); } - + } + + // add one facet, s is a sequence of labels, add all the corresponding edges into a new facet. + void add_facet(const std::string& s) + { + begin_facet(); + add_edges_to_facet(s); end_facet(); }