Examples of AxisAlignedBoundingBoxXZ


Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  }

  @Override
  public void actionPerformed(ActionEvent e) {

    AxisAlignedBoundingBoxXZ bounds =
      data.getConversionResults().getMapData().getDataBoundary();
   
    renderOptions.camera =
      OrthoTilesUtil.cameraForBounds(bounds, 30, CardinalDirection.S);
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

      this.repaint(0);
     
      if (triangulation == null) {
       
        triangulation = new DelaunayTriangulation(
            new AxisAlignedBoundingBoxXZ(-SIZE, -SIZE, SIZE, SIZE));
       
      }
     
      triangulation.insert(p);
           
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

     
      VectorXYZ upVector = Z_UNIT.mult(panelHeight).rotateX(-panelAngle);
           
      /* place and draw rows of panels */
     
      AxisAlignedBoundingBoxXZ box = this.getAxisAlignedBoundingBoxXZ();
     
      List<SimplePolygonXZ> obstacles = getGroundObstacles();
     
      double posZ = box.minZ;
     
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

      Collection<VectorXYZ> sites = eleData.getSites(map);
     
      TerrainInterpolator strategy = buildInterpolator();
      strategy.setKnownSites(sites);
     
      AxisAlignedBoundingBoxXZ bound = map.getDataBoundary();
     
      VectorGridXZ sampleGrid = new VectorGridXZ(bound, SAMPLE_DIST);
     
      VectorXYZ[][] samples = new VectorXYZ[sampleGrid.sizeX()][sampleGrid.sizeZ()];
     
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  protected void fillTarget(JOGLTarget target) {

    for (TerrainBoundaryWorldObject tb :
      map.getWorldObjects(TerrainBoundaryWorldObject.class)) {
     
      AxisAlignedBoundingBoxXZ box = tb.getAxisAlignedBoundingBoxXZ();
      if (box != null) {
        PolygonXZ polygon = box.polygonXZ();
        target.drawLineLoop(BB_COLOR, 1, polygon.xyz(0).getVertices());
      }
     
    }
   
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  }

  @Override
  public void fillTarget(JOGLTarget target) {
   
    AxisAlignedBoundingBoxXZ bound = map.getDataBoundary();
   
    for (int x = (int)floor(bound.minX / LINE_DIST); x < (int)ceil(bound.maxX / LINE_DIST); x++) {
      for (int z = (int)floor(bound.minZ / LINE_DIST); z < (int)ceil(bound.maxZ / LINE_DIST); z++) {
       
        Color colorX = (z == 0 && x >= 0) ? RED : WHITE;
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  }

  @Override
  public void fillTarget(JOGLTarget target) {
   
    AxisAlignedBoundingBoxXZ bound = map.getDataBoundary();
   
    double minLon = toDegrees(mapProjection.calcLon(new VectorXZ(bound.minX, bound.minZ)));
    double minLat = toDegrees(mapProjection.calcLat(new VectorXZ(bound.minX, bound.minZ)));
    double maxLon = toDegrees(mapProjection.calcLon(new VectorXZ(bound.maxX, bound.maxZ)));
    double maxLat = toDegrees(mapProjection.calcLat(new VectorXZ(bound.maxX, bound.maxZ)));
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

    @Override
    public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
     
      calculateOutlineIfNecessary();
     
      return new AxisAlignedBoundingBoxXZ(getOutlinePolygon().getVertices());
     
    }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

    List<Random> RANDOMS = asList(
        new Random(1), new Random(20), new Random(300));
   
    for (Random random : RANDOMS) {
     
      AxisAlignedBoundingBoxXZ bounds = new AxisAlignedBoundingBoxXZ(
          -SIZE, -SIZE, +SIZE, +SIZE);
     
      DelaunayTriangulation triangulation =
          new DelaunayTriangulation(bounds);
      DelaunayTriangulation triangulation2 =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.