add doc in the right place.

This commit is contained in:
Maxime Gimeno 2018-02-02 14:50:29 +01:00
parent 6266570fc3
commit fe07a1973c
2 changed files with 13 additions and 3 deletions

View File

@ -9,6 +9,13 @@ Intersection tag for constrained triangulations, when input constraints do not i
*/
struct No_intersection_tag{};
/*!
\ingroup PkgTriangulation2TriangulationClasses
Intersection tag for constrained triangulations, when input constraints should not intersect.
Will throw a `To_be_renamed_exception` if constraints do intersect.
*/
struct Throw_on_intersection_tag{};
/*!
\ingroup PkgTriangulation2TriangulationClasses
@ -328,4 +335,8 @@ Note that `t` is first cleared.
\relates Constrained_triangulation_2
*/
istream& operator>>(istream& is,Constrained_triangulation_2<Traits,Tds> Ct& t);
//! Exception thrown for `intersect()` when called with the tag `Throw_on_intersection_tag`.
//! Then, if constraints intersect, an exception of this type will be thrown.
class To_be_renamed_exception;
} /* end namespace CGAL */

View File

@ -105,8 +105,7 @@ public:
};
//! Exception thrown for `intersect()` when called with the tag `Throw_on_intersection_tag`.
class Is_intersecting_exception : public std::exception
class To_be_renamed_exception : public std::exception
{
const char* what() const throw ()
{
@ -897,7 +896,7 @@ intersect(Face_handle , int ,
Throw_on_intersection_tag)
{
throw Is_intersecting_exception();
throw To_be_renamed_exception();
return Vertex_handle() ;
}