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);