Changes between Initial Version and Version 1 of Ticket #732, comment 2


Ignore:
Timestamp:
Jul 19, 2015, 11:44:59 PM (9 years ago)
Author:
jiangdaidai

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #732, comment 2

    initial v1  
    1  I find the reason: my polygon self-intersectes and is_ccw(my polygon) makes the key unexpected performance. During the learning of GEOS, I think there may be one bug :
    2 SegmentIntersector.cpp Line 114, according to the algorithm logical,
    3 int maxSegIndex=e0->getNumPoints()-1; -->
    4 int maxSegIndex=e0->getNumPoints()-2;
     1 I find the reason: my polygon self-intersectes and is_ccw(my polygon) makes the key unexpected performance. During the learning of GEOS, I think there may be one bug :[[BR]]
     2
     3SegmentIntersector.cpp Line 114, according to the algorithm logical, [[BR]]
     4
     5int maxSegIndex=e0->getNumPoints()-1; -->[[BR]]
     6
     7int maxSegIndex=e0->getNumPoints()-2;[[BR]]