Menu

#46 bug in method "SegmentSegmentIntersection"

v1.0_(example)
closed
nobody
1
2015-01-20
2015-01-19
Anonymous
No

Bug: method "SegmentSegmentIntersection" in vcglib\vcg\space\intersection2.h

/////////////////////////////////
Code:

Segment2d s0(Point2d(292,162), Point2d(295,170));
Segment2d s1(Point2d(292,162), Point2d(291,148));
Point2d inter;
bool b = SegmentSegmentIntersection(s0, s1, inter);
cout<<(b ? "intersect" : "unintersect")<<endl;

//////////////////////////////
Expected Output:

intersect

/////////////////////////////
Output:

unintersect

Discussion

  • Fabio Ganovelli

    Fabio Ganovelli - 2015-01-19

    Hi,
    please update and try again. Note that only
    intersections in a single point are considered as such
    (that is, for collinear segment it returns false)

     
  • Fabio Ganovelli

    Fabio Ganovelli - 2015-01-20
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel