createCentroidCell method

CellLEC createCentroidCell(
  1. Geometry geom
)

Implementation

CellLEC createCentroidCell(Geometry geom) {
  Point p = geom.getCentroid();
  return CellLEC(p.getX(), p.getY(), 0, distanceToConstraintsPoint(p));
}