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 | |
| 3 | SegmentIntersector.cpp Line 114, according to the algorithm logical, [[BR]] |
| 4 | |
| 5 | int maxSegIndex=e0->getNumPoints()-1; -->[[BR]] |
| 6 | |
| 7 | int maxSegIndex=e0->getNumPoints()-2;[[BR]] |