Package org.osm2world.core.math

Examples of org.osm2world.core.math.PolygonXYZ


      Collections.reverse(rOutline);
      outline.addAll(rOutline);
     
      outline.add(outline.get(0));
     
      return new PolygonXYZ(outline);
     
    }
View Full Code Here


      target.drawTriangles(material, triangles,
          triangleTexCoordLists(triangles , material, GLOBAL_X_Z));
     
      /* render pin */
         
      PolygonXYZ upperHoleRing = pinConnectors.getPosXYZ(pinHoleLoop);
       
      drawPin(target, pinPosition, upperHoleRing.getVertexLoop());
     
    }
View Full Code Here

    // first column
    for (int z = numPointsZ - 2; z >= 0 /* [0][0] will be added again*/; z--) {
      vertices.add(vectorXYZForPointAt(0, z));
    }
   
    return new PolygonXYZ(vertices);
   
  }
View Full Code Here

    return result;
   
  }

  public PolygonXYZ getPosXYZ(SimplePolygonXZ polygon) {
    return new PolygonXYZ(getPosXYZ(polygon.getVertexLoop()));
  }
View Full Code Here

      vertices.add(vectorXYZForPointAt(leftXIndex, bottomZIndex));
      vertices.add(vectorXYZForPointAt(leftXIndex+1, bottomZIndex));
      vertices.add(vectorXYZForPointAt(leftXIndex+1, bottomZIndex+1));
      vertices.add(vectorXYZForPointAt(leftXIndex, bottomZIndex+1));
      vertices.add(vertices.get(0));
      return new PolygonXYZ(vertices);
    }
View Full Code Here

          color = WAY_BOUNDARY_COLOR;
        } else if (terrainBoundary instanceof AreaWorldObject) {
          color = AREA_BOUNDARY_COLOR;
        }

        PolygonXYZ outlinePolygon = terrainBoundary.getOutlinePolygon();
        if (outlinePolygon != null) {
          target.drawLineLoop(color, 1, outlinePolygon.getVertices());
        }

      }
     
    }
View Full Code Here

TOP

Related Classes of org.osm2world.core.math.PolygonXYZ

Copyright © 2018 www.massapicom. 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.