Class ShapeField.Triangle

java.lang.Object
org.apache.lucene.document.Field
org.apache.lucene.document.ShapeField.Triangle
All Implemented Interfaces:
IndexableField
Enclosing class:
ShapeField

public static class ShapeField.Triangle extends Field
polygons are decomposed into tessellated triangles using Tessellator these triangles are encoded and inserted as separate indexed POINT fields
  • Constructor Details

    • Triangle

      Triangle(String name, int aXencoded, int aYencoded, int bXencoded, int bYencoded, int cXencoded, int cYencoded)
      constructor for points and lines
    • Triangle

      Triangle(String name, Tessellator.Triangle t)
      xtor from a given Tessellated Triangle object
  • Method Details

    • setTriangleValue

      protected void setTriangleValue(int aX, int aY, boolean abFromShape, int bX, int bY, boolean bcFromShape, int cX, int cY, boolean caFromShape)
      sets the vertices of the triangle as integer encoded values