mirror of https://github.com/CGAL/cgal
Add a method that allows to add several edges into a current facet.
This commit is contained in:
parent
828c01a00e
commit
4a9ee63b83
|
|
@ -169,15 +169,20 @@ namespace CGAL {
|
||||||
prev_dart=cur;
|
prev_dart=cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add one facet, s is a sequence of labels, add all the corresponding edges into the current facet.
|
// add the given edges to the current facet
|
||||||
void add_facet(const std::string& s)
|
// 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);
|
std::istringstream iss(s);
|
||||||
for (std::string token; std::getline(iss, token, ' '); )
|
for (std::string token; std::getline(iss, token, ' '); )
|
||||||
{ add_edge_to_facet(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();
|
end_facet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue