pcr point segment case in construction is modified

when point is end of segment, now we have the ray with
two linear components.
example:
h3.cin A 0,0 AB 0,0 100, 0 C 0,50
pcr for A , AB, C will be
p[0]= -25, 25
p[1]= 0,0
and d=-1,-1
This commit is contained in:
Sandeep Kumar Dey 2013-01-07 13:37:55 +01:00 committed by Panagiotis Cheilaris
parent 25f2d4c07b
commit bf63c2d41e
1 changed files with 2 additions and 1 deletions

View File

@ -661,8 +661,9 @@ public:
if (are_same_points(sitep,sites.source_site())
or are_same_points(sitep,sites.target_site())) {
npts = 1;
npts = 2;
points[0] = v;
points[1] = pnt;
Point_2 pseg =
(are_same_points(sitep,sites.source_site())) ?
seg.target() : seg.source();