You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ignacio Vera (JIRA)" <ji...@apache.org> on 2018/10/29 15:59:00 UTC

[jira] [Created] (LUCENE-8549) Tessellator should throw an error if all points were not processed

Ignacio Vera created LUCENE-8549:
------------------------------------

             Summary: Tessellator should throw an error if all points were not processed
                 Key: LUCENE-8549
                 URL: https://issues.apache.org/jira/browse/LUCENE-8549
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/sandbox
            Reporter: Ignacio Vera


Currently, the tessellation in some situations when it has not successfully process all points in the polygon, it will still return an incomplete/wrong tessellation. 

For example the following code:
{code:java}
public void testInvalidPolygon()  throws Exception {
  String wkt = "POLYGON((0 0, 1 1, 0 1, 1 0, 0 0))";
  Polygon polygon = (Polygon)SimpleWKTShapeParser.parse(wkt);
  expectThrows( IllegalArgumentException.class, () -> {Tessellator.tessellate(polygon); });
}{code}
will fail as the tessellator return a wrong tessellation containing one triangle.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org