}
}
void computeDistance(Geometry[] pts, Geometry geom)
{
IndexedFacetDistance bbd = null;
if (USE_INDEXED_DIST)
bbd = new IndexedFacetDistance(geom);
for (int i = 0; i < pts.length; i++ ) {
if (USE_INDEXED_DIST) {
double dist = bbd.getDistance(pts[i]);
// double dist = bbd.getDistanceWithin(pts[i].getCoordinate(), 100000);
}
else {
double dist = geom.distance(pts[i]);
}