Source

WebGL Beginner's Guide - Code / 1727_10 / models / geometry / cone.json

Full commit
1
2
3
4
5
{
  "vertices" : [0.0,6.0,-2.59787e-16,3.0,8.88178e-16,5.19574e-16,2.99737,8.88178e-16,-0.125627,2.98948,8.88178e-16,-0.251034,2.97634,8.88178e-16,-0.376,2.95799,8.88178e-16,-0.500306,2.93444,8.88178e-16,-0.623735,2.90575,8.88178e-16,-0.74607,2.87196,8.88178e-16,-0.867095,2.83313,8.88178e-16,-0.9866,2.78933,8.88178e-16,-1.10437,2.74064,8.88178e-16,-1.22021,2.68714,8.88178e-16,-1.33391,2.62892,8.88178e-16,-1.44526,2.56609,8.88178e-16,-1.55408,2.49876,8.88178e-16,-1.66017,2.42705,8.88178e-16,-1.76336,2.35108,8.88178e-16,-1.86344,2.27099,8.88178e-16,-1.96026,2.18691,8.88178e-16,-2.05364,2.09899,8.88178e-16,-2.14342,2.00739,8.88178e-16,-2.22943,1.91227,8.88178e-16,-2.31154,1.8138,8.88178e-16,-2.38959,1.71214,8.88178e-16,-2.46345,1.60748,8.88178e-16,-2.53298,1.5,4.44089e-16,-2.59808,1.38989,4.44089e-16,-2.65861,1.27734,4.44089e-16,-2.71448,1.16255,4.44089e-16,-2.76559,1.04572,4.44089e-16,-2.81185,0.927051,4.44089e-16,-2.85317,0.806759,4.44089e-16,-2.88949,0.685053,4.44089e-16,-2.92074,0.562144,4.44089e-16,-2.94686,0.438249,4.44089e-16,-2.96782,0.313585,4.44089e-16,-2.98357,0.188372,4.44089e-16,-2.99408,0.0628273,4.44089e-16,-2.99934,-0.0628273,4.44089e-16,-2.99934,-0.188372,4.44089e-16,-2.99408,-0.313585,4.44089e-16,-2.98357,-0.438249,4.44089e-16,-2.96782,-0.562144,4.44089e-16,-2.94686,-0.685053,4.44089e-16,-2.92074,-0.806759,4.44089e-16,-2.88949,-0.927051,4.44089e-16,-2.85317,-1.04572,4.44089e-16,-2.81185,-1.16255,4.44089e-16,-2.76559,-1.27734,4.44089e-16,-2.71448,-1.38989,4.44089e-16,-2.65861,-1.5,4.44089e-16,-2.59808,-1.60748,8.88178e-16,-2.53298,-1.71214,8.88178e-16,-2.46345,-1.8138,8.88178e-16,-2.38959,-1.91227,8.88178e-16,-2.31154,-2.00739,8.88178e-16,-2.22943,-2.09899,8.88178e-16,-2.14342,-2.18691,8.88178e-16,-2.05364,-2.27099,8.88178e-16,-1.96026,-2.35108,8.88178e-16,-1.86344,-2.42705,8.88178e-16,-1.76336,-2.49876,8.88178e-16,-1.66017,-2.56609,8.88178e-16,-1.55408,-2.62892,8.88178e-16,-1.44526,-2.68714,8.88178e-16,-1.33391,-2.74064,8.88178e-16,-1.22021,-2.78933,8.88178e-16,-1.10437,-2.83313,8.88178e-16,-0.9866,-2.87196,8.88178e-16,-0.867095,-2.90575,8.88178e-16,-0.74607,-2.93444,8.88178e-16,-0.623735,-2.95799,8.88178e-16,-0.500306,-2.97634,8.88178e-16,-0.376,-2.98948,8.88178e-16,-0.251034,-2.99737,8.88178e-16,-0.125627,-3.0,8.88178e-16,1.23062e-09,-2.99737,8.88178e-16,0.125627,-2.98948,8.88178e-16,0.251034,-2.97634,8.88178e-16,0.376,-2.95799,8.88178e-16,0.500306,-2.93444,8.88178e-16,0.623735,-2.90575,8.88178e-16,0.74607,-2.87196,8.88178e-16,0.867095,-2.83313,8.88178e-16,0.9866,-2.78933,8.88178e-16,1.10437,-2.74064,8.88178e-16,1.22021,-2.68714,8.88178e-16,1.33391,-2.62892,8.88178e-16,1.44526,-2.56609,8.88178e-16,1.55408,-2.49876,8.88178e-16,1.66017,-2.42705,8.88178e-16,1.76336,-2.35108,8.88178e-16,1.86344,-2.27099,8.88178e-16,1.96026,-2.18691,8.88178e-16,2.05364,-2.09899,8.88178e-16,2.14342,-2.00739,8.88178e-16,2.22943,-1.91227,8.88178e-16,2.31154,-1.8138,8.88178e-16,2.38959,-1.71214,8.88178e-16,2.46345,-1.60748,8.88178e-16,2.53298,-1.5,1.33227e-15,2.59808,-1.38989,1.33227e-15,2.65861,-1.27734,1.33227e-15,2.71448,-1.16255,1.33227e-15,2.76559,-1.04572,1.33227e-15,2.81185,-0.927051,1.33227e-15,2.85317,-0.806759,1.33227e-15,2.88949,-0.685053,1.33227e-15,2.92074,-0.562144,1.33227e-15,2.94686,-0.438249,1.33227e-15,2.96782,-0.313585,1.33227e-15,2.98357,-0.188372,1.33227e-15,2.99408,-0.0628273,1.33227e-15,2.99934,0.0628273,1.33227e-15,2.99934,0.188372,1.33227e-15,2.99408,0.313585,1.33227e-15,2.98357,0.438249,1.33227e-15,2.96782,0.562144,1.33227e-15,2.94686,0.685053,1.33227e-15,2.92074,0.806759,1.33227e-15,2.88949,0.927051,1.33227e-15,2.85317,1.04572,1.33227e-15,2.81185,1.16255,1.33227e-15,2.76559,1.27734,1.33227e-15,2.71448,1.38989,1.33227e-15,2.65861,1.5,1.33227e-15,2.59808,1.60748,8.88178e-16,2.53298,1.71214,8.88178e-16,2.46345,1.8138,8.88178e-16,2.38959,1.91227,8.88178e-16,2.31154,2.00739,8.88178e-16,2.22943,2.09899,8.88178e-16,2.14342,2.18691,8.88178e-16,2.05364,2.27099,8.88178e-16,1.96026,2.35108,8.88178e-16,1.86344,2.42705,8.88178e-16,1.76336,2.49876,8.88178e-16,1.66017,2.56609,8.88178e-16,1.55408,2.62892,8.88178e-16,1.44526,2.68714,8.88178e-16,1.33391,2.74064,8.88178e-16,1.22021,2.78933,8.88178e-16,1.10437,2.83313,8.88178e-16,0.9866,2.87196,8.88178e-16,0.867095,2.90575,8.88178e-16,0.74607,2.93444,8.88178e-16,0.623735,2.95799,8.88178e-16,0.500306,2.97634,8.88178e-16,0.376,2.98948,8.88178e-16,0.251034,2.99737,8.88178e-16,0.125627,3.0,8.88178e-16,-2.46124e-09],
  "indices" : [0,1,2,0,2,3,0,3,4,0,4,5,0,5,6,0,6,7,0,7,8,0,8,9,0,9,10,0,10,11,0,11,12,0,12,13,0,13,14,0,14,15,0,15,16,0,16,17,0,17,18,0,18,19,0,19,20,0,20,21,0,21,22,0,22,23,0,23,24,0,24,25,0,25,26,0,26,27,0,27,28,0,28,29,0,29,30,0,30,31,0,31,32,0,32,33,0,33,34,0,34,35,0,35,36,0,36,37,0,37,38,0,38,39,0,39,40,0,40,41,0,41,42,0,42,43,0,43,44,0,44,45,0,45,46,0,46,47,0,47,48,0,48,49,0,49,50,0,50,51,0,51,52,0,52,53,0,53,54,0,54,55,0,55,56,0,56,57,0,57,58,0,58,59,0,59,60,0,60,61,0,61,62,0,62,63,0,63,64,0,64,65,0,65,66,0,66,67,0,67,68,0,68,69,0,69,70,0,70,71,0,71,72,0,72,73,0,73,74,0,74,75,0,75,76,0,76,77,0,77,78,0,78,79,0,79,80,0,80,81,0,81,82,0,82,83,0,83,84,0,84,85,0,85,86,0,86,87,0,87,88,0,88,89,0,89,90,0,90,91,0,91,92,0,92,93,0,93,94,0,94,95,0,95,96,0,96,97,0,97,98,0,98,99,0,99,100,0,100,101,0,101,102,0,102,103,0,103,104,0,104,105,0,105,106,0,106,107,0,107,108,0,108,109,0,109,110,0,110,111,0,111,112,0,112,113,0,113,114,0,114,115,0,115,116,0,116,117,0,117,118,0,118,119,0,119,120,0,120,121,0,121,122,0,122,123,0,123,124,0,124,125,0,125,126,0,126,127,0,127,128,0,128,129,0,129,130,0,130,131,0,131,132,0,132,133,0,133,134,0,134,135,0,135,136,0,136,137,0,137,138,0,138,139,0,139,140,0,140,141,0,141,142,0,142,143,0,143,144,0,144,145,0,145,146,0,146,147,0,147,148,0,148,149,0,149,150,0,150,151],
  "diffuse" : [1.0,0.664,0.0,1.0]
}