if endpoint of segment, then ON_ORIENTED_BOUNDARY

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
Panagiotis Cheilaris 2013-09-11 19:58:40 +02:00
parent 2d852f3e31
commit 1f5df0aad8
1 changed files with 7 additions and 2 deletions

View File

@ -408,8 +408,13 @@ private:
<< " slope" << std::endl; );
Oriented_side side_of_pnt =
oriented_side_of_line(l, pnt);
Oriented_side side_of_pnt;
if (same_points(q.source_site(), p) or
same_points(q.target_site(), p) ) {
side_of_pnt = ON_ORIENTED_BOUNDARY;
} else {
side_of_pnt = oriented_side_of_line(l, pnt);
}
if (side_of_pnt == ON_ORIENTED_BOUNDARY) {
CGAL_assertion(same_points(q.source_site(), p) or