; porta post sx
CreateMeshBuilder; esterno
AddVertex, 0, 0, 0.80
AddVertex, 0, 2.05, 0.80
AddVertex, 0, 2.05, 0
AddVertex, 0, 0, 0
AddFace, 0,1,2,3
LoadTexture, porta_int.png
SetTextureCoordinates, 0, 0, 1
SetTextureCoordinates, 1, 0, 0
SetTextureCoordinates, 2, 1, 0
SetTextureCoordinates, 3, 1, 1
SetDecalTransparentColor, 0, 0, 255


CreateMeshBuilder;interno
AddVertex, 0.04, 0, 0.80
AddVertex, 0.04, 2.05, 0.80
AddVertex, 0.04, 2.05, 0
AddVertex, 0.04, 0, 0
AddFace, 3,2,1,0
LoadTexture, porta.png
SetTextureCoordinates, 0, 0, 1
SetTextureCoordinates, 1, 0, 0
SetTextureCoordinates, 2, 1, 0
SetTextureCoordinates, 3, 1, 1
SetDecalTransparentColor, 0, 0, 255
;SetEmissiveColor, 230,219,204

CreateMeshBuilder; sbarra
Cylinder, 12, 0.015, 0.015, 0.74
SetColor, 192,175,105
Rotate,1,0,0,90
Translate,-0.02,1.3,0.415
;SetEmissiveColor, 230,219,204

CreateMeshBuilder; corrimano
Cylinder, 12, 0.015, 0.015, 1.04
SetColor, 192,175,105
Rotate,1,0,0,-40
Translate,-0.04,0.60,0.415
;SetEmissiveColor, 230,219,204

CreateMeshBuilder; riempimento vert
Cube,  0.017, 1.025,0.017
SetColor, 98,97,86
Translate,0.02,1.025,0.04

CreateMeshBuilder; riempimento vert
Cube,  0.017, 1.025,0.017
SetColor, 98,97,86
Translate,0.02,1.025,0.775

CreateMeshBuilder; riempimento orizz alto
Cube, 0.015,0.017, 0.37,  
SetColor, 98,97,86
Translate,0.02,2.04,0.41

CreateMeshBuilder; riempimento orizz basso
Cube, 0.017,0.017, 0.37,  
SetColor, 98,97,86
Translate,0.02,1.07,0.41

RotateAll,0,1,0,180