// my first “beautiful” BabylonJS model
var createScene = function () {
var scene = new BABYLON.Scene(engine);
var light = new BABYLON.HemisphericLight(“hemiLight”, new BABYLON.Vector3(-1, 1, 0), scene);
light.intensity = 2
var camera = new BABYLON.ArcRotateCamera(“camera1”, 0, 0, 0, new BABYLON.Vector3(0, 0, 0), scene);
camera.setPosition(new BABYLON.Vector3(0, 5, -30));
camera.attachControl(canvas, true);
var customMesh = new BABYLON.Mesh(“custom”, scene);
let positions = [10.055,3.444,12.101,-4.537,14.747,-0.950,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,-4.537,14.747,-0.950,10.055,3.444,12.101,6.022,10.430,-9.016,10.055,3.444,12.101,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,10.055,3.444,12.101,6.022,10.430,-9.016,-11.063,3.444,4.035,10.055,3.444,12.101,6.022,10.430,-9.016,6.022,10.430,-9.016,10.055,3.444,12.101,-11.063,3.444,4.035,8.514,-7.859,4.035,-11.063,3.444,4.035,6.022,10.430,-9.016,6.022,10.430,-9.016,-11.063,3.444,4.035,8.514,-7.859,4.035,8.514,14.747,4.035,-11.063,3.444,4.035,8.514,-7.859,4.035,8.514,-7.859,4.035,-11.063,3.444,4.035,8.514,14.747,4.035,-6.078,3.444,-9.016,8.514,14.747,4.035,8.514,-7.859,4.035,8.514,-7.859,4.035,8.514,14.747,4.035,-6.078,3.444,-9.016,-2.045,-3.541,12.101,8.514,14.747,4.035,-6.078,3.444,-9.016,-6.078,3.444,-9.016,8.514,14.747,4.035,-2.045,-3.541,12.101,6.022,-3.541,-9.016,8.514,14.747,4.035,-2.045,-3.541,12.101,-2.045,-3.541,12.101,8.514,14.747,4.035,6.022,-3.541,-9.016,-4.537,14.747,-0.950,6.022,-3.541,-9.016,-2.045,-3.541,12.101,-2.045,-3.541,12.101,6.022,-3.541,-9.016,-4.537,14.747,-0.950,10.055,3.444,12.101,6.022,-3.541,-9.016,-4.537,14.747,-0.950,-4.537,14.747,-0.950,6.022,-3.541,-9.016,10.055,3.444,12.101,-4.537,-7.859,-0.950,10.055,3.444,12.101,-4.537,14.747,-0.950,-4.537,14.747,-0.950,10.055,3.444,12.101,-4.537,-7.859,-0.950,6.022,10.430,-9.016,10.055,3.444,12.101,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,10.055,3.444,12.101,6.022,10.430,-9.016,-2.045,10.430,12.101,6.022,10.430,-9.016,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,6.022,10.430,-9.016,-2.045,10.430,12.101,15.040,3.444,-0.950,-2.045,10.430,12.101,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,-2.045,10.430,12.101,15.040,3.444,-0.950,-6.078,3.444,-9.016,-2.045,10.430,12.101,15.040,3.444,-0.950,15.040,3.444,-0.950,-2.045,10.430,12.101,-6.078,3.444,-9.016,-2.045,-3.541,12.101,-6.078,3.444,-9.016,15.040,3.444,-0.950,15.040,3.444,-0.950,-6.078,3.444,-9.016,-2.045,-3.541,12.101,8.514,14.747,4.035,-6.078,3.444,-9.016,-2.045,-3.541,12.101,-2.045,-3.541,12.101,-6.078,3.444,-9.016,8.514,14.747,4.035,6.022,-3.541,-9.016,8.514,14.747,4.035,-2.045,-3.541,12.101,-2.045,-3.541,12.101,8.514,14.747,4.035,6.022,-3.541,-9.016,-11.063,3.444,4.035,8.514,14.747,4.035,6.022,-3.541,-9.016,6.022,-3.541,-9.016,8.514,14.747,4.035,-11.063,3.444,4.035,8.514,-7.859,4.035,8.514,14.747,4.035,-11.063,3.444,4.035,-11.063,3.444,4.035,8.514,14.747,4.035,8.514,-7.859,4.035,6.022,10.430,-9.016,8.514,-7.859,4.035,-11.063,3.444,4.035,-11.063,3.444,4.035,8.514,-7.859,4.035,6.022,10.430,-9.016,-2.045,10.430,12.101,8.514,-7.859,4.035,6.022,10.430,-9.016,6.022,10.430,-9.016,8.514,-7.859,4.035,-2.045,10.430,12.101,-4.537,-7.859,-0.950,-2.045,10.430,12.101,6.022,10.430,-9.016,6.022,10.430,-9.016,-2.045,10.430,12.101,-4.537,-7.859,-0.950,15.040,3.444,-0.950,-2.045,10.430,12.101,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,-2.045,10.430,12.101,15.040,3.444,-0.950,-4.537,14.747,-0.950,15.040,3.444,-0.950,-4.537,-7.859,-0.950,-4.537,-7.859,-0.950,15.040,3.444,-0.950,-4.537,14.747,-0.950],
indices = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],
colors = [1.000,0.000,0.533,0.1,1.000,0.000,0.533,0.1,1.000,0.000,0.533,0.1,1.000,0.000,0.533,0.1,1.000,0.000,0.533,0.1,1.000,0.000,0.533,0.1,0.000,0.317,1.000,0.1,0.000,0.317,1.000,0.1,0.000,0.317,1.000,0.1,0.000,0.317,1.000,0.1,0.000,0.317,1.000,0.1,0.000,0.317,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,1.000,0.000,0.250,0.1,1.000,0.000,0.250,0.1,1.000,0.000,0.250,0.1,1.000,0.000,0.250,0.1,1.000,0.000,0.250,0.1,1.000,0.000,0.250,0.1,0.500,1.000,0.000,0.1,0.500,1.000,0.000,0.1,0.500,1.000,0.000,0.1,0.500,1.000,0.000,0.1,0.500,1.000,0.000,0.1,0.500,1.000,0.000,0.1,0.000,1.000,0.517,0.1,0.000,1.000,0.517,0.1,0.000,1.000,0.517,0.1,0.000,1.000,0.517,0.1,0.000,1.000,0.517,0.1,0.000,1.000,0.517,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.000,0.100,1.000,0.1,0.000,0.100,1.000,0.1,0.000,0.100,1.000,0.1,0.000,0.100,1.000,0.1,0.000,0.100,1.000,0.1,0.000,0.100,1.000,0.1,1.000,0.283,0.000,0.1,1.000,0.283,0.000,0.1,1.000,0.283,0.000,0.1,1.000,0.283,0.000,0.1,1.000,0.283,0.000,0.1,1.000,0.283,0.000,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.517,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.200,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.917,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.650,0.1,1.000,0.000,0.500,0.1,1.000,0.000,0.500,0.1,1.000,0.000,0.500,0.1,1.000,0.000,0.500,0.1,1.000,0.000,0.500,0.1,1.000,0.000,0.500,0.1,0.000,1.000,0.333,0.1,0.000,1.000,0.333,0.1,0.000,1.000,0.333,0.1,0.000,1.000,0.333,0.1,0.000,1.000,0.333,0.1,0.000,1.000,0.333,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,0.150,1.000,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,0.000,0.133,1.000,0.1,0.000,0.133,1.000,0.1,0.000,0.133,1.000,0.1,0.000,0.133,1.000,0.1,0.000,0.133,1.000,0.1,0.000,0.133,1.000,0.1,1.000,0.000,0.950,0.1,1.000,0.000,0.950,0.1,1.000,0.000,0.950,0.1,1.000,0.000,0.950,0.1,1.000,0.000,0.950,0.1,1.000,0.000,0.950,0.1,0.333,1.000,0.000,0.1,0.333,1.000,0.000,0.1,0.333,1.000,0.000,0.1,0.333,1.000,0.000,0.1,0.333,1.000,0.000,0.1,0.333,1.000,0.000,0.1,0.850,0.000,1.000,0.1,0.850,0.000,1.000,0.1,0.850,0.000,1.000,0.1,0.850,0.000,1.000,0.1,0.850,0.000,1.000,0.1,0.850,0.000,1.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.850,0.000,0.1,1.000,0.000,0.000,0.1,1.000,0.000,0.000,0.1,1.000,0.000,0.000,0.1,1.000,0.000,0.000,0.1,1.000,0.000,0.000,0.1,1.000,0.000,0.000,0.1,0.017,0.000,1.000,0.1,0.017,0.000,1.000,0.1,0.017,0.000,1.000,0.1,0.017,0.000,1.000,0.1,0.017,0.000,1.000,0.1,0.017,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1,0.050,0.000,1.000,0.1],
normals = ;
var vertexData = new BABYLON.VertexData();
BABYLON.VertexData.ComputeNormals(positions, indices, normals);
vertexData.positions = positions;
vertexData.indices = indices;
vertexData.normals = normals;
vertexData.colors = colors;
customMesh.hasVertexAlpha = true;
vertexData.applyToMesh(customMesh);
return scene;
};