;側面333
CreateMeshBuilder
Addvertex,  -1.4,  1.0, -0.25;0
Addvertex,  -1.4, 1.14, -0.25;1
AddVertex,-1.473, 1.42, -0.25;2
AddVertex,-1.460, 3.21, -0.25;3
AddVertex, -1.35, 3.35, -0.25;4
AddVertex, -1.32, 3.44, -0.25;5
AddVertex,-1.30, 3.44, -0.25;6
Addvertex,  -1.4,  1.0,-17.26;7
Addvertex,  -1.4, 1.14,-17.26;8
AddVertex,-1.473, 1.42,-17.26;9
AddVertex,-1.460, 3.21,-17.26;10
AddVertex, -1.35, 3.35,-17.26;11
AddVertex, -1.32, 3.44,-17.26;12
AddVertex, -1.30, 3.44,-17.26;13
;前方側面
AddVertex,  -1.4,  1.0,-19.75;14
AddVertex,  -1.4, 1.18,-19.75;15
AddVertex, -1.33, 1.18,-19.75;16
AddVertex,  -1.4, 1.22,-19.75;17
AddVertex,  -1.4, 1.14,-18.55;18
AddVertex,-1.473, 1.42,-19.75;19
AddVertex,-1.460, 3.21,-19.65;20
AddVertex, -1.35, 3.35,-19.55;21
AddVertex, -1.32, 3.44,-19.45;22
AddVertex, -1.28, 3.60,-18.50;23

Addface,0,1,8,7
Addface,1,2,9,8
Addface,2,3,10,9
Addface,3,4,11,10
Addface,4,5,12,11
Addface,5,6,13,12
Addface,7,8,15,14
Addface,11,21,20,10
Addface,18,16,15
Addface,18,17,16
Addface,9,18,8
Addface,9,19,17,18
Addface,9,10,20,19
Addface,12,23,21,11
Addface,23,22,21

GenerateNormals
;2.49

LoadTexture,Tc257_100.bmp
SetTextureCoordinates, 6,    0,0.0078125
SetTextureCoordinates, 5,    0,0.0078125
SetTextureCoordinates, 4,    0,0.10
SetTextureCoordinates, 3,    0,0.16
SetTextureCoordinates, 2,    0,0.82
SetTextureCoordinates, 1,    0,0.95
SetTextureCoordinates, 0,    0,0.99999999999
SetTextureCoordinates,13, 0.90,0.0078125
SetTextureCoordinates,12, 0.90,0.0078125
SetTextureCoordinates,11, 0.90,0.10
SetTextureCoordinates,10, 0.90,0.16
SetTextureCoordinates, 9, 0.90,0.82
SetTextureCoordinates, 8, 0.90,0.95
SetTextureCoordinates, 7, 0.90,0.99999999999
SetTextureCoordinates,23,    1,0.0078125
SetTextureCoordinates,22,    1,0.0078125
SetTextureCoordinates,21,    1,0.10
SetTextureCoordinates,20,    1,0.16
SetTextureCoordinates,19,1.004,0.82
SetTextureCoordinates,17,1.004,0.95
SetTextureCoordinates,16,1.054,0.95
SetTextureCoordinates,18,0.954,0.92
SetTextureCoordinates,15,    1,0.95
SetTextureCoordinates,14,    1,0.99999999999



;側面332
CreateMeshBuilder
Addvertex,  1.4,  1.0, -0.25;0
Addvertex,  1.4, 1.14, -0.25;1
AddVertex,1.473, 1.42, -0.25;2
AddVertex,1.460, 3.21, -0.25;3
AddVertex, 1.35, 3.35, -0.25;4
AddVertex, 1.32, 3.44, -0.25;5
AddVertex,1.30, 3.44, -0.25;6
Addvertex,  1.4,  1.0,-17.26;7
Addvertex,  1.4, 1.14,-17.26;8
AddVertex,1.473, 1.42,-17.26;9
AddVertex,1.460, 3.21,-17.26;10
AddVertex, 1.35, 3.35,-17.26;11
AddVertex, 1.32, 3.44,-17.26;12
AddVertex,1.30, 3.44,-17.26;13

AddVertex,   1.4,  1.0,-19.75;14
AddVertex,   1.4, 1.18,-19.75;15
AddVertex,  1.33, 1.18,-19.75;16
AddVertex,   1.4, 1.22,-19.75;17
AddVertex,   1.4, 1.14,-18.55;18
AddVertex, 1.473, 1.42,-19.75;19
AddVertex, 1.460, 3.21,-19.65;20
AddVertex,  1.35, 3.35,-19.55;21
AddVertex,  1.32, 3.44,-19.45;22
AddVertex,  1.28, 3.60,-18.50;23

Addface,0,7,8,1
Addface,1,8,9,2
Addface,2,9,10,3
Addface,3,10,11,4
Addface,4,11,12,5
Addface,5,12,13,6
Addface,7,14,15,8
Addface,10,20,21,11

Addface,15,16,18
Addface,16,17,18
Addface,8,18,9
Addface,9,18,17,19
Addface,9,19,20,10
Addface,12,11,21,23
Addface,21,22,23

GenerateNormals
;前方側面
LoadTexture,Tc257_100.bmp
SetTextureCoordinates, 6,    0,0.0078125
SetTextureCoordinates, 5,    0,0.0078125
SetTextureCoordinates, 4,    0,0.10
SetTextureCoordinates, 3,    0,0.16
SetTextureCoordinates, 2,    0,0.82
SetTextureCoordinates, 1,    0,0.95
SetTextureCoordinates, 0,    0,0.99999999999
SetTextureCoordinates,13, 0.90,0.0078125
SetTextureCoordinates,12, 0.90,0.0078125
SetTextureCoordinates,11, 0.90,0.10
SetTextureCoordinates,10, 0.90,0.16
SetTextureCoordinates, 9, 0.90,0.82
SetTextureCoordinates, 8, 0.90,0.95
SetTextureCoordinates, 7, 0.90,0.99999999999
SetTextureCoordinates,23,    1,0.0078125
SetTextureCoordinates,22,    1,0.0078125
SetTextureCoordinates,21,    1,0.10
SetTextureCoordinates,20,    1,0.16
SetTextureCoordinates,19,1.004,0.82
SetTextureCoordinates,17,1.004,0.95
SetTextureCoordinates,16,1.054,0.95
SetTextureCoordinates,18,0.954,0.92
SetTextureCoordinates,15,    1,0.95
SetTextureCoordinates,14,    1,0.99999999999

;前面
CreateMeshBuilder
AddVertex,  -1.4,  1.0,-19.75;0
AddVertex,  -1.4, 1.18,-19.75;1
AddVertex, -1.33, 1.18,-19.75;2
AddVertex,  -1.4, 1.22,-19.75;3
AddVertex,-1.473, 1.42,-19.75;4
AddVertex,-1.460, 3.21,-19.65;5
AddVertex, -1.35, 3.35,-19.55;6
AddVertex, -1.32, 3.44,-19.45;7

AddVertex,  -1.0,  1.0,-19.80;8
AddVertex,  -1.0, 1.18,-19.80;9
AddVertex,  -1.0, 1.22,-19.80;10
AddVertex,-1.073, 1.42,-19.80;11
AddVertex,-1.060, 3.21,-19.70;12
AddVertex, -0.95, 3.35,-19.60;13
AddVertex, -0.62, 3.44,-19.50;14

AddVertex,   1.4,  1.0,-19.75;15
AddVertex,   1.4, 1.18,-19.75;16
AddVertex,  1.33, 1.18,-19.75;17
AddVertex,   1.4, 1.22,-19.75;18
AddVertex, 1.473, 1.42,-19.75;19
AddVertex, 1.460, 3.21,-19.65;20
AddVertex,  1.35, 3.35,-19.55;21
AddVertex,  1.32, 3.44,-19.45;22

AddVertex,   1.0,  1.0,-19.80;23
AddVertex,   1.0, 1.18,-19.80;24
AddVertex,   1.0, 1.22,-19.80;25
AddVertex, 1.073, 1.42,-19.80;26
AddVertex, 1.060, 3.21,-19.70;27
AddVertex,  0.95, 3.35,-19.60;28
AddVertex,  0.62, 3.44,-19.50;29

AddVertex,  1.28, 3.60,-18.50;30
AddVertex,  1.32, 3.44,-17.26;31
AddVertex, -1.28, 3.60,-18.50;32
AddVertex, -1.32, 3.44,-17.26;33
AddVertex, -0.88, 3.70,-18.50;34
AddVertex,  0.88, 3.70,-18.50;35
AddVertex, -0.92, 3.44,-17.26;36
AddVertex,  0.92, 3.44,-17.26;37


Addface,7,14,13,6
Addface,6,13,12,5
Addface,5,12,11,4
Addface,4,11,10,3
Addface,3,10,9,2
Addface,2,9,8
Addface,1,2,8,0

Addface,14,29,28,13
Addface,13,28,27,12
Addface,12,27,26,11
Addface,11,26,25,10
Addface,10,25,24, 9
Addface, 9,24,23, 8

Addface,28,29,22,21
Addface,28,21,20,27
Addface,27,20,19,26
Addface,26,19,18,25
Addface,18,17,24,25
Addface,24,17,23
Addface,23,17,16,15

Addface,33,36,34,32
;Addface,34,14, 7,32　;２つに分割修正
Addface,34,7,32
Addface,34,14, 7

Addface,34,35,29,14
Addface,36,37,35,34
;Addface,29,35,30,22　;２つに分割修正
Addface,29,35,22
Addface,22,35,30

Addface,35,37,31,30

GenerateNormals

LoadTexture,257-100f.bmp
;LoadTexture,sample.bmp ;これを使ってみると歪みが判ります
SetTextureCoordinates, 0,    0,1
SetTextureCoordinates, 1,    0,0.95
SetTextureCoordinates, 2,  0.1,0.95
SetTextureCoordinates, 3,    0,0.90
SetTextureCoordinates, 4,    0,0.82
SetTextureCoordinates, 5,    0,0.29
SetTextureCoordinates, 6,  0.03125,0.26
SetTextureCoordinates, 7,  0.03515625,0.2265625

SetTextureCoordinates, 8, 0.13,1
SetTextureCoordinates, 9, 0.13,0.95
SetTextureCoordinates,10, 0.13,0.90
SetTextureCoordinates,11, 0.13,0.82
SetTextureCoordinates,12, 0.13,0.29
SetTextureCoordinates,13, 0.13,0.26
SetTextureCoordinates,14, 0.25,0.23

SetTextureCoordinates,15,    1,1
SetTextureCoordinates,16,    1,0.95
SetTextureCoordinates,17,  0.9,0.95
SetTextureCoordinates,18,    1,0.90
SetTextureCoordinates,19,    1,0.82
SetTextureCoordinates,20,    1,0.29
SetTextureCoordinates,21,  0.96875,0.26
SetTextureCoordinates,22,  0.96484375,0.2265625

SetTextureCoordinates,23, 0.87,1
SetTextureCoordinates,24, 0.87,0.95
SetTextureCoordinates,25, 0.87,0.90
SetTextureCoordinates,26, 0.87,0.82
SetTextureCoordinates,27, 0.87,0.29
SetTextureCoordinates,28, 0.87,0.26
SetTextureCoordinates,29, 0.75,0.23

SetTextureCoordinates,30,  0.96484375,0.006;修正
SetTextureCoordinates,31,  0.96875,0.005;修正
SetTextureCoordinates,32,  0.03515625,0.006;修正
SetTextureCoordinates,33,  0.03125,0.005;修正
SetTextureCoordinates,34,  0.15,0.006;修正
SetTextureCoordinates,35,  0.85,0.006;修正
SetTextureCoordinates,36,  0.15,0.005;修正
SetTextureCoordinates,37,  0.85,0.005;修正




;床下333
CreateMeshBuilder
AddVertex, -1,  0, -0.50;0
AddVertex, -1,1.1, -0.50;1
AddVertex, -1,  0,-19.50;2
AddVertex, -1,1.1,-19.50;3
Addface,0,1,3,2
GenerateNormals

LoadTexture,257u.bmp
SetTextureCoordinates, 1,0,0
SetTextureCoordinates, 0,0,1
SetTextureCoordinates, 2,1,1
SetTextureCoordinates, 3,1,0


;床下333（ヨーダンパ）
;CreateMeshBuilder
;AddVertex, -1.3,  0, -0.50;0
;AddVertex, -1.3,1.1, -0.50;1
;AddVertex, -1.3,  0,-19.50;2
;AddVertex, -1.3,1.1,-19.50;3
;Addface,0,1,3,2
;GenerateNormals

;LoadTexture,257u2.bmp
;SetTextureCoordinates, 1,0,0
;SetTextureCoordinates, 0,0,1
;SetTextureCoordinates, 2,1,1
;SetTextureCoordinates, 3,1,0
;SetDecaltransparentColor,0,0,255


;床下332
CreateMeshBuilder
AddVertex,  1,  0, -0.5;0
AddVertex,  1,1.1, -0.5;1
AddVertex,  1,  0,-19.5;2
AddVertex,  1,1.1,-19.5;3
Addface,0,2,3,1
GenerateNormals

LoadTexture,257u.bmp
SetTextureCoordinates, 3,0,0
SetTextureCoordinates, 2,0,1
SetTextureCoordinates, 1,1,0
SetTextureCoordinates, 0,1,1


;床下332（ヨーダンパ）
;CreateMeshBuilder
;AddVertex,  1.3,  0, -0.5;0
;AddVertex,  1.3,1.1, -0.5;1
;AddVertex,  1.3,  0,-19.5;2
;AddVertex,  1.3,1.1,-19.5;3
;Addface,0,2,3,1
;GenerateNormals

;LoadTexture,257u2.bmp
;SetTextureCoordinates, 3,0,0
;SetTextureCoordinates, 2,0,1
;SetTextureCoordinates, 1,1,0
;SetTextureCoordinates, 0,1,1
;SetDecaltransparentColor,0,0,255


;妻床面
CreateMeshBuilder
AddVertex, -1,  0,-19.5;0
AddVertex, -1,1.1,-19.5;1
AddVertex,  1,  0,-19.5;2
AddVertex,  1,1.1,-19.5;3
Addface,0,1,3,2
GenerateNormals
SetColor,0,0,0


;天丼
CreateMeshBuilder
Addvertex,-1.30,3.440, -0.25;0
Addvertex, 1.30,3.440, -0.25;1
Addvertex,-1.30,3.440,-17.26;2
Addvertex, 1.30,3.440,-17.26;3
AddVertex, -1.28, 3.60,-18.50;4
AddVertex,  1.28, 3.60,-18.50;5
AddFace,0,1,3,2
Addface,2,3,5,4
GenerateNormals
SetColor,150,150,150


;転落防止ほろ
CreateMeshBuilder
AddVertex, -1.46,1.5, -0.08;0
AddVertex,-1.456,3.0, -0.08;1
AddVertex, -1.46,1.5,-17.00;2
AddVertex,-1.456,3.0,-17.00;3
AddFace,0,1,3,2
GenerateNormals
SetColor,250,250,250

CreateMeshBuilder
AddVertex, 1.46,1.5, -0.08;0
AddVertex,1.456,3.0, -0.08;1
AddVertex, 1.46,1.5,-17.00;2
AddVertex,1.456,3.0,-17.00;3
AddFace,0,2,3,1
GenerateNormals
SetColor,250,250,250


;電話のアンテナ
;CreateMeshBuilder
;Cylinder, 8, 0.14, 0.17, 0.3 
;Translate, -0.5, 3.6, -3
;GenerateNormals
;SetColor,250,250,250

;CreateMeshBuilder
;Cylinder, 8, 0.14, 0.17, 0.3 
;Translate,  0.5, 3.6, -3
;GenerateNormals
;SetColor,250,250,250

;CreateMeshBuilder
;AddVertex, -0.7,3.5,-3;0
;AddVertex,  0.7,3.5,-3;1
;AddVertex, -0.7,4.1,-3;2
;AddVertex,  0.7,4.1,-3;3
;AddFace2,0,1,3,2
;GenerateNormals

;LoadTexture,antena.bmp
;SetTextureCoordinates, 0,0,0
;SetTextureCoordinates, 1,1,1
;SetTextureCoordinates, 2,0,1
;SetTextureCoordinates, 3,1,1
;SetDecaltransparentColor,0,0,255

;スカート
CreateMeshBuilder
AddVertex,-1.35, 0.6,-19.75;0
AddVertex,-1.30,0.45,-19.80;1
AddVertex,-0.95, 0.2,-19.85;2
AddVertex,-0.55, 0.6,-19.75;3
AddVertex,-0.55,0.45,-19.80;4
AddVertex,-0.55, 0.2,-19.85;5
AddVertex,-1.35, 0.6,-18.55;6
AddVertex,-1.30,0.45,-18.75;7
AddVertex,-0.95, 0.2,-19.05;8

Addface,6,0,1,7
Addface,7,1,2,8
Addface,0,3,4,1
Addface,1,4,5,2
GenerateNormals

LoadTexture,fu_s.bmp
SetTextureCoordinates, 0,0.7,0
SetTextureCoordinates, 1,0.7,0.5
SetTextureCoordinates, 2,0.7,1
SetTextureCoordinates, 3,1,0
SetTextureCoordinates, 4,1,0.5
SetTextureCoordinates, 5,1,1
SetTextureCoordinates, 6,0,0
SetTextureCoordinates, 7,0.1,0.5
SetTextureCoordinates, 8,0.3,1


CreateMeshBuilder
AddVertex, 1.35, 0.6,-19.75;0
AddVertex, 1.30,0.45,-19.80;1
AddVertex, 0.95, 0.2,-19.85;2
AddVertex, 0.55, 0.6,-19.75;3
AddVertex, 0.55,0.45,-19.80;4
AddVertex, 0.55, 0.2,-19.85;5
AddVertex, 1.35, 0.6,-18.55;6
AddVertex, 1.30,0.45,-18.75;7
AddVertex, 0.95, 0.2,-19.05;8

Addface,6,7,1,0
Addface,7,8,2,1
Addface,0,1,4,3
Addface,1,2,5,4
GenerateNormals

LoadTexture,fu_s.bmp
SetTextureCoordinates, 0,0.7,0.07
SetTextureCoordinates, 1,0.7,0.5
SetTextureCoordinates, 2,0.7,1
SetTextureCoordinates, 3,1,0.07
SetTextureCoordinates, 4,1,0.5
SetTextureCoordinates, 5,1,1
SetTextureCoordinates, 6,0,0.07
SetTextureCoordinates, 7,0.1,0.5
SetTextureCoordinates, 8,0.3,1

CreateMeshBuilder
AddVertex,-0.55, 0.6,-19.75;0
AddVertex,-0.75, 0.6,-19.75;1
AddVertex,-0.55, 0.9,-19.80;2
AddVertex,-0.75, 0.9,-19.80;3
AddVertex, 0.55, 0.6,-19.75;4
AddVertex, 0.75, 0.6,-19.75;5
AddVertex, 0.55, 0.9,-19.80;6
AddVertex, 0.75, 0.9,-19.80;7
Addface,3,2,0,1
Addface,6,7,5,4
GenerateNormals
Setcolor,255,255,255

CreateMeshBuilder
AddVertex,-0.50,1.05,-19.87;0
AddVertex, 0.50,1.05,-19.87;1
AddVertex,-0.50,0.65,-19.87;2
AddVertex, 0.50,0.65,-19.87;3
AddVertex,-0.50,0.65,-19.67;4
AddVertex, 0.50,0.65,-19.67;5
AddVertex,-0.50,0.25,-19.72;6
AddVertex, 0.50,0.25,-19.72;7

AddFace,0,1,3,2
AddFace,2,3,5,4
AddFace,4,5,7,6
GenerateNormals

LoadTexture,fu_c.bmp
SetTextureCoordinates, 0,0,0.05
SetTextureCoordinates, 2,0,0.5
SetTextureCoordinates, 4,0,0.51
SetTextureCoordinates, 6,0,1
SetTextureCoordinates, 1,1,0.05
SetTextureCoordinates, 3,1,0.5
SetTextureCoordinates, 5,1,0.51
SetTextureCoordinates, 7,1,1
SetDecaltransparentColor,0,0,255
