// @formatter:on @Override public GeoLine convertToLine(int segment) { GeoLine geoLine = null; GeoRegion geoRegion = convertToRegion(segment); if (geoRegion != null) { geoLine = geoRegion.convertToLine(); } return geoLine; }
// @formatter:on @Override public GeoRegion convertToRegion(int segment) { GeoRegion geoRegion = null; if (this.geoRegion3D != null) { geoRegion = new GeoRegion(); for (int i = 0; i < this.geoRegion3D.getPartCount(); i++) { geoRegion.addPart(this.geoRegion3D.getPart(i).toPoint2Ds()); } } return geoRegion; }