Examples of WallContainer


Examples of wolf.city.buildings.shape.WallContainer

        GL11.glBegin(GL11.GL_QUADS);
        for(int f=0; f<b.sections.get(i).floors.size(); f++){
          Floor floor = b.sections.get(i).floors.get(f);
          height += floor.height;
          for(int j=0; j < floor.exterior.size(); j++){
            WallContainer wc = floor.exterior.get(j);
            //Coordinate p0 = wc.p0;
            Coordinate p1 = wc.p1;
           
            //render stuff;
            //System.out.println(c.x-offset.x+","+(c.y-offset.y)+","+c.z);
           
            //GL11.glVertex3d(p0.x-offset.x,p0.y-offset.y,p0.z+height-offset.z);
            GL11.glVertex3d(p1.x-offset.x,p1.y-offset.y,p1.z+height-offset.z);
           
           
            GL11.glColor3b((byte)56, (byte)182, (byte)245);
          }
          GL11.glEnd();
          GL11.glBegin(GL11.GL_QUADS);

          GL11.glColor3f(.5f,.4f,.3f);
          for(int j=0; j < floor.exterior.size(); j++){
            WallContainer wc = floor.exterior.get(j);
            Coordinate p0 = wc.p0;
            Coordinate p1 = wc.p1;
            float curPosWall = 0;
            float wallLength = (float)wc.p0.distance(wc.p1);
            LineSegment line = new LineSegment(p0, p1);
View Full Code Here

Examples of wolf.city.buildings.shape.WallContainer

  public Floor(Geometry shape, float height) {
    this.height = height;
    exterior = new ArrayList<WallContainer>();
    Coordinate[] cs = shape.getCoordinates();
    exterior.add(new WallContainer(this, cs[cs.length-1], cs[0]));
    for(int i=1; i<cs.length; i++){
      Coordinate p0 = cs[i-1];
      Coordinate p1 = cs[i];
      exterior.add(new WallContainer(this, p0, p1));
     
    }
  }
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.