;Object and textures (copyright) Alan Hudnott June 2010
;feel free to use this object in bve routes. 
;Delete the faces not required.
;If you require the full model, contact me via bve terminus personal message
;Please credit Alan Hudnott.


;front;
CreateMeshBuilder,
AddVertex,0,11.5,0,
AddVertex,0,11.5,24.5,
AddVertex,0,0,0,
AddVertex,0,0,24.5,
AddFace,2,3,1,0,
GenerateNormals,
LoadTexture,townhouse1.png
SetTextureCoordinates,0,1,0,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,

;roof;
CreateMeshBuilder,
AddVertex,6.6,19.5,0,
AddVertex,6.6,19.5,24.5,
AddVertex,0,11.3,0,
AddVertex,0,11.3,24.5,
AddFace,2,3,1,0,
GenerateNormals,
LoadTexture,townhouseroo1f.png
SetTextureCoordinates,0,1,0,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,255,


;side;


CreateMeshBuilder,
AddVertex,0 ,0  ,24.5,
AddVertex,0 ,17.8 ,24.5,
AddVertex,10,17.8 ,24.5,
AddVertex,10,0  ,24.5,
AddFace,3,2,1,0,
GenerateNormals,

LoadTexture,townhouseend.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,

;chimney4 side 3
CreateMeshBuilder,
Addvertex, 4.25,17,4
Addvertex, 4.25,18,4
Addvertex, 4.25,18,3
Addvertex, 4.25,17,3
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1


;chimney4 side 4
CreateMeshBuilder,
Addvertex, 5.25,17,4
Addvertex, 5.25,18,4
Addvertex, 4.25,18,4
Addvertex, 4.25,17,4
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1



;chimney3 side 3
CreateMeshBuilder,
Addvertex, 4.25,17,9.4
Addvertex, 4.25,18,9.4
Addvertex, 4.25,18,8.4
Addvertex, 4.25,17,8.4
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1

;chimney3 side 4
CreateMeshBuilder,
Addvertex, 5.25,17,9.4
Addvertex, 5.25,18,9.4
Addvertex, 4.25,18,9.4
Addvertex, 4.25,17,9.4
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1

;chimney2 side 3
CreateMeshBuilder,
Addvertex, 4.25,17,16
Addvertex, 4.25,18,16
Addvertex, 4.25,18,15
Addvertex, 4.25,17,15
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1

;chimney2 side 4
CreateMeshBuilder,
Addvertex, 5.25,17,16
Addvertex, 5.25,18,16
Addvertex, 4.25,18,16
Addvertex, 4.25,17,16
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1

;chimney1 side 3
CreateMeshBuilder,
Addvertex, 4.25,17,22
Addvertex, 4.25,18,22
Addvertex, 4.25,18,21
Addvertex, 4.25,17,21
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1

;chimney1 side 4
CreateMeshBuilder,
Addvertex, 5.25,17,22
Addvertex, 5.25,18,22
Addvertex, 4.25,18,22
Addvertex, 4.25,17,22
Addface2, 3,2,1,0
GenerateNormals,
LoadTexture,chimneybrick.png
SetTexturecoordinates, 0,1,1
SetTexturecoordinates, 1,1,0
SetTexturecoordinates, 2,0,0
SetTexturecoordinates, 3,0,1