Examples of sizeZ()


Examples of crazypants.render.BoundingBox.sizeZ()

          float maxU = texture.getMaxU();
          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
          moveEdgeCorners(corners, component.dir.getOpposite(), sideScale);
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeZ()

          float maxU = texture.getMaxU();
          float minV = texture.getMinV();
          float maxV = texture.getMaxV();

          float sideScale = Math.max(bb.sizeX(), bb.sizeY()) * 2 / 16f;
          sideScale = Math.max(sideScale, bb.sizeZ() * 2 / 16f);
          float width = Math.min(bb.sizeX(), bb.sizeY()) * 15f / 16f;

          List<Vertex> corners = bb.getCornersWithUvForFace(d, minU, maxU, minV, maxV);
          moveEdgeCorners(corners, vDir, width);
          moveEdgeCorners(corners, component.dir.getOpposite(), sideScale);
View Full Code Here

Examples of crazypants.render.BoundingBox.sizeZ()

    BoundingBox bb = CORE_BOUNDS;
    bb = bb.scale(nonUniformScale.x, nonUniformScale.y, nonUniformScale.z);

    double offsetFromEnd = Math.min(bb.sizeX(), bb.sizeY());
    offsetFromEnd = Math.min(offsetFromEnd, bb.sizeZ());
    offsetFromEnd = Math.max(offsetFromEnd, 0.075);
    double transMag = 0.5 - (offsetFromEnd * 1.2);

    Vector3d trans = ForgeDirectionOffsets.forDirCopy(dir);
    trans.scale(transMag);
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ.sizeZ()

    AxisAlignedBoundingBoxXZ gridBounds = dataBoundary.pad(10);
   
    intersectionGrid = new IntersectionGrid<MapElement>(
        gridBounds,
        gridBounds.sizeX() / 50,
        gridBounds.sizeZ() / 50);
   
  }
 
  @Override
  public void insert(MapElement e) {
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

    VectorGridXZ posGrid = new VectorGridXZ(
        dataBounds.pad(POINT_GRID_DIST), POINT_GRID_DIST);
   
    /* create a grid of nodes (leaving points within the future patches blank) */
   
    MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

    /* create a grid of nodes (leaving points within the future patches blank) */
   
    MapNode[][] nodeGrid = new MapNode[posGrid.sizeX()][posGrid.sizeZ()];
   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
            || z % PATCH_SIZE_POINTS == 0 || z == posGrid.sizeZ() - 1) {
         
          VectorXZ pos = posGrid.get(x, z);
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

   
    for (int x = 0; x < posGrid.sizeX(); x++) {
      for (int z = 0; z < posGrid.sizeZ(); z++) {
       
        if (x % PATCH_SIZE_POINTS == 0 || x == posGrid.sizeX() - 1
            || z % PATCH_SIZE_POINTS == 0 || z == posGrid.sizeZ() - 1) {
         
          VectorXZ pos = posGrid.get(x, z);
         
          MapNode mapNode = new MapNode(pos, EMPTY_SURFACE_NODE);
         
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

     
      AxisAlignedBoundingBoxXZ bound = map.getDataBoundary();
     
      VectorGridXZ sampleGrid = new VectorGridXZ(bound, SAMPLE_DIST);
     
      VectorXYZ[][] samples = new VectorXYZ[sampleGrid.sizeX()][sampleGrid.sizeZ()];
     
      long startTimeMillis = System.currentTimeMillis();
     
      for (int x = 0; x < sampleGrid.sizeX(); x++) {
        for (int z = 0; z < sampleGrid.sizeZ(); z++) {
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

      VectorXYZ[][] samples = new VectorXYZ[sampleGrid.sizeX()][sampleGrid.sizeZ()];
     
      long startTimeMillis = System.currentTimeMillis();
     
      for (int x = 0; x < sampleGrid.sizeX(); x++) {
        for (int z = 0; z < sampleGrid.sizeZ(); z++) {
         
          samples[x][z] = strategy.interpolateEle(sampleGrid.get(x, z));
                   
        }
       
View Full Code Here

Examples of org.osm2world.core.math.VectorGridXZ.sizeZ()

          samples[x][z] = strategy.interpolateEle(sampleGrid.get(x, z));
                   
        }
       
        if (x % 100 == 0) {
          long finishedSamples = x * sampleGrid.sizeZ();
          System.out.println(finishedSamples + "/" + sampleGrid.size()
              + " after " + ((System.currentTimeMillis() - startTimeMillis) / 1000f));
        }
      }

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.