;Bedford CAS Van,
;Object created by Alan Wheeler, aka Guiilyman, email allanwheeler1@talktalk.net
;From Photographs by Eezypeazy, email eezypeazy@eezypeazy.co.uk
;Copyright eezypeazy and Alan Wheeler 2008. All rights reserved.
;You may publish this object without alteration in your BVE routes providing that you acknowledge this copyright.

;________Nearside________________________________,

CreateMeshBuilder,
Addvertex, 0.716,1.791,0,
Addvertex, 0.716,1.908,4.145,
Addvertex, 0.814,1.06,0.017,
Addvertex, 0.814,1.177,4.163,
Addvertex, 0.879,0.981,0.017,
Addvertex, 0.879,1.091,4.163,
Addvertex, 0.901,0.293,0.035,
Addvertex, 0.901,0.412,4.18,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
generatenormals,
LoadTexture, Bedford_CA_Nearside.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.485,
SetTextureCoordinates, 3,1,0.485,
SetTextureCoordinates, 4,0,0.54,
SetTextureCoordinates, 5,1,0.54,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
Setdecaltransparentcolor,0,0,255,

;________Offside_________________________________,

CreateMeshBuilder,
Addvertex, -0.716,1.908,4.145,
Addvertex, -0.716,1.791,0,
Addvertex, -0.814,1.177,4.163,
Addvertex, -0.814,1.06,0.017,
Addvertex, -0.879,1.177,4.163,
Addvertex, -0.879,0.981,0.017,
Addvertex, -0.901,0.412,4.18,
Addvertex, -0.901,0.293,0.035,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
generatenormals,
LoadTexture, Bedford_CA_Offside.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.475,
SetTextureCoordinates, 3,1,0.475,
SetTextureCoordinates, 4,0,0.54,
SetTextureCoordinates, 5,1,0.54,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
Setdecaltransparentcolor,0,0,255,

;________Roof____________________________________,

CreateMeshBuilder,
Addvertex, -0.721,1.801,0.88,
Addvertex, -0.721,1.884,3.838,
Addvertex, -0.638,1.867,0.88,
Addvertex, -0.638,1.992,3.817,
Addvertex, 0,1.955,0.792,
Addvertex, 0,2.036,3.806,
Addvertex, 0.638,1.867,0.88,
Addvertex, 0.638,1.992,3.817,
Addvertex, 0.721,1.801,0.88,
Addvertex, 0.721,1.884,3.838,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
generatenormals,
LoadTexture, Bedford_CA_Roof.png,
SetTextureCoordinates, 0,0.005,0.005,
SetTextureCoordinates, 1,0.995,0.005,
SetTextureCoordinates, 2,0.005,0.28,
SetTextureCoordinates, 3,0.995,0.28,
SetTextureCoordinates, 4,0.005,0.5,
SetTextureCoordinates, 5,0.995,0.5,
SetTextureCoordinates, 6,0.005,0.72,
SetTextureCoordinates, 7,0.995,0.72,
SetTextureCoordinates, 8,0.005,0.995,
SetTextureCoordinates, 9,0.995,0.995,

;________Front___________________________________,

CreateMeshBuilder,
Addvertex, -0.965,1.996,1.031,
Addvertex, 0,1.996,0.826,
Addvertex, 0.965,1.996,1.031,
Addvertex, -0.965,1.332,0.732,
Addvertex, 0,1.332,0.548,
Addvertex, 0.965,1.332,0.732,
Addvertex, -0.965,1.304,0.678,
Addvertex, 0,1.304,0.493,
Addvertex, 0.965,1.304,0.678,
Addvertex, -0.965,1.137,0.629,
Addvertex, 0,1.137,0.445,
Addvertex, 0.965,1.137,0.629,
Addvertex, -0.965,1.047,0.076,
Addvertex, 0,1.047,0.076,
Addvertex, 0.965,1.047,0.076,
Addvertex, -0.965,0.365,0.076,
Addvertex, 0,0.365,0.043,
Addvertex, 0.965,0.365,0.076,
Addface2, 0,1,4,3,
Addface2, 1,2,5,4,
Addface, 3,4,7,6,
Addface, 4,5,8,7,
Addface, 6,7,10,9,
Addface, 7,8,11,10,
Addface, 9,10,13,12,
Addface, 10,11,14,13,
Addface, 12,13,16,15,
Addface, 13,14,17,16,
generatenormals,
LoadTexture, Bedford_CA_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,0.5,0,
SetTextureCoordinates, 2,1,0,
SetTextureCoordinates, 3,0,0.4,
SetTextureCoordinates, 4,0.5,0.4,
SetTextureCoordinates, 5,1,0.4,
SetTextureCoordinates, 6,0,0.41,
SetTextureCoordinates, 7,0.5,0.41,
SetTextureCoordinates, 8,1,0.41,
SetTextureCoordinates, 9,0,0.5,
SetTextureCoordinates, 10,0.5,0.5,
SetTextureCoordinates, 11,1,0.5,
SetTextureCoordinates, 12,0,0.565,
SetTextureCoordinates, 13,0.5,0.565,
SetTextureCoordinates, 14,1,0.565,
SetTextureCoordinates, 15,0,1,
SetTextureCoordinates, 16,0.5,1,
SetTextureCoordinates, 17,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear____________________________________,

CreateMeshBuilder,
Addvertex, 0.918,2.046,3.795,
Addvertex, -0.918,2.046,3.795,
Addvertex, 0.918,1.177,4.043,
Addvertex, -0.918,1.177,4.043,
Addvertex, 0.918,1.091,4.098,
Addvertex, -0.918,1.091,4.098,
Addvertex, 0.918,0.383,4.115,
Addvertex, -0.918,0.383,4.115,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
generatenormals,
LoadTexture, Bedford_CA_Rear.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.508,
SetTextureCoordinates, 3,1,0.508,
SetTextureCoordinates, 4,0,0.57,
SetTextureCoordinates, 5,1,0.57,
SetTextureCoordinates, 6,0,1,
SetTextureCoordinates, 7,1,1,
Setdecaltransparentcolor,0,0,255,

;________Nearside Wheels_________________________,

CreateMeshBuilder,
Addvertex, 0.814,0.897,0.108,
Addvertex, 0.814,0.897,3.763,
Addvertex, 0.814,0,0.108,
Addvertex, 0.814,0,3.763,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Bedford_CA_Wheels.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Nearside Inner Wheels___________________,

CreateMeshBuilder,
Addvertex, 0.63,0.897,0.108,
Addvertex, 0.63,0.897,3.763,
Addvertex, 0.63,0,0.108,
Addvertex, 0.63,0,3.763,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Bedford_CA_Inner_Wheels.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Nearside Front Tyre_____________________,

CreateMeshBuilder,
Addvertex, 0.63,0.407,0.239,
Addvertex, 0.814,0.407,0.239,
Addvertex, 0.63,0,0.542,
Addvertex, 0.814,0,0.542,
Addvertex, 0.63,0,0.672,
Addvertex, 0.814,0,0.672,
Addvertex, 0.63,0.407,0.976,
Addvertex, 0.814,0.407,0.976,
Addface, 0,1,3,2,
Addface, 4,5,7,6,
generatenormals,
SetColor, 55,52,51,

;________Nearside Rear Tyre______________________,

CreateMeshBuilder,
Addvertex, 0.63,0.407,2.754,
Addvertex, 0.814,0.407,2.754,
Addvertex, 0.63,0,3.058,
Addvertex, 0.814,0,3.058,
Addvertex, 0.63,0,3.188,
Addvertex, 0.814,0,3.188,
Addvertex, 0.63,0.407,3.491,
Addvertex, 0.814,0.407,3.491,
Addface, 0,1,3,2,
Addface, 4,5,7,6,
generatenormals,
SetColor, 55,52,51,

;________Offside Wheels__________________________,

CreateMeshBuilder,
Addvertex, -0.814,0.897,3.763,
Addvertex, -0.814,0.897,0.108,
Addvertex, -0.814,0,3.763,
Addvertex, -0.814,0,0.108,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Bedford_CA_Wheels.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
Setdecaltransparentcolor,0,0,255,

;________Offside Inner Wheels____________________,

CreateMeshBuilder,
Addvertex, -0.63,0.897,3.763,
Addvertex, -0.63,0.897,0.108,
Addvertex, -0.63,0,3.763,
Addvertex, -0.63,0,0.108,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Bedford_CA_Inner_Wheels.png,
SetTextureCoordinates, 0,1,0,
SetTextureCoordinates, 1,0,0,
SetTextureCoordinates, 2,1,1,
SetTextureCoordinates, 3,0,1,
Setdecaltransparentcolor,0,0,255,

;________Offside Front Tyre______________________,

CreateMeshBuilder,
Addvertex, -0.814,0.407,0.239,
Addvertex, -0.63,0.407,0.239,
Addvertex, -0.814,0,0.542,
Addvertex, -0.63,0,0.542,
Addvertex, -0.814,0,0.672,
Addvertex, -0.63,0,0.672,
Addvertex, -0.814,0.407,0.976,
Addvertex, -0.63,0.407,0.976,
Addface, 0,1,3,2,
Addface, 4,5,7,6,
generatenormals,
SetColor, 55,52,51,

;________Offside Rear Tyre_______________________,

CreateMeshBuilder,
Addvertex, -0.814,0.407,2.754,
Addvertex, -0.63,0.407,2.754,
Addvertex, -0.814,0,3.058,
Addvertex, -0.63,0,3.058,
Addvertex, -0.814,0,3.188,
Addvertex, -0.63,0,3.188,
Addvertex, -0.814,0.407,3.491,
Addvertex, -0.63,0.407,3.491,
Addface, 0,1,3,2,
Addface, 4,5,7,6,
generatenormals,
SetColor, 55,52,51,

;________Shadow__________________________________,

CreateMeshBuilder,
AddVertex,-0.901,0,0,
AddVertex,-0.901,0,4.18,
AddVertex,0.901,0,0,
AddVertex,0.901,0,4.18,
Addface, 0,1,3,2,
generatenormals,
SetColor, 50,50,50,120,