nknize commented on issue #11767:
URL: https://github.com/apache/lucene/issues/11767#issuecomment-1248382179

   > My proposal is to remove the method completely or at least not call this 
method if the Tessellator has been called with the flag 
`checkSelfIntersections` set to true.
   > 
   > @nknize introduced this method on the first version of the Tessellator, he 
might have more background about the need of this method. what do you think?
   
   I was actually looking into this before turning my attention to the shape 
doc values and I was just getting ready to come back to it. The method was 
originally introduced to postpone self intersection removal unless absolutely 
necessary (e.g., tessellation failed). Essentially it was a lazy cleaning 
approach. I believe, though this needs thorough evaluation, some of the 
improvements made to [filter 
points](https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/geo/Tessellator.java#L1326)
 rendered much of this logic obsolete. My last test (random and explicit) never 
actually exercised this logic, even with self intersections. Furthermore, the 
follow up SPLIT logic was not exercised either so I was exploring the 
possibility of removing both of these phases.  
   
   > if you could go to https://github.com/apache/lucene/issues/11777 and test 
with those polygons as well. We are having Elastic Cloud timeouts because of 
the time it takes to triangulate.
   
   These adversarial cases are important to capture in our tests. Our 
randomized polygon generator doesn't inject any self intersections so we really 
have a gap in testing the logic coverage. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to