4445464748495051525354
stopWatch.start(); sites = new ArrayList<SiteWithPolynomial>(siteVectors.size()); siteGrid = new IntersectionGrid<SiteWithPolynomial>( new AxisAlignedBoundingBoxXZ(siteVectors).pad(CELL_SIZE/2), CELL_SIZE, CELL_SIZE); for (VectorXYZ siteVector : siteVectors) { SiteWithPolynomial s = new SiteWithPolynomial(siteVector); sites.add(s);
104105106107108109110111112113114115
Collection<VectorXZ> pointsXZ = new ArrayList<VectorXZ>(); for (LatLonEle l : args.getOviewBoundingBox()) { pointsXZ.add(results.getMapProjection().calcPos(l.lat, l.lon)); } AxisAlignedBoundingBoxXZ bounds = new AxisAlignedBoundingBoxXZ(pointsXZ); camera = OrthoTilesUtil.cameraForBounds(bounds, angle, from); projection = OrthoTilesUtil.projectionForBounds(bounds, angle, from); } else if (args.isPviewPos()) {
175176177178179180181182183184185
} } /* ... for empty terrain */ AxisAlignedBoundingBoxXZ terrainBoundary = calculateFileBoundary(osmData.getBounds()); if (terrainBoundary != null) { EmptyTerrainBuilder.createAreasForEmptyTerrain(
578579580581582583584585586
} if (boundedPoints.isEmpty()) { return null; } else { return new AxisAlignedBoundingBoxXZ(boundedPoints); } }
235236237238239240241
return Collections.emptyList(); } @Override public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { return new AxisAlignedBoundingBoxXZ(pos.x, pos.z, pos.x, pos.z); }
return triangleXYZ; } @Override public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { return new AxisAlignedBoundingBoxXZ( min(p0.x, min(p1.x, p2.x)), min(p0.z, min(p1.z, p2.z)), max(p0.x, max(p1.x, p2.x)), max(p0.z, max(p1.z, p2.z))); }
35363738394041
return node; } @Override public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { return new AxisAlignedBoundingBoxXZ(singleton(node.getPos())); }
7273747576777879
return connectors.getPosXYZ(outlinePolygonXZ); } @Override public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { return new AxisAlignedBoundingBoxXZ( area.getOuterPolygon().getVertexCollection()); }
204205206207208209210211212213214
return new SimplePolygonXZ(vertices); } @Override public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { return new AxisAlignedBoundingBoxXZ( Math.min(getTopLeft().getPos().x, getBottomLeft().getPos().x), Math.min(getBottomLeft().getPos().z, getBottomRight().getPos().z), Math.max(getTopRight().getPos().x, getBottomRight().getPos().x), Math.max(getTopLeft().getPos().z, getTopRight().getPos().z)); }
632633634635636637638639640641
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() { if (isBroken() || getOutlinePolygonXZ() == null) { return null; } else { return new AxisAlignedBoundingBoxXZ( getOutlinePolygonXZ().getVertexCollection()); } }