=== File http://localhost/subjectPrograms/ClientSideOnly/3dmodel/./design.js === function dinosaur(fillcolor, linecolor) >>> { >>> this.points=[[0,0,0],[-31.75,-22.61,-150.88], [-29.72,-33.02,-156.46], [-21.84,-23.88,-157.23], [47.50,-61.98,-72.90], [33.02,-77.22,-88.39], [29.97,-73.41,-78.74], [24.13,-68.83,-68.83], [25.40,-61.72,-60.71], [30.23,-53.85,-53.85], [48.77,-48.26,-59.18], [56.39,-52.58,-70.87], [62.48,-56.39,-88.14], [53.34,-66.55,-90.42], [43.94,-73.91,-92.71], [65.28,-35.56,-69.60], [48.26,-32.26,-48.77], [60.96,-20.57,-56.90], [71.12,-15.24,-72.64], [71.37,-26.16,-80.01], [72.14,-44.20,-86.11], [42.16,-41.15,-49.28], [28.96,-41.91,-44.70], [37.08,-32.00,-42.42], [46.74,-13.21,-42.16], [30.23,-17.53,-36.07], [27.43,-7.11,-33.53], [44.20,10.67,-40.39], [54.61,8.13,-47.50], [58.93,-10.16,-52.32], [30.99,11.43,-34.29], [16.00,10.16,-32.26], [20.07,18.29,-33.53], [26.16,31.50,-37.34], [42.67,32.51,-44.96], [58.93,26.42,-56.90], [51.31,39.88,-56.39], [56.13,42.93,-65.53], [61.47,36.58,-70.61], [65.02,31.75,-73.15], [67.06,21.08,-68.07], [64.52,3.81,-58.67], [72.90,-0.25,-74.68], [72.39,16.51,-78.74], [76.71,9.91,-94.49], [76.45,-6.35,-93.22], [75.18,-13.46,-85.34], [81.53,-24.38,-87.88], [76.96,-34.80,-85.60], [81.79,-16.26,-89.92], [87.63,-24.64,-98.04], [85.85,-33.53,-96.01], [78.99,-43.43,-94.49], [65.79,-55.37,-106.17], [56.90,-69.85,-108.97], [70.61,-50.80,-108.46], [63.75,-59.18,-115.57], [51.82,-80.26,-114.05], [47.24,-90.42,-115.82], [40.13,-83.06,-103.12], [57.91,-71.88,-117.09], [57.66,-71.88,-126.49], [51.05,-85.34,-119.13], [35.81,-79.76,-95.50], [29.21,-84.84,-97.79], [38.35,-129.03,-126.49], [36.32,-132.08,-133.10], [34.80,-129.54,-126.49], [32.77,-122.94,-120.14], [36.83,-122.43,-119.89], [40.89,-119.38,-119.89], [43.94,-121.92,-126.24], [42.93,-125.73,-130.56], [39.62,-130.56,-131.06], [36.83,-118.87,-116.33], [30.48,-115.32,-112.27], [37.85,-109.73,-109.73], [42.67,-112.78,-116.84], [37.85,-100.84,-108.46], [29.21,-109.73,-108.97], [27.69,-100.84,-106.43], [38.61,-91.19,-106.68], [43.43,-99.57,-112.52], [26.67,-93.73,-104.39], [25.15,-87.88,-100.33], [46.99,-107.19,-121.41], [46.48,-100.33,-126.24], [49.28,-81.03,-135.89], [47.75,-93.22,-125.73], [50.80,-70.87,-138.18], [32.00,-65.53,-145.54], [39.37,-85.60,-140.46], [53.09,-58.67,-140.21], [61.47,-61.47,-127.25], [67.06,-45.21,-128.27], [62.74,-56.13,-137.41], [58.42,-56.90,-144.53], [49.78,-54.10,-143.51], [30.23,-45.97,-147.07], [75.18,-50.80,-136.14], [83.82,-35.31,-127.51], [82.80,-42.93,-133.86], [82.80,-44.70,-140.72], [73.66,-54.10,-142.24], [89.15,-23.88,-108.97], [87.12,-32.26,-106.93], [88.65,-16.76,-101.35], [87.12,-8.89,-106.93], [86.87,-8.64,-114.30], [89.15,-23.11,-117.35], [79.25,-36.58,-117.86], [75.69,17.27,-104.39], [76.96,5.08,-108.71], [74.42,19.56,-94.23], [80.52,28.19,-94.49], [81.79,28.45,-105.92], [72.64,20.83,-114.05], [74.42,-0.76,-122.17], [75.18,33.53,-82.04], [70.87,24.64,-81.53], [65.53,47.24,-75.95], [76.45,43.94,-85.85], [79.76,36.58,-88.90], [72.90,22.10,-86.87], [64.52,57.15,-83.31], [56.39,49.28,-70.36], [50.55,57.66,-71.63], [53.34,64.26,-82.80], [65.53,60.96,-95.00], [74.68,52.58,-93.22], [48.26,78.23,-111.76], [59.44,57.66,-110.74], [55.37,65.79,-99.57], [44.96,71.37,-86.11], [39.12,85.85,-102.87], [34.54,96.52,-113.79], [40.64,89.41,-124.21], [43.18,80.26,-131.57], [55.88,61.47,-123.70], [21.59,113.54,-114.30], [23.62,100.84,-107.70], [16.51,107.70,-109.73], [10.67,113.28,-109.47], [16.00,122.17,-109.73], [21.59,126.49,-122.68], [23.88,117.86,-135.64], [28.96,112.01,-128.52], [9.91,140.97,-100.84], [-0.76,144.27,-90.93], [2.79,143.76,-108.20], [5.33,140.46,-119.13], [12.70,137.92,-115.32], [15.75,133.60,-110.74], [12.95,127.00,-104.14], [9.14,132.33,-94.74], [6.86,134.62,-89.41], [28.96,88.90,-96.52], [20.07,82.30,-81.53], [18.80,89.41,-91.69], [10.67,102.36,-104.90], [33.02,74.17,-76.71], [37.34,56.13,-57.66], [28.19,38.86,-41.15], [20.07,52.32,-47.24], [20.32,60.20,-52.58], [20.57,72.39,-67.06], [42.16,66.04,-73.66], [45.72,-113.54,-129.03], [34.04,-98.55,-137.92], [34.80,-108.46,-137.16], [35.81,-118.87,-136.65], [41.15,-122.43,-133.60], [44.20,-107.44,-115.06], [42.16,-97.54,-133.35], [5.08,6.10,-18.80], [10.41,-20.32,-34.04], [1.27,-18.29,-19.30], [-3.81,2.29,-4.06], [-3.30,14.99,-12.95], [4.83,19.81,-32.77], [8.38,9.91,-30.73], [10.41,-2.54,-30.99], [12.95,-29.46,-36.58], [14.99,-44.45,-42.67], [7.62,-36.07,-26.67], [4.57,-35.31,-26.67], [5.84,-27.69,-36.83], [4.83,-21.59,-34.04], [6.35,-53.85,-25.15], [7.87,45.72,-41.15], [5.59,29.72,-35.05], [1.27,38.61,-22.10], [-5.59,57.91,-23.11], [0.00,62.48,-34.54], [4.57,59.44,-51.05], [4.57,83.57,-59.44], [5.59,64.26,-55.12], [-2.79,77.72,-47.75], [-3.05,90.17,-52.83], [-1.02,92.96,-63.25], [0.51,91.95,-70.36], [8.64,83.06,-81.03], [8.89,75.18,-67.82], [0.25,20.57,-34.04], [0.00,28.45,-35.31], [10.41,119.38,-107.19], [4.57,115.06,-102.11], [3.56,123.70,-101.85], [7.11,124.21,-101.85], [-1.02,133.86,-84.58], [-2.03,136.40,-80.77], [-2.54,139.95,-80.26], [4.83,141.99,-89.15], [1.02,129.79,-92.71], [14.73,132.08,-129.29], [9.14,132.33,-133.86], [11.94,121.41,-142.24], [18.54,127.00,-132.08], [5.33,103.38,-87.88], [8.89,87.88,-88.65], [2.29,98.30,-83.06], [2.03,105.41,-85.34], [3.05,107.44,-91.44], [5.84,104.65,-103.12], [10.92,94.23,-96.77], [4.57,87.63,-88.65], [85.60,-21.08,-132.84], [86.36,-32.51,-140.72], [87.12,-28.45,-129.29], [88.90,-14.99,-124.71], [76.96,-13.72,-136.91], [76.96,-18.80,-143.51], [84.07,-25.15,-142.24], [68.07,-15.24,-145.29], [64.01,-8.89,-139.70], [69.85,-6.60,-134.11], [69.60,3.81,-131.83], [71.37,11.43,-126.75], [66.80,25.40,-130.30], [61.47,14.73,-141.48], [61.72,7.37,-140.21], [74.93,34.80,-131.57], [74.17,27.43,-121.92], [80.52,30.73,-113.54], [76.20,44.96,-131.32], [79.76,44.96,-141.48], [79.50,33.27,-141.99], [67.82,21.84,-145.54], [83.06,-9.65,-95.76], [77.22,0.76,-100.84], [81.53,-2.54,-103.12], [77.22,-0.51,-110.24], [83.31,-10.67,-127.25], [82.30,-42.42,-105.41], [84.07,-34.54,-95.00], [67.82,-43.69,-122.43], [66.29,-52.58,-111.51], [74.42,-49.78,-104.39], [83.82,35.81,-101.35], [82.55,38.10,-96.77], [80.52,46.23,-101.09], [83.06,40.39,-106.43], [79.50,46.23,-94.23], [71.12,53.34,-108.97], [69.85,57.15,-100.58], [70.61,57.66,-119.89], [79.76,45.97,-117.86], [80.01,46.99,-107.19], [0.00,60.45,-52.83], [0.51,64.01,-55.12], [-4.06,63.75,-34.29], [-4.06,38.35,-20.83], [16.51,-53.34,-50.55], [11.18,-61.98,-41.91], [18.54,-61.47,-59.69], [14.22,-61.98,-59.94], [13.21,-58.42,-56.64], [16.51,-57.66,-55.37], [17.78,-79.76,-56.13], [14.22,-71.88,-54.86], [15.24,-81.53,-55.37], [18.03,-87.88,-65.53], [25.40,-75.44,-80.77], [26.16,-77.72,-85.60], [20.32,-76.45,-82.04], [21.08,-78.49,-84.84], [24.13,-89.15,-94.49], [22.61,-89.66,-86.61], [27.94,-79.50,-89.41], [29.21,100.33,-140.46], [16.51,92.46,-149.35], [18.54,73.15,-149.86], [35.81,78.23,-141.48], [67.82,59.69,-132.08], [48.26,61.72,-139.95], [63.50,63.25,-144.02], [73.41,55.12,-145.03], [74.42,52.07,-131.32], [42.42,56.64,-144.53], [33.53,61.21,-146.56], [68.33,-43.18,-127.51], [85.85,-31.75,-122.94], [86.87,-33.02,-138.68], [10.92,-61.47,-44.20], [6.35,109.98,-108.97], [33.78,-88.39,-142.24], [33.02,-78.23,-144.02], [27.69,-86.87,-142.75], [24.64,-99.31,-136.91], [15.75,-96.52,-132.33], [18.54,-103.12,-131.83], [-18.29,-28.70,-163.07], [-10.16,-23.37,-161.29], [6.60,109.98,-108.97], [2.29,112.52,-111.25], [2.54,101.60,-106.43], [-7.62,97.54,-114.05], [-1.78,105.92,-113.54], [28.45,-127.25,-133.60], [22.86,-115.82,-133.60], [25.15,-123.95,-130.05], [24.89,-121.16,-123.19], [32.51,-131.32,-132.59], [30.48,-123.44,-135.89], [9.65,-58.42,-56.90], [-4.06,-57.40,-60.96], [6.86,-54.36,-52.58], [9.91,-61.98,-42.16], [3.30,-45.72,-44.96], [-25.40,-44.20,-162.81], [-22.61,-53.85,-155.45], [-19.56,-55.37,-161.54], [-27.43,-46.74,-150.37], [-30.99,-40.64,-153.42], [-31.75,-43.94,-147.07], [-38.61,-36.32,-143.51], [-26.67,-47.50,-139.45], [-10.16,-52.83,-144.02], [-13.21,-52.07,-138.94], [-1.02,74.42,-149.10], [-9.65,55.63,-151.89], [-11.94,74.68,-142.75], [-22.86,53.34,-139.70], [6.35,58.42,-152.15], [-1.52,52.07,-153.42], [-49.78,39.62,-118.62], [-50.80,32.51,-128.02], [-43.43,45.47,-123.70], [-42.42,49.78,-117.09], [-52.83,22.86,-116.08], [-52.58,24.13,-124.46], [-52.58,30.48,-112.27], [-49.78,14.73,-121.16], [-34.80,33.53,-153.92], [-43.43,33.27,-143.00], [-42.93,18.03,-138.68], [-42.67,7.37,-118.11], [-44.70,9.91,-111.00], [-48.01,33.78,-133.35], [-49.78,26.67,-133.60], [-46.48,15.24,-132.08], [-34.54,40.89,-153.67], [-34.04,33.27,-164.85], [-36.83,46.48,-141.73], [-30.23,48.26,-129.03], [-29.97,49.53,-152.15], [-28.96,44.45,-165.86], [-22.10,54.36,-161.54], [1.27,125.22,-135.64], [-0.51,115.32,-140.72], [-5.08,123.70,-128.02], [-6.60,108.46,-135.89], [-14.22,91.44,-123.70], [-14.22,83.82,-135.38], [0.25,97.28,-146.30], [2.54,130.81,-131.83], [16.76,-80.77,-91.69], [11.43,-79.50,-92.71], [16.51,-78.74,-87.63], [11.94,-86.11,-108.97], [12.19,-82.30,-100.33], [20.07,-85.85,-99.57], [14.99,-76.45,-82.80], [9.65,-75.44,-82.80], [10.16,-70.36,-71.63], [13.21,-80.26,-57.15], [10.16,-62.23,-61.47], [4.57,-64.01,-65.02], [-8.89,-45.72,-52.32], [2.29,-36.58,-27.69], [-8.64,37.59,-24.13], [-5.84,57.91,-23.11], [-7.37,61.72,-36.07], [0.25,60.45,-52.83], [-4.32,58.42,-52.83], [-2.54,77.72,-47.75], [0.00,64.01,-55.12], [-4.57,63.25,-57.15], [-37.08,-27.94,-150.37], [-40.39,-21.84,-140.46], [-36.32,-37.34,-102.11], [-40.39,-25.40,-108.97], [-41.15,-26.92,-95.50], [-32.51,56.64,-117.60], [-36.83,54.86,-101.35], [-29.46,63.75,-101.35], [-40.64,41.66,-131.83], [-52.58,32.51,-121.16], [-51.56,21.84,-129.03], [-46.23,4.32,-103.12], [-42.67,-2.54,-118.87], [-45.47,12.70,-105.41], [-44.70,20.32,-95.50], [-46.48,9.40,-91.19], [-43.43,25.65,-92.20], [-47.24,35.56,-99.06], [-41.40,39.12,-90.42], [-41.91,32.77,-85.60], [-9.14,-66.80,-130.56], [-3.56,-76.20,-121.41], [-1.02,-77.98,-129.03], [3.05,-77.47,-137.67], [-2.29,-68.07,-140.21], [-14.48,-60.96,-128.02], [-34.29,-55.12,-117.60], [-25.15,-60.20,-124.71], [-33.27,-54.36,-129.03], [-38.86,-45.21,-132.59], [-44.45,-38.35,-124.97], [-40.39,-47.50,-120.40], [-17.78,-15.75,-152.15], [-27.69,-11.43,-143.00], [-43.43,-22.35,-133.60], [-35.05,-12.19,-133.10], [-36.32,-6.60,-131.83], [-38.86,-11.18,-124.46], [-41.15,-15.24,-128.27], [-39.88,-18.29,-117.09], [-45.47,-30.73,-128.78], [-43.94,-22.86,-121.67], [-43.94,-29.21,-115.57], [-33.27,16.26,-143.76], [-33.53,9.91,-135.89], [-22.86,16.00,-148.59], [-25.65,1.27,-146.56], [-11.68,7.11,-156.46], [-17.27,12.95,-162.81], [-31.24,21.84,-164.59], [-31.50,23.88,-153.42], [-9.91,-16.51,-154.94], [-20.57,-5.59,-150.37], [-10.92,-0.25,-155.19], [-25.15,-43.94,-163.58], [-23.88,-36.32,-164.34], [-7.37,86.61,-97.03], [0.76,93.22,-98.81], [-10.92,78.99,-87.88], [0.76,87.12,-90.42], [-1.02,82.04,-83.06], [2.54,98.30,-83.06], [0.51,102.87,-88.90], [3.30,107.44,-91.44], [2.29,105.41,-85.34], [-2.29,136.40,-118.36], [-5.84,131.32,-115.06], [-4.32,120.14,-113.79], [-4.57,125.22,-107.70], [-5.84,139.45,-104.14], [-6.10,140.97,-91.44], [-6.35,133.35,-92.20], [1.27,129.79,-92.71], [-5.84,130.81,-97.79], [0.25,123.44,-103.12], [0.25,118.36,-109.22], [-5.84,110.74,-119.89], [-18.54,48.26,-55.12], [-18.03,56.13,-60.45], [-40.64,-1.78,-67.06], [-35.81,24.38,-60.96], [-34.54,2.54,-56.39], [-15.24,68.58,-74.42], [-17.02,14.48,-41.15], [-23.62,26.42,-47.50], [-5.59,28.45,-37.34], [-0.51,-21.34,-36.32], [-3.81,18.80,-34.54], [-12.19,7.11,-38.10], [-5.84,8.38,-33.78], [-5.33,-4.06,-34.29], [-18.80,-11.94,-42.93], [-18.03,-22.61,-45.97], [-4.83,73.66,-70.61], [-5.84,82.55,-61.47], [0.25,91.95,-70.36], [-1.27,92.96,-63.25], [-2.79,90.17,-52.83], [-8.64,43.94,-44.45], [-25.40,33.27,-52.07], [0.00,-30.73,-39.12], [-19.05,-37.85,-53.85], [-6.86,4.83,-21.34], [17.78,-110.24,-120.40], [17.53,-110.24,-127.51], [15.75,-102.36,-118.11], [21.84,-111.51,-113.03], [20.83,-115.06,-121.41], [8.64,-89.66,-127.76], [11.94,-93.98,-122.94], [-44.45,-7.37,-81.03], [-37.08,-30.73,-76.96], [-39.12,-20.32,-72.39], [-26.67,-40.13,-64.01], [-22.86,68.33,-88.14], [-30.73,58.42,-88.65], [-37.34,48.51,-89.66], [-40.64,30.48,-75.18], [-30.73,49.02,-71.63], [-14.48,84.33,-105.41], [-20.57,79.76,-115.06], [-23.88,70.87,-126.49], [-45.47,45.72,-105.66], [-50.80,20.57,-107.70], [-39.37,5.33,-128.02], [-41.66,-37.34,-135.64], [-0.51,-62.74,-150.37], [6.35,-62.23,-155.19], [-13.21,-59.94,-154.18], [-8.89,-62.74,-159.00], [13.46,-74.68,-145.80], [9.91,-63.25,-149.10], [13.21,-57.91,-150.88], [16.00,-84.58,-142.75], [16.26,-93.47,-111.25], [19.56,-102.62,-112.27], [29.21,-123.19,-121.41], [26.92,-119.89,-118.36], [31.50,-129.79,-127.76], [2.54,-78.23,-101.09], [-8.13,-72.90,-103.12], [-19.30,-64.77,-104.90], [5.08,-85.09,-123.70], [-15.49,-63.75,-122.68], [-19.81,-60.20,-127.00], [-31.24,-54.86,-107.19], [-37.59,-46.74,-108.97], [-42.93,-37.34,-113.28], [-41.91,-46.74,-122.17], [-44.96,-12.45,-98.81], [-44.45,15.75,-77.98], [-25.15,5.59,-45.72], [-31.50,-21.34,-58.17], [-19.81,-55.37,-73.15], [-19.05,-47.50,-61.72], [-33.02,-45.72,-89.66], [-21.34,-60.71,-86.87], [-10.67,-68.07,-84.84]]; >>> this.faces=[[3,2,1], [6,5,4], [7,6,4], [8,7,4], [9,8,4], [10,9,4], [11,10,4], [12,11,4], [13,12,4], [14,13,4], [5,14,4], [5,5,4], [11,12,15], [10,11,15], [16,10,15], [17,16,15], [18,17,15], [19,18,15], [20,19,15], [12,20,15], [22,9,21], [23,22,21], [16,23,21], [10,16,21], [9,10,21], [23,16,24], [25,23,24], [26,25,24], [27,26,24], [28,27,24], [29,28,24], [16,29,24], [31,26,30], [32,31,30], [33,32,30], [34,33,30], [27,34,30], [26,27,30], [34,28,35], [36,34,35], [37,36,35], [38,37,35], [39,38,35], [40,39,35], [41,40,35], [28,41,35], [41,17,42], [43,41,42], [44,43,42], [45,44,42], [46,45,42], [18,46,42], [17,18,42], [19,48,47], [46,19,47], [49,46,47], [50,49,47], [51,50,47], [52,51,47], [48,52,47], [48,48,47], [48,19,20], [52,48,20], [12,54,53], [20,12,53], [52,20,53], [55,52,53], [55,55,53], [56,55,53], [54,56,53], [59,58,57], [54,59,57], [60,54,57], [61,60,57], [62,61,57], [58,62,57], [54,12,13], [14,54,13], [59,54,14], [5,64,63], [14,5,63], [59,14,63], [67,66,65], [68,67,65], [69,68,65], [70,69,65], [71,70,65], [72,71,65], [73,72,65], [66,73,65], [75,68,74], [76,75,74], [77,76,74], [70,77,74], [69,70,74], [68,69,74], [80,79,78], [81,80,78], [82,81,78], [76,82,78], [79,76,78], [81,84,83], [81,83,80], [58,81,82], [59,81,58], [84,81,59], [59,64,84], [75,76,79], [86,82,85], [62,88,87], [61,62,87], [89,61,87], [90,89,87], [91,90,87], [88,91,87], [61,89,92], [93,61,92], [94,93,92], [95,94,92], [96,95,92], [97,96,92], [98,97,92], [90,98,92], [89,90,92], [94,95,99], [100,94,99], [101,100,99], [102,101,99], [103,102,99], [96,103,99], [95,96,99], [50,105,104], [106,50,104], [107,106,104], [108,107,104], [109,108,104], [110,109,104], [105,110,104], [44,112,111], [113,44,111], [114,113,111], [115,114,111], [116,115,111], [117,116,111], [112,117,111], [39,119,118], [38,39,118], [120,38,118], [121,120,118], [122,121,118], [114,122,118], [123,114,118], [119,123,118], [120,121,124], [125,120,124], [126,125,124], [127,126,124], [128,127,124], [129,128,124], [121,129,124], [132,131,130], [133,132,130], [134,133,130], [135,134,130], [136,135,130], [137,136,130], [138,137,130], [131,138,130], [131,131,130], [140,135,139], [141,140,139], [142,141,139], [144,143,139], [145,144,139], [146,145,139], [135,146,139], [149,148,147], [150,149,147], [151,150,147], [152,151,147], [153,152,147], [154,153,147], [155,154,147], [158,157,156], [159,158,156], [140,159,156], [135,140,156], [134,135,156], [133,134,156], [160,133,156], [157,160,156], [162,34,161], [163,162,161], [164,163,161], [165,164,161], [160,165,161], [166,160,161], [126,166,161], [125,126,161], [37,125,161], [36,37,161], [34,36,161], [127,166,126], [133,166,127], [133,160,166], [157,165,160], [162,33,34], [41,28,29], [29,17,41], [17,29,16], [119,39,40], [43,40,41], [58,82,88], [88,62,58], [82,86,88], [169,168,167], [170,169,167], [171,170,167], [72,171,167], [77,70,167], [172,77,167], [85,172,167], [86,85,167], [173,86,167], [168,173,167], [77,172,76], [172,82,76], [172,85,82], [176,175,174], [177,176,174], [178,177,174], [179,178,174], [180,179,174], [181,180,174], [175,181,174], [184,183,182], [185,184,182], [186,185,182], [187,186,182], [175,187,182], [25,175,182], [23,25,182], [22,23,182], [183,22,182], [184,185,188], [191,190,189], [192,191,189], [193,192,189], [194,193,189], [163,194,189], [162,163,189], [33,162,189], [190,33,189], [197,196,195], [198,197,195], [199,198,195], [200,199,195], [201,200,195], [202,201,195], [196,202,195], [165,196,194], [202,196,165], [165,201,202], [157,201,165], [26,181,175], [175,25,26], [31,181,26], [180,181,31], [31,179,180], [32,179,31], [190,179,32], [179,204,203], [179,190,204], [179,203,178], [204,190,191], [175,176,187], [32,33,190], [164,165,194], [28,34,27], [194,163,164], [207,206,205], [208,207,205], [153,208,205], [143,153,205], [139,143,205], [142,139,205], [206,142,205], [155,210,209], [211,210,155], [155,212,211], [212,148,211], [208,213,207], [154,213,208], [208,153,154], [155,209,213], [213,154,155], [147,212,155], [147,148,212], [152,153,143], [143,144,152], [214,152,144], [151,152,214], [214,150,151], [150,214,215], [214,217,216], [144,217,214], [220,219,218], [221,220,218], [222,221,218], [223,222,218], [159,223,218], [224,159,218], [219,224,218], [219,225,201], [225,219,220], [157,219,201], [224,219,157], [158,159,224], [158,158,224,224,224,157,157,157], [228,227,226], [109,228,226], [229,109,226], [231,230,226], [232,231,226], [227,232,226], [227,227,226], [234,230,233], [235,230,234], [117,235,236], [237,117,236], [238,237,236], [239,238,236], [240,239,236], [234,240,236], [235,234,236], [242,238,241], [243,242,241], [244,243,241], [245,244,241], [246,245,241], [238,246,241], [247,246,238], [238,239,247], [237,238,116], [116,117,237], [243,115,116], [238,242,116], [242,243,116], [49,50,248], [46,49,248], [45,46,248], [249,45,248], [250,249,248], [107,250,248], [106,107,248], [50,106,248], [249,44,45], [112,44,249], [250,107,251], [249,250,251], [112,249,251], [117,112,251], [108,117,251], [107,108,251], [229,226,252], [108,229,252], [117,108,252], [235,117,252], [230,235,252], [226,226,252], [254,52,253], [50,254,253], [105,50,253], [110,105,253], [255,110,253], [256,255,253], [257,256,253], [52,257,253], [255,256,56], [56,94,255], [93,94,56], [56,61,93], [60,61,56], [56,54,60], [125,37,38], [38,120,125], [39,40,43], [43,119,39], [123,119,43], [44,113,123], [123,43,44], [114,115,258], [259,114,258], [260,259,258], [261,260,258], [115,261,258], [129,121,262], [260,129,262], [259,260,262], [121,259,262], [131,264,263], [265,131,263], [266,265,263], [267,266,263], [260,267,263], [264,260,263], [131,128,264], [132,128,131], [133,127,132], [128,132,132,127], [19,46,18], [109,229,108], [196,269,268], [268,194,196], [197,269,196], [193,194,268], [268,270,193], [193,270,192], [191,192,271], [204,191,271], [183,184,188], [272,22,183], [188,273,272], [9,22,272], [276,275,274], [277,276,274], [9,277,274], [8,9,274], [7,8,274], [278,7,274], [279,278,274], [275,279,274], [278,279,280], [278,280,281], [7,278,281], [7,281,282], [6,7,282], [5,6,282], [283,5,282], [284,283,282], [281,284,282], [283,284,285], [59,63,64], [64,59,64], [63,64,64], [286,84,64], [287,286,64], [288,287,64], [5,288,64], [59,63,64], [287,283,285], [288,283,287], [288,5,283], [214,216,215], [146,136,289], [145,146,289], [216,145,289], [290,216,289], [291,290,289], [292,291,289], [137,292,289], [136,137,289], [146,135,136], [217,144,145], [217,145,216], [294,138,293], [295,294,293], [296,295,293], [245,296,293], [297,245,293], [265,297,293], [138,265,293], [265,138,131], [266,297,265], [245,297,244], [244,297,266], [243,261,115], [243,266,261], [266,267,261], [267,260,261], [113,114,123], [244,266,243], [114,259,122], [122,259,121], [264,128,129], [129,260,264], [294,299,298], [294,137,138], [292,137,294], [291,292,294], [110,255,94], [300,100,110], [301,110,100], [109,110,301], [301,228,109], [100,228,301], [302,228,100], [100,101,302], [227,101,102], [272,183,188], [277,272,273], [303,276,277], [273,188,303], [303,277,273], [277,9,272], [73,66,170], [171,72,73], [73,170,171], [71,167,70], [72,167,71], [142,304,159], [141,142,159], [140,141,159], [159,304,223], [304,142,206], [231,233,230], [173,88,86], [91,88,173], [305,91,173], [305,173,168], [306,91,305], [90,91,306], [306,307,90], [305,307,306], [168,308,305], [308,307,305], [308,309,307], [310,309,308], [3,312,311], [206,314,313], [223,313,315], [315,317,316], [315,314,317], [315,313,314], [320,319,318], [321,319,320], [323,170,322], [322,318,323], [170,66,322], [326,325,324], [327,324,303], [303,188,327], [324,276,303], [327,326,324], [188,328,326], [331,330,329], [329,330,332], [332,333,329], [334,333,332], [335,333,334], [334,336,335], [332,336,334], [336,332,337], [337,338,336], [340,339,291], [340,341,339], [342,341,340], [344,343,340], [347,346,345], [345,348,347], [351,350,349], [349,350,352], [355,354,353], [357,352,356], [359,346,358], [359,358,354], [359,354,355], [360,359,355], [354,361,353], [353,361,362], [363,361,354], [364,342,363], [365,363,342], [365,361,363], [365,362,361], [365,366,362], [365,367,366], [365,340,367], [365,342,340], [216,369,368], [369,370,368], [373,372,371], [374,341,373], [374,339,341], [374,291,339], [374,290,291], [374,216,290], [374,369,216], [374,371,369], [374,373,371], [215,216,375], [378,377,376], [287,378,376], [285,378,287], [381,380,379], [381,376,377], [381,287,376], [381,286,287], [381,84,286], [381,381,380], [381,379,381], [381,380,379], [285,284,378], [382,284,281], [382,378,284], [382,377,378], [382,383,377], [382,384,383], [382,281,384], [281,385,384], [281,280,385], [280,279,385], [386,279,275], [386,385,279], [386,384,385], [386,387,384], [386,325,387], [386,324,325], [386,276,324], [386,275,276], [326,388,325], [326,327,188], [328,388,326], [188,389,328], [271,390,204], [271,391,390], [391,270,392], [392,270,393], [393,394,392], [397,396,395], [397,394,393], [393,396,397], [399,398,335], [402,401,400], [404,403,403,348], [403,404,405], [364,348,403], [347,348,364], [406,346,347], [406,358,346], [406,354,358], [406,363,354], [406,364,363], [406,347,364], [407,350,351], [407,346,350], [407,345,346], [407,351,345], [408,359,360], [408,346,359], [408,350,346], [408,352,350], [408,360,352], [410,409,357], [357,356,410], [409,411,357], [412,411,409], [409,413,412], [416,415,414], [414,417,416], [420,419,418], [418,421,420], [422,421,418], [418,337,422], [338,337,418], [418,423,338], [426,425,424], [426,423,425], [426,338,423], [426,336,338], [426,427,336], [426,428,427], [426,429,428], [426,424,429], [1,2,2], [1,430,3], [1,431,430], [1,399,431], [1,398,399], [1,2,398], [433,399,432], [433,431,399], [433,434,431], [433,435,434], [433,436,435], [433,432,436], [435,410,434], [437,410,435], [439,438,428], [439,432,438], [439,436,432], [439,435,436], [439,437,435], [439,401,437], [439,440,401], [439,428,440], [442,355,441], [442,441,443], [442,360,355], [444,431,442], [442,443,444], [446,445,443], [443,447,446], [448,447,443], [448,362,447], [448,353,362], [448,355,353], [448,441,355], [448,443,441], [450,449,430], [450,451,449], [450,445,451], [450,443,445], [450,444,443], [450,431,444], [450,430,431], [449,3,430], [312,3,449], [2,452,452], [2,453,329], [2,311,453], [2,3,311], [2,335,398], [2,333,335], [2,329,333], [456,456,456,455,455,455,454,454], [455,315,454], [456,457,455], [458,457,456], [459,457,225], [458,225,457], [460,455,457], [460,315,455], [460,223,315], [460,461,223], [460,462,461], [460,459,462], [460,457,459], [375,368,370], [216,368,375], [215,375,150], [463,150,375], [375,464,463], [370,464,375], [464,370,465], [465,466,464], [468,148,467], [469,468,467], [469,471,470], [470,209,469], [471,466,472], [472,470,471], [207,470,472], [211,148,468], [211,468,469], [469,210,211], [209,210,469], [473,314,206], [473,474,314], [473,465,474], [473,466,465], [473,472,466], [473,207,472], [473,206,207], [476,475,394], [479,478,477], [394,480,476], [483,482,481], [187,176,484], [390,483,204], [178,203,485], [204,483,485], [203,204,485], [481,485,483], [486,485,481], [487,485,486], [486,488,487], [489,488,486], [489,490,484], [484,488,489], [480,458,456], [491,458,480], [480,397,491], [394,397,480], [492,491,397], [492,458,491], [492,493,458], [492,494,493], [492,495,494], [492,395,495], [492,397,395], [496,482,483], [496,497,482], [496,475,497], [496,394,475], [496,392,394], [496,391,392], [496,390,391], [496,483,390], [188,185,389], [498,388,328], [498,499,388], [498,490,499], [498,484,490], [498,187,484], [498,186,187], [498,185,186], [498,389,185], [498,328,389], [500,488,484], [500,487,488], [500,485,487], [500,178,485], [500,177,178], [500,176,177], [500,484,176], [503,502,501], [504,503,501], [504,501,505], [319,308,168], [319,310,308], [319,502,310], [319,501,502], [319,505,501], [319,321,505], [319,323,318], [319,170,323], [319,169,170], [319,168,169], [309,310,503], [507,506,309], [309,503,507], [508,413,409], [413,412,411], [511,510,509], [508,509,510], [510,477,508], [478,482,497], [512,480,456], [513,512,405], [404,513,405], [514,513,404], [516,515,478], [516,417,515], [516,416,417], [516,514,416], [516,513,514], [516,512,513], [516,480,512], [516,476,480], [516,475,476], [516,497,475], [516,478,497], [517,512,456], [517,405,512], [517,518,405], [517,372,518], [517,316,372], [517,315,316], [517,454,315], [517,456,454], [467,471,469], [467,466,471], [467,464,466], [467,463,464], [467,150,463], [467,149,150], [467,148,149], [474,371,372], [474,369,371], [474,370,369], [474,465,370], [474,317,314], [474,316,317], [474,372,316], [519,364,364], [519,342,364], [519,341,342], [519,373,341], [519,372,373], [519,518,372], [519,405,518], [519,403,405], [519,364,403], [520,345,351], [520,348,345], [520,404,348], [520,514,404], [520,416,514], [520,415,416], [520,351,415], [521,357,411], [521,352,357], [521,349,352], [521,351,349], [521,415,351], [521,414,415], [521,412,414], [521,411,412], [522,431,434], [522,442,431], [522,360,442], [522,352,360], [522,356,352], [522,410,356], [522,434,410], [523,336,427], [523,335,336], [523,399,335], [523,432,399], [523,438,432], [523,428,438], [523,427,428], [526,525,524], [526,527,525], [526,331,527], [526,330,331], [526,332,330], [526,337,332], [526,524,337], [529,90,528], [529,98,90], [529,530,98], [529,525,530], [529,524,525], [529,337,524], [529,422,337], [529,421,422], [529,528,421], [531,307,309], [531,90,307], [531,528,90], [531,421,528], [531,506,421], [531,309,506], [502,503,310], [79,504,75], [84,381,379], [379,532,84], [507,532,379], [503,532,507], [80,83,532], [83,84,532], [533,504,79], [533,503,504], [533,532,503], [533,80,532], [533,79,80], [535,534,68], [535,321,534], [535,505,321], [535,504,505], [535,75,504], [535,68,75], [536,322,66], [536,318,322], [536,320,318], [536,321,320], [536,534,321], [536,68,534], [536,67,68], [536,66,67], [380,537,379], [380,377,537], [380,381,377], [537,419,379], [538,419,537], [538,539,419], [540,506,507], [540,421,506], [540,420,421], [540,419,420], [540,379,419], [540,507,379], [541,418,419], [541,542,418], [541,542,542], [541,424,542], [541,543,424], [541,539,543], [541,419,539], [543,544,424], [543,400,544], [545,544,544], [545,424,544], [545,546,424], [545,428,546], [545,440,428], [545,401,440], [545,400,401], [545,544,400], [547,402,509], [547,401,402], [547,437,401], [547,410,437], [547,409,410], [547,508,409], [547,509,508], [548,508,477], [548,413,508], [548,412,413], [548,414,412], [548,417,414], [548,515,417], [548,478,515], [548,477,478], [549,479,489], [549,478,479], [549,482,478], [549,481,482], [549,486,481], [549,489,486], [550,510,511], [550,477,510], [550,479,477], [550,489,479], [550,490,489], [550,499,490], [550,511,499], [552,551,325], [552,511,551], [552,499,511], [552,388,499], [552,325,388], [553,543,539], [553,400,543], [553,402,400], [553,509,402], [553,511,509], [553,551,511], [553,554,551], [553,539,554], [555,377,377], [555,537,377], [555,538,537], [555,539,538], [555,554,539], [555,551,554], [555,325,551], [555,387,325], [555,384,387], [555,383,384], [555,377,383]]; >>> this.normals = new Array(); >>> for (var i=0; i>> { >>> this.normals[i] = [0, 0, 0]; } >>> this.center = [0, 0, 0]; >>> for (var i=0; i>> { >>> this.center[0] += this.points[i][0]; >>> this.center[1] += this.points[i][1]; >>> this.center[2] += this.points[i][2]; } >>> this.distances = new Array(); >>> for (var i=1; i>> { >>> this.distances[i] = 0; } >>> this.points_number = this.points.length; >>> this.center[0] = this.center[0]/(this.points_number-1); >>> this.center[1] = this.center[1]/(this.points_number-1); >>> this.center[2] = this.center[2]/(this.points_number-1); >>> this.faces_number = this.faces.length; >>> this.axis_x = [1, 0, 0]; >>> this.axis_y = [0, 1, 0]; >>> this.axis_z = [0, 0, 1]; >>> this.fillcolor = fillcolor; >>> this.linecolor = linecolor; } function helicopter(fillcolor, linecolor) >>> { >>> this.points=[[0,0,0], [-0.010000,13.150000,3.670000], [-0.620000,3.690000,3.670000], [-0.620000,-3.740000,3.670000], [0.580000,-3.740000,3.670000], [0.580000,3.690000,3.670000], [-0.010000,13.150000,0.000000], [-0.620000,3.690000,0.000000], [-0.620000,-3.740000,0.000000], [0.580000,-3.740000,0.000000], [0.580000,3.690000,0.000000], [0.000000,-3.320000,6.130000], [1.220000,-2.890000,6.130000], [1.840000,-2.020000,6.130000], [2.450000,-0.720000,6.130000], [0.610000,10.060000,6.130000], [-0.590000,10.060000,6.130000], [-2.430000,-0.720000,6.130000], [-1.820000,-2.020000,6.130000], [-1.200000,-2.890000,6.130000], [0.000000,-3.320000,3.820000], [1.220000,-2.890000,3.820000], [1.840000,-2.020000,3.820000], [2.450000,-0.720000,3.820000], [0.610000,10.060000,3.820000], [-0.590000,10.060000,3.820000], [-2.430000,-0.720000,3.820000], [-1.820000,-2.020000,3.820000], [-1.200000,-2.890000,3.820000], [1.110000,0.000000,8.100000], [1.890000,0.010000,7.730000], [2.660000,0.020000,7.160000], [1.040000,0.350000,8.100000], [1.790000,0.600000,7.730000], [2.530000,0.840000,7.160000], [0.890000,0.660000,8.100000], [1.520000,1.130000,7.730000], [2.150000,1.580000,7.160000], [0.640000,0.900000,8.100000], [1.090000,1.540000,7.730000], [1.540000,2.170000,7.160000], [0.330000,1.070000,8.100000], [0.570000,1.800000,7.730000], [0.800000,2.540000,7.160000], [0.000000,1.110000,8.100000], [-0.010000,1.890000,7.730000], [-0.010000,2.660000,7.160000], [-0.350000,1.040000,8.100000], [-0.580000,1.790000,7.730000], [-0.840000,2.530000,7.160000], [-0.660000,0.890000,8.100000], [-1.120000,1.520000,7.730000], [-1.580000,2.150000,7.160000], [-0.900000,0.640000,8.100000], [-1.540000,1.090000,7.730000], [-2.170000,1.550000,7.160000], [-1.040000,0.330000,8.100000], [-1.800000,0.570000,7.730000], [-2.540000,0.800000,7.160000], [-1.110000,0.000000,8.100000], [-1.890000,0.000000,7.730000], [-2.660000,-0.010000,7.160000], [-1.040000,-0.350000,8.100000], [-1.790000,-0.580000,7.730000], [-2.540000,-0.840000,7.160000], [-0.890000,-0.660000,8.100000], [-1.520000,-1.120000,7.730000], [-2.150000,-1.580000,7.160000], [-0.640000,-0.900000,8.100000], [-1.090000,-1.530000,7.730000], [-1.550000,-2.170000,7.160000], [-0.330000,-1.040000,8.100000], [-0.570000,-1.800000,7.730000], [-0.800000,-2.540000,7.160000], [0.000000,-1.110000,8.100000], [0.000000,-1.890000,7.730000], [0.010000,-2.660000,7.160000], [0.350000,-1.040000,8.100000], [0.580000,-1.790000,7.730000], [0.830000,-2.540000,7.160000], [0.660000,-0.890000,8.100000], [1.120000,-1.520000,7.730000], [1.580000,-2.150000,7.160000], [0.900000,-0.640000,8.100000], [1.530000,-1.100000,7.730000], [2.170000,-1.550000,7.160000], [0.000000,0.000000,8.300000], [1.040000,-0.330000,8.100000], [1.800000,-0.570000,7.730000], [2.540000,-0.800000,7.160000], [0.000000,0.000000,7.160000], [-0.150000,-0.840000,6.860000], [0.160000,-1.370000,6.860000], [0.160000,-2.420000,6.860000], [0.520000,-2.420000,6.860000], [0.520000,-2.960000,6.860000], [0.160000,-2.960000,6.860000], [0.880000,-5.090000,6.860000], [0.880000,-30.559999,6.860000], [0.520000,-31.090000,6.860000], [-0.510000,-31.090000,6.860000], [-0.870000,-30.559999,6.860000], [-0.870000,-5.090000,6.860000], [-0.150000,-2.960000,6.860000], [-0.510000,-2.960000,6.860000], [-0.510000,-2.420000,6.860000], [-0.150000,-2.420000,6.860000], [-0.150000,-0.840000,6.890000], [0.160000,-1.370000,6.890000], [0.160000,-2.420000,6.890000], [0.520000,-2.420000,6.890000], [0.520000,-2.960000,6.890000], [0.160000,-2.960000,6.890000], [0.880000,-5.090000,6.890000], [0.880000,-30.559999,6.890000], [0.520000,-31.090000,6.890000], [-0.510000,-31.090000,6.890000], [-0.870000,-30.559999,6.890000], [-0.870000,-5.090000,6.890000], [-0.150000,-2.960000,6.890000], [-0.510000,-2.960000,6.890000], [-0.510000,-2.420000,6.890000], [-0.150000,-2.420000,6.890000], [0.750000,-0.410000,6.860000], [1.360000,-0.230000,6.860000], [2.360000,-0.550000,6.860000], [2.480000,-0.210000,6.860000], [2.980000,-0.380000,6.860000], [2.880000,-0.720000,6.860000], [5.120000,-0.690000,6.860000], [29.350000,-8.570000,6.860000], [29.740000,-9.070000,6.860000], [29.410000,-10.090000,6.860000], [28.799999,-10.270000,6.860000], [4.570000,-2.400000,6.860000], [2.770000,-1.040000,6.860000], [2.660000,-1.400000,6.860000], [2.160000,-1.220000,6.860000], [2.260000,-0.900000,6.860000], [0.750000,-0.410000,6.900000], [1.360000,-0.230000,6.900000], [2.360000,-0.550000,6.900000], [2.480000,-0.210000,6.900000], [2.980000,-0.380000,6.900000], [2.880000,-0.720000,6.900000], [5.120000,-0.690000,6.900000], [29.350000,-8.570000,6.900000], [29.740000,-9.070000,6.900000], [29.410000,-10.090000,6.900000], [28.799999,-10.270000,6.900000], [4.570000,-2.400000,6.900000], [2.770000,-1.040000,6.900000], [2.660000,-1.400000,6.900000], [2.160000,-1.220000,6.900000], [2.260000,-0.900000,6.900000], [0.630000,0.580000,6.860000], [0.670000,1.210000,6.860000], [1.280000,2.060000,6.860000], [0.990000,2.280000,6.860000], [1.320000,2.710000,6.860000], [1.600000,2.490000,6.860000], [2.260000,4.640000,6.860000], [17.240000,25.240000,6.860000], [17.840000,25.459999,6.860000], [18.700001,24.850000,6.860000], [18.680000,24.200001,6.860000], [3.700000,3.600000,6.860000], [1.880000,2.300000,6.860000], [2.170000,2.080000,6.860000], [1.840000,1.650000,6.860000], [1.560000,1.870000,6.860000], [0.630000,0.580000,6.890000], [0.670000,1.210000,6.890000], [1.280000,2.060000,6.890000], [0.990000,2.280000,6.890000], [1.320000,2.710000,6.890000], [1.600000,2.490000,6.890000], [2.260000,4.640000,6.890000], [17.240000,25.240000,6.890000], [17.840000,25.459999,6.890000], [18.700001,24.850000,6.890000], [18.680000,24.200001,6.890000], [3.700000,3.600000,6.890000], [1.880000,2.300000,6.890000], [2.170000,2.080000,6.890000], [1.840000,1.650000,6.890000], [1.560000,1.870000,6.890000], [-0.340000,0.780000,6.860000], [-0.920000,1.010000,6.860000], [-1.540000,1.870000,6.860000], [-1.830000,1.660000,6.860000], [-2.150000,2.080000,6.860000], [-1.860000,2.310000,6.860000], [-3.690000,3.600000,6.860000], [-18.660000,24.209999,6.860000], [-18.690001,24.850000,6.860000], [-17.820000,25.469999,6.860000], [-17.219999,25.250000,6.860000], [-2.250000,4.650000,6.860000], [-1.590000,2.500000,6.860000], [-1.300000,2.710000,6.860000], [-0.980000,2.280000,6.860000], [-1.260000,2.070000,6.860000], [-0.340000,0.780000,6.890000], [-0.920000,1.010000,6.890000], [-1.540000,1.870000,6.890000], [-1.830000,1.660000,6.890000], [-2.150000,2.080000,6.890000], [-1.860000,2.310000,6.890000], [-3.690000,3.600000,6.890000], [-18.660000,24.209999,6.890000], [-18.690001,24.850000,6.890000], [-17.820000,25.469999,6.890000], [-17.219999,25.250000,6.890000], [-2.250000,4.650000,6.890000], [-1.590000,2.500000,6.890000], [-1.300000,2.710000,6.890000], [-0.980000,2.280000,6.890000], [-1.260000,2.070000,6.890000], [-0.820000,-0.060000,6.860000], [-1.230000,-0.540000,6.860000], [-2.220000,-0.880000,6.860000], [-2.120000,-1.220000,6.860000], [-2.630000,-1.380000,6.860000], [-2.740000,-1.030000,6.860000], [-4.540000,-2.380000,6.860000], [-28.770000,-10.250000,6.860000], [-29.379999,-10.070000,6.860000], [-29.700001,-9.080000,6.860000], [-29.320000,-8.560000,6.860000], [-5.090000,-0.690000,6.860000], [-2.850000,-0.720000,6.860000], [-2.960000,-0.380000,6.860000], [-2.440000,-0.210000,6.860000], [-2.320000,-0.560000,6.860000], [-0.820000,-0.060000,6.890000], [-1.230000,-0.540000,6.890000], [-2.220000,-0.880000,6.890000], [-2.120000,-1.220000,6.890000], [-2.630000,-1.380000,6.890000], [-2.740000,-1.030000,6.890000], [-4.540000,-2.380000,6.890000], [-28.770000,-10.250000,6.890000], [-29.379999,-10.070000,6.890000], [-29.700001,-9.080000,6.890000], [-29.320000,-8.560000,6.890000], [-5.090000,-0.690000,6.890000], [-2.850000,-0.720000,6.890000], [-2.960000,-0.380000,6.890000], [-2.440000,-0.210000,6.890000], [-2.320000,-0.560000,6.890000], [5.670000,-9.090000,-7.210000], [5.670000,-7.990000,-8.530000], [5.670000,6.200000,-8.530000], [5.670000,6.200000,-8.750000], [5.670000,-7.990000,-8.750000], [5.670000,-9.180000,-7.210000], [6.040000,-9.090000,-7.210000], [6.040000,-7.990000,-8.530000], [6.040000,6.200000,-8.530000], [6.040000,6.200000,-8.750000], [6.040000,-7.990000,-8.750000], [6.040000,-9.180000,-7.210000], [-6.030000,-9.080000,-7.200000], [-6.030000,-7.980000,-8.520000], [-6.030000,6.200000,-8.520000], [-6.030000,6.200000,-8.740000], [-6.030000,-7.980000,-8.740000], [-6.030000,-9.170000,-7.200000], [-5.660000,-9.080000,-7.200000], [-5.660000,-7.980000,-8.520000], [-5.660000,6.200000,-8.520000], [-5.660000,6.200000,-8.740000], [-5.660000,-7.980000,-8.740000], [-5.660000,-9.170000,-7.200000], [2.960000,-4.140000,-3.420000], [3.130000,-4.140000,-3.320000], [6.160000,-4.140000,-8.560000], [5.980000,-4.140000,-8.660000], [2.960000,-4.330000,-3.420000], [3.130000,-4.330000,-3.320000], [6.160000,-4.330000,-8.560000], [5.980000,-4.330000,-8.660000], [2.960000,2.330000,-3.400000], [3.130000,2.330000,-3.300000], [6.150000,2.330000,-8.540000], [5.990000,2.330000,-8.640000], [2.960000,2.150000,-3.400000], [3.130000,2.150000,-3.300000], [6.150000,2.150000,-8.540000], [5.990000,2.150000,-8.640000], [-3.120000,-4.130000,-3.310000], [-2.950000,-4.130000,-3.410000], [-5.970000,-4.130000,-8.650000], [-6.150000,-4.130000,-8.550000], [-3.120000,-4.320000,-3.310000], [-2.950000,-4.320000,-3.410000], [-5.970000,-4.320000,-8.650000], [-6.150000,-4.320000,-8.550000], [-3.100000,2.330000,-3.300000], [-2.930000,2.330000,-3.400000], [-5.960000,2.330000,-8.630000], [-6.120000,2.330000,-8.540000], [-3.100000,2.150000,-3.300000], [-2.930000,2.150000,-3.400000], [-5.960000,2.150000,-8.630000], [-6.120000,2.150000,-8.540000], [-5.090000,33.450001,7.670000], [-5.090000,35.240002,10.180000], [-5.090000,36.660000,10.180000], [-5.090000,35.959999,6.090000], [-5.090000,34.520000,6.090000], [-4.910000,33.450001,7.670000], [-4.910000,35.240002,10.180000], [-4.910000,36.660000,10.180000], [-4.910000,35.959999,6.090000], [-4.910000,34.520000,6.090000], [4.660000,33.450001,7.670000], [4.660000,35.240002,10.180000], [4.660000,36.660000,10.180000], [4.660000,35.959999,6.090000], [4.660000,34.520000,6.090000], [4.840000,33.450001,7.670000], [4.840000,35.240002,10.180000], [4.840000,36.660000,10.180000], [4.840000,35.959999,6.090000], [4.840000,34.520000,6.090000], [-4.880000,36.480000,8.270000], [4.580000,36.480000,8.270000], [4.580000,36.480000,7.930000], [-4.880000,36.480000,7.930000], [-4.880000,34.180000,8.270000], [4.580000,34.180000,8.270000], [4.580000,34.180000,7.930000], [-4.880000,34.180000,7.930000], [0.140000,36.180000,7.750000], [0.140000,34.950001,7.750000], [0.140000,31.260000,2.330000], [0.140000,34.029999,-1.700000], [0.140000,35.250000,-1.700000], [0.140000,34.029999,2.330000], [-0.130000,36.180000,7.750000], [-0.130000,34.950001,7.750000], [-0.130000,31.260000,2.330000], [-0.130000,34.029999,-1.700000], [-0.130000,35.250000,-1.700000], [-0.130000,34.029999,2.330000], [1.430000,-10.690000,0.000000], [2.740000,-9.840000,0.010000], [3.810000,-8.830000,0.020000], [4.730000,-6.960000,0.040000], [5.270000,-4.100000,0.040000], [5.190000,-0.720000,0.040000], [4.350000,2.820000,0.030000], [1.820000,8.390000,0.010000], [0.820000,11.770000,0.000000], [0.660000,13.130000,0.000000], [0.660000,10.250000,0.000000], [1.390000,-10.690000,0.370000], [2.640000,-9.840000,0.700000], [3.690000,-8.830000,0.980000], [4.570000,-6.960000,1.220000], [5.090000,-4.100000,1.360000], [5.020000,-0.720000,1.340000], [4.190000,2.820000,1.120000], [1.750000,8.390000,0.460000], [0.790000,11.770000,0.210000], [0.640000,13.130000,0.170000], [0.640000,10.250000,0.170000], [1.250000,-10.690000,0.710000], [2.380000,-9.840000,1.340000], [3.320000,-8.830000,1.870000], [4.130000,-6.960000,2.320000], [4.600000,-4.100000,2.590000], [4.530000,-0.720000,2.550000], [3.790000,2.820000,2.130000], [1.580000,8.390000,0.890000], [0.710000,11.770000,0.400000], [0.580000,13.130000,0.330000], [0.580000,10.250000,0.330000], [1.030000,-10.690000,1.000000], [1.980000,-9.840000,1.900000], [2.750000,-8.830000,2.640000], [3.410000,-6.960000,3.280000], [3.800000,-4.100000,3.650000], [3.750000,-0.720000,3.600000], [3.140000,2.820000,3.020000], [1.310000,8.390000,1.260000], [0.580000,11.770000,0.570000], [0.480000,13.130000,0.470000], [0.480000,10.250000,0.470000], [0.750000,-10.690000,1.230000], [1.440000,-9.840000,2.330000], [2.000000,-8.830000,3.250000], [2.490000,-6.960000,4.030000], [2.780000,-4.100000,4.480000], [2.730000,-0.720000,4.420000], [2.280000,2.820000,3.710000], [0.950000,8.390000,1.550000], [0.430000,11.770000,0.710000], [0.340000,13.130000,0.570000], [0.340000,10.250000,0.570000], [0.420000,-10.690000,1.380000], [0.810000,-9.840000,2.630000], [1.130000,-8.830000,3.650000], [1.410000,-6.960000,4.530000], [1.570000,-4.100000,5.040000], [1.550000,-0.720000,4.960000], [1.290000,2.820000,4.160000], [0.520000,8.390000,1.740000], [0.230000,11.770000,0.790000], [0.190000,13.130000,0.640000], [0.190000,10.250000,0.640000], [0.060000,-10.690000,1.440000], [0.130000,-9.840000,2.750000], [0.180000,-8.830000,3.820000], [0.230000,-6.960000,4.750000], [0.260000,-4.100000,5.280000], [0.260000,-0.720000,5.210000], [0.210000,2.820000,4.360000], [0.070000,8.390000,1.830000], [0.020000,11.770000,0.830000], [0.010000,13.130000,0.670000], [0.010000,10.250000,0.670000], [-0.290000,-10.690000,1.420000], [-0.550000,-9.840000,2.690000], [-0.760000,-8.830000,3.750000], [-0.940000,-6.960000,4.650000], [-1.040000,-4.100000,5.180000], [-1.030000,-0.720000,5.110000], [-0.860000,2.820000,4.280000], [-0.370000,8.390000,1.800000], [-0.170000,11.770000,0.810000], [-0.140000,13.130000,0.670000], [-0.140000,10.250000,0.670000], [-0.640000,-10.690000,1.300000], [-1.210000,-9.840000,2.480000], [-1.670000,-8.830000,3.450000], [-2.070000,-6.960000,4.280000], [-2.310000,-4.100000,4.760000], [-2.270000,-0.720000,4.690000], [-1.910000,2.820000,3.930000], [-0.810000,8.390000,1.650000], [-0.370000,11.770000,0.750000], [-0.310000,13.130000,0.610000], [-0.310000,10.250000,0.610000], [-0.950000,-10.690000,1.100000], [-1.780000,-9.840000,2.080000], [-2.480000,-8.830000,2.920000], [-3.070000,-6.960000,3.630000], [-3.420000,-4.100000,4.040000], [-3.370000,-0.720000,3.980000], [-2.830000,2.820000,3.330000], [-1.190000,8.390000,1.400000], [-0.550000,11.770000,0.640000], [-0.450000,13.130000,0.510000], [-0.450000,10.250000,0.510000], [-1.190000,-10.690000,0.840000], [-2.260000,-9.840000,1.600000], [-3.140000,-8.830000,2.220000], [-3.880000,-6.960000,2.760000], [-4.320000,-4.100000,3.060000], [-4.260000,-0.720000,3.020000], [-3.570000,2.820000,2.530000], [-1.510000,8.390000,1.040000], [-0.690000,11.770000,0.480000], [-0.570000,13.130000,0.390000], [-0.570000,10.250000,0.390000], [-1.370000,-10.690000,0.510000], [-2.580000,-9.840000,0.980000], [-3.590000,-8.830000,1.370000], [-4.440000,-6.960000,1.700000], [-4.940000,-4.100000,1.900000], [-4.880000,-0.720000,1.870000], [-4.090000,2.820000,1.570000], [-1.720000,8.390000,0.650000], [-0.790000,11.770000,0.290000], [-0.650000,13.130000,0.240000], [-0.650000,10.250000,0.240000], [-1.450000,-10.690000,0.160000], [-2.750000,-9.840000,0.310000], [-3.820000,-8.830000,0.440000], [-4.730000,-6.960000,0.540000], [-5.270000,-4.100000,0.610000], [-5.190000,-0.720000,0.600000], [-4.360000,2.820000,0.500000], [-1.840000,8.390000,0.210000], [-0.850000,11.770000,0.080000], [-0.690000,13.130000,0.070000], [-0.690000,10.250000,0.070000], [-1.450000,-10.690000,-0.190000], [-2.740000,-9.840000,-0.370000], [-3.810000,-8.830000,-0.510000], [-4.730000,-6.960000,-0.630000], [-5.260000,-4.100000,-0.710000], [-5.180000,-0.720000,-0.690000], [-4.340000,2.820000,-0.580000], [-1.830000,8.390000,-0.240000], [-0.850000,11.770000,-0.110000], [-0.690000,13.130000,-0.090000], [-0.690000,10.250000,-0.090000], [-1.360000,-10.690000,-0.540000], [-2.570000,-9.840000,-1.040000], [-3.570000,-8.830000,-1.440000], [-4.420000,-6.960000,-1.780000], [-4.920000,-4.100000,-1.990000], [-4.850000,-0.720000,-1.960000], [-4.070000,2.820000,-1.640000], [-1.720000,8.390000,-0.690000], [-0.790000,11.770000,-0.310000], [-0.650000,13.130000,-0.250000], [-0.650000,10.250000,-0.250000], [-1.160000,-10.690000,-0.860000], [-2.230000,-9.840000,-1.630000], [-3.100000,-8.830000,-2.280000], [-3.840000,-6.960000,-2.830000], [-4.270000,-4.100000,-3.140000], [-4.190000,-0.720000,-3.100000], [-3.530000,2.820000,-2.590000], [-1.490000,8.390000,-1.090000], [-0.690000,11.770000,-0.500000], [-0.560000,13.130000,-0.410000], [-0.560000,10.250000,-0.410000], [-0.920000,-10.690000,-1.130000], [-1.750000,-9.840000,-2.140000], [-2.430000,-8.830000,-2.970000], [-3.010000,-6.960000,-3.690000], [-3.350000,-4.100000,-4.110000], [-3.310000,-0.720000,-4.050000], [-2.770000,2.820000,-3.390000], [-1.160000,8.390000,-1.430000], [-0.540000,11.770000,-0.650000], [-0.440000,13.130000,-0.520000], [-0.440000,10.250000,-0.520000], [-0.620000,-10.690000,-1.320000], [-1.160000,-9.840000,-2.500000], [-1.620000,-8.830000,-3.490000], [-2.000000,-6.960000,-4.320000], [-2.220000,-4.100000,-4.810000], [-2.190000,-0.720000,-4.730000], [-1.840000,2.820000,-3.970000], [-0.780000,8.390000,-1.670000], [-0.360000,11.770000,-0.760000], [-0.290000,13.130000,-0.620000], [-0.290000,10.250000,-0.620000], [-0.270000,-10.690000,-1.430000], [-0.500000,-9.840000,-2.720000], [-0.690000,-8.830000,-3.770000], [-0.860000,-6.960000,-4.670000], [-0.960000,-4.100000,-5.210000], [-0.950000,-0.720000,-5.130000], [-0.790000,2.820000,-4.300000], [-0.340000,8.390000,-1.810000], [-0.160000,11.770000,-0.830000], [-0.130000,13.130000,-0.670000], [-0.130000,10.250000,-0.670000], [0.080000,-10.690000,-1.450000], [0.170000,-9.840000,-2.760000], [0.250000,-8.830000,-3.820000], [0.310000,-6.960000,-4.750000], [0.350000,-4.100000,-5.280000], [0.340000,-0.720000,-5.210000], [0.280000,2.820000,-4.360000], [0.100000,8.390000,-1.830000], [0.030000,11.770000,-0.840000], [0.030000,13.130000,-0.680000], [0.030000,10.250000,-0.680000], [0.440000,-10.690000,-1.380000], [0.850000,-9.840000,-2.620000], [1.190000,-8.830000,-3.640000], [1.480000,-6.960000,-4.510000], [1.650000,-4.100000,-5.020000], [1.620000,-0.720000,-4.940000], [1.360000,2.820000,-4.150000], [0.560000,8.390000,-1.740000], [0.240000,11.770000,-0.800000], [0.190000,13.130000,-0.650000], [0.190000,10.250000,-0.650000], [0.760000,-10.690000,-1.220000], [1.480000,-9.840000,-2.320000], [2.050000,-8.830000,-3.220000], [2.550000,-6.960000,-4.000000], [2.840000,-4.100000,-4.440000], [2.810000,-0.720000,-4.380000], [2.330000,2.820000,-3.680000], [0.980000,8.390000,-1.540000], [0.430000,11.770000,-0.710000], [0.350000,13.130000,-0.570000], [0.350000,10.250000,-0.570000], [1.040000,-10.690000,-0.990000], [2.010000,-9.840000,-1.870000], [2.790000,-8.830000,-2.600000], [3.470000,-6.960000,-3.230000], [3.870000,-4.100000,-3.590000], [3.800000,-0.720000,-3.550000], [3.190000,2.820000,-2.970000], [1.330000,8.390000,-1.250000], [0.580000,11.770000,-0.570000], [0.490000,13.130000,-0.470000], [0.490000,10.250000,-0.470000], [1.260000,-10.690000,-0.690000], [2.410000,-9.840000,-1.310000], [3.350000,-8.830000,-1.820000], [4.170000,-6.960000,-2.260000], [4.630000,-4.100000,-2.520000], [4.570000,-0.720000,-2.480000], [3.830000,2.820000,-2.080000], [1.600000,8.390000,-0.870000], [0.720000,11.770000,-0.400000], [0.580000,13.130000,-0.320000], [0.580000,10.250000,-0.320000], [-0.010000,-11.200000,0.000000], [1.390000,-10.690000,-0.350000], [2.660000,-9.840000,-0.670000], [3.700000,-8.830000,-0.930000], [4.600000,-6.960000,-1.150000], [5.120000,-4.100000,-1.280000], [5.040000,-0.720000,-1.260000], [4.230000,2.820000,-1.040000], [1.760000,8.390000,-0.440000], [0.790000,11.770000,-0.200000], [0.650000,13.130000,-0.160000], [0.650000,10.250000,-0.160000], [-0.010000,10.250000,0.000000], [0.450000,31.430000,3.060000], [0.990000,5.730000,3.050000], [0.430000,31.430000,2.940000], [0.960000,5.730000,2.810000], [0.390000,31.430000,2.840000], [0.860000,5.730000,2.580000], [0.330000,31.430000,2.740000], [0.710000,5.730000,2.380000], [0.230000,31.430000,2.680000], [0.520000,5.730000,2.210000], [0.130000,31.430000,2.620000], [0.290000,5.730000,2.100000], [0.020000,31.430000,2.610000], [0.040000,5.730000,2.070000], [-0.080000,31.430000,2.610000], [-0.190000,5.730000,2.080000], [-0.190000,31.430000,2.640000], [-0.430000,5.730000,2.160000], [-0.290000,31.430000,2.710000], [-0.630000,5.730000,2.300000], [-0.360000,31.430000,2.800000], [-0.800000,5.730000,2.480000], [-0.420000,31.430000,2.900000], [-0.920000,5.730000,2.710000], [-0.450000,31.430000,3.010000], [-0.990000,5.730000,2.940000], [-0.450000,31.430000,3.120000], [-0.980000,5.730000,3.190000], [-0.420000,31.430000,3.230000], [-0.920000,5.730000,3.430000], [-0.360000,31.430000,3.330000], [-0.790000,5.730000,3.650000], [-0.280000,31.430000,3.410000], [-0.620000,5.730000,3.830000], [-0.190000,31.430000,3.470000], [-0.410000,5.730000,3.970000], [-0.070000,31.430000,3.510000], [-0.170000,5.730000,4.030000], [0.030000,31.430000,3.510000], [0.060000,5.730000,4.050000], [0.130000,31.430000,3.490000], [0.310000,5.730000,4.000000], [0.240000,31.430000,3.440000], [0.520000,5.730000,3.900000], [0.330000,31.430000,3.370000], [0.720000,5.730000,3.740000], [0.390000,31.430000,3.270000], [0.870000,5.730000,3.530000], [0.000000,31.620001,3.060000], [0.440000,31.430000,3.170000], [0.960000,5.730000,3.300000], [0.000000,2.760000,3.060000]]; >>> this.faces=[[1,6,7], [1,7,2], [2,7,8], [2,8,3], [3,8,9], [3,9,4], [4,9,10], [4,10,5], [5,10,6], [5,6,1], [1,2,3], [6,8,7], [1,3,4], [6,9,8], [1,4,5], [6,10,9], [11,20,21], [11,21,12], [12,21,22], [12,22,13], [13,22,23], [13,23,14], [14,23,24], [14,24,15], [15,24,25], [15,25,16], [16,25,26], [16,26,17], [17,26,27], [17,27,18], [18,27,28], [18,28,19], [19,28,20], [19,20,11], [11,12,13], [20,22,21], [11,13,14], [20,23,22], [11,14,15], [20,24,23], [11,15,16], [20,25,24], [11,16,17], [20,26,25], [11,17,18], [20,27,26], [11,18,19], [20,28,27], [86,29,32], [29,30,33], [29,33,32], [30,31,34], [30,34,33], [31,90,34], [86,32,35], [32,33,36], [32,36,35], [33,34,37], [33,37,36], [34,90,37], [86,35,38], [35,36,39], [35,39,38], [36,37,40], [36,40,39], [37,90,40], [86,38,41], [38,39,42], [38,42,41], [39,40,43], [39,43,42], [40,90,43], [86,41,44], [41,42,45], [41,45,44], [42,43,46], [42,46,45], [43,90,46], [86,44,47], [44,45,48], [44,48,47], [45,46,49], [45,49,48], [46,90,49], [86,47,50], [47,48,51], [47,51,50], [48,49,52], [48,52,51], [49,90,52], [86,50,53], [50,51,54], [50,54,53], [51,52,55], [51,55,54], [52,90,55], [86,53,56], [53,54,57], [53,57,56], [54,55,58], [54,58,57], [55,90,58], [86,56,59], [56,57,60], [56,60,59], [57,58,61], [57,61,60], [58,90,61], [86,59,62], [59,60,63], [59,63,62], [60,61,64], [60,64,63], [61,90,64], [86,62,65], [62,63,66], [62,66,65], [63,64,67], [63,67,66], [64,90,67], [86,65,68], [65,66,69], [65,69,68], [66,67,70], [66,70,69], [67,90,70], [86,68,71], [68,69,72], [68,72,71], [69,70,73], [69,73,72], [70,90,73], [86,71,74], [71,72,75], [71,75,74], [72,73,76], [72,76,75], [73,90,76], [86,74,77], [74,75,78], [74,78,77], [75,76,79], [75,79,78], [76,90,79], [86,77,80], [77,78,81], [77,81,80], [78,79,82], [78,82,81], [79,90,82], [86,80,83], [80,81,84], [80,84,83], [81,82,85], [81,85,84], [82,90,85], [86,83,87], [83,84,88], [83,88,87], [84,85,89], [84,89,88], [85,90,89], [86,87,29], [87,88,30], [87,30,29], [88,89,31], [88,31,30], [89,90,31], [91,107,108], [91,108,92], [92,108,109], [92,109,93], [93,109,110], [93,110,94], [94,110,111], [94,111,95], [95,111,112], [95,112,96], [96,112,113], [96,113,97], [97,113,114], [97,114,98], [98,114,115], [98,115,99], [99,115,116], [99,116,100], [100,116,117], [100,117,101], [101,117,118], [101,118,102], [102,118,119], [102,119,103], [103,119,120], [103,120,104], [104,120,121], [104,121,105], [105,121,122], [105,122,106], [106,122,107], [106,107,91], [93,94,95], [109,111,110], [93,95,96], [109,112,111], [96,97,98], [112,114,113], [96,98,99], [112,115,114], [96,99,100], [112,116,115], [93,96,100], [109,116,112], [103,104,105], [119,121,120], [103,105,106], [119,122,121], [106,91,92], [122,108,107], [103,106,92], [119,108,122], [103,92,93], [119,109,108], [93,100,101], [109,117,116], [93,101,102], [109,118,117], [93,102,103], [109,119,118], [123,139,140], [123,140,124], [124,140,141], [124,141,125], [125,141,142], [125,142,126], [126,142,143], [126,143,127], [127,143,144], [127,144,128], [128,144,145], [128,145,129], [129,145,146], [129,146,130], [130,146,147], [130,147,131], [131,147,148], [131,148,132], [132,148,149], [132,149,133], [133,149,150], [133,150,134], [134,150,151], [134,151,135], [135,151,152], [135,152,136], [136,152,153], [136,153,137], [137,153,154], [137,154,138], [138,154,139], [138,139,123], [125,126,127], [141,143,142], [125,127,128], [141,144,143], [128,129,130], [144,146,145], [128,130,131], [144,147,146], [128,131,132], [144,148,147], [125,128,132], [141,148,144], [135,136,137], [151,153,152], [135,137,138], [151,154,153], [138,123,124], [154,140,139], [135,138,124], [151,140,154], [135,124,125], [151,141,140], [125,132,133], [141,149,148], [125,133,134], [141,150,149], [125,134,135], [141,151,150], [155,171,172], [155,172,156], [156,172,173], [156,173,157], [157,173,174], [157,174,158], [158,174,175], [158,175,159], [159,175,176], [159,176,160], [160,176,177], [160,177,161], [161,177,178], [161,178,162], [162,178,179], [162,179,163], [163,179,180], [163,180,164], [164,180,181], [164,181,165], [165,181,182], [165,182,166], [166,182,183], [166,183,167], [167,183,184], [167,184,168], [168,184,185], [168,185,169], [169,185,186], [169,186,170], [170,186,171], [170,171,155], [157,158,159], [173,175,174], [157,159,160], [173,176,175], [160,161,162], [176,178,177], [160,162,163], [176,179,178], [160,163,164], [176,180,179], [157,160,164], [173,180,176], [167,168,169], [183,185,184], [167,169,170], [183,186,185], [170,155,156], [186,172,171], [167,170,156], [183,172,186], [167,156,157], [183,173,172], [157,164,165], [173,181,180], [157,165,166], [173,182,181], [157,166,167], [173,183,182], [187,203,204], [187,204,188], [188,204,205], [188,205,189], [189,205,206], [189,206,190], [190,206,207], [190,207,191], [191,207,208], [191,208,192], [192,208,209], [192,209,193], [193,209,210], [193,210,194], [194,210,211], [194,211,195], [195,211,212], [195,212,196], [196,212,213], [196,213,197], [197,213,214], [197,214,198], [198,214,215], [198,215,199], [199,215,216], [199,216,200], [200,216,217], [200,217,201], [201,217,218], [201,218,202], [202,218,203], [202,203,187], [189,190,191], [205,207,206], [189,191,192], [205,208,207], [192,193,194], [208,210,209], [192,194,195], [208,211,210], [192,195,196], [208,212,211], [189,192,196], [205,212,208], [199,200,201], [215,217,216], [199,201,202], [215,218,217], [202,187,188], [218,204,203], [199,202,188], [215,204,218], [199,188,189], [215,205,204], [189,196,197], [205,213,212], [189,197,198], [205,214,213], [189,198,199], [205,215,214], [219,235,236], [219,236,220], [220,236,237], [220,237,221], [221,237,238], [221,238,222], [222,238,239], [222,239,223], [223,239,240], [223,240,224], [224,240,241], [224,241,225], [225,241,242], [225,242,226], [226,242,243], [226,243,227], [227,243,244], [227,244,228], [228,244,245], [228,245,229], [229,245,246], [229,246,230], [230,246,247], [230,247,231], [231,247,248], [231,248,232], [232,248,249], [232,249,233], [233,249,250], [233,250,234], [234,250,235], [234,235,219], [221,222,223], [237,239,238], [221,223,224], [237,240,239], [224,225,226], [240,242,241], [224,226,227], [240,243,242], [224,227,228], [240,244,243], [221,224,228], [237,244,240], [231,232,233], [247,249,248], [231,233,234], [247,250,249], [234,219,220], [250,236,235], [231,234,220], [247,236,250], [231,220,221], [247,237,236], [221,228,229], [237,245,244], [221,229,230], [237,246,245], [221,230,231], [237,247,246], [251,257,258], [251,258,252], [252,258,259], [252,259,253], [253,259,260], [253,260,254], [254,260,261], [254,261,255], [255,261,262], [255,262,256], [256,262,257], [256,257,251], [252,253,254], [258,260,259], [252,254,255], [258,261,260], [251,252,255], [257,261,258], [251,255,256], [257,262,261], [263,269,270], [263,270,264], [264,270,271], [264,271,265], [265,271,272], [265,272,266], [266,272,273], [266,273,267], [267,273,274], [267,274,268], [268,274,269], [268,269,263], [264,265,266], [270,272,271], [264,266,267], [270,273,272], [263,264,267], [269,273,270], [263,267,268], [269,274,273], [275,279,280], [275,280,276], [276,280,281], [276,281,277], [277,281,282], [277,282,278], [278,282,279], [278,279,275], [275,276,277], [279,281,280], [275,277,278], [279,282,281], [283,287,288], [283,288,284], [284,288,289], [284,289,285], [285,289,290], [285,290,286], [286,290,287], [286,287,283], [283,284,285], [287,289,288], [283,285,286], [287,290,289], [291,295,296], [291,296,292], [292,296,297], [292,297,293], [293,297,298], [293,298,294], [294,298,295], [294,295,291], [291,292,293], [295,297,296], [291,293,294], [295,298,297], [299,303,304], [299,304,300], [300,304,305], [300,305,301], [301,305,306], [301,306,302], [302,306,303], [302,303,299], [299,300,301], [303,305,304], [299,301,302], [303,306,305], [307,312,313], [307,313,308], [308,313,314], [308,314,309], [309,314,315], [309,315,310], [310,315,316], [310,316,311], [311,316,312], [311,312,307], [307,308,309], [312,314,313], [307,309,310], [312,315,314], [307,310,311], [312,316,315], [317,322,323], [317,323,318], [318,323,324], [318,324,319], [319,324,325], [319,325,320], [320,325,326], [320,326,321], [321,326,322], [321,322,317], [317,318,319], [322,324,323], [317,319,320], [322,325,324], [317,320,321], [322,326,325], [327,331,332], [327,332,328], [328,332,333], [328,333,329], [329,333,334], [329,334,330], [330,334,331], [330,331,327], [327,328,329], [331,333,332], [327,329,330], [331,334,333], [335,341,342], [335,342,336], [336,342,343], [336,343,337], [337,343,344], [337,344,338], [338,344,345], [338,345,339], [339,345,346], [339,346,340], [340,346,341], [340,341,335], [340,335,336], [346,342,341], [340,336,337], [346,343,342], [337,338,339], [343,345,344], [337,339,340], [343,346,345], [611,347,358], [347,348,359], [347,359,358], [348,349,360], [348,360,359], [349,350,361], [349,361,360], [350,351,362], [350,362,361], [351,352,363], [351,363,362], [352,353,364], [352,364,363], [353,354,365], [353,365,364], [354,355,366], [354,366,365], [355,356,367], [355,367,366], [356,357,368], [356,368,367], [357,623,368], [611,358,369], [358,359,370], [358,370,369], [359,360,371], [359,371,370], [360,361,372], [360,372,371], [361,362,373], [361,373,372], [362,363,374], [362,374,373], [363,364,375], [363,375,374], [364,365,376], [364,376,375], [365,366,377], [365,377,376], [366,367,378], [366,378,377], [367,368,379], [367,379,378], [368,623,379], [611,369,380], [369,370,381], [369,381,380], [370,371,382], [370,382,381], [371,372,383], [371,383,382], [372,373,384], [372,384,383], [373,374,385], [373,385,384], [374,375,386], [374,386,385], [375,376,387], [375,387,386], [376,377,388], [376,388,387], [377,378,389], [377,389,388], [378,379,390], [378,390,389], [379,623,390], [611,380,391], [380,381,392], [380,392,391], [381,382,393], [381,393,392], [382,383,394], [382,394,393], [383,384,395], [383,395,394], [384,385,396], [384,396,395], [385,386,397], [385,397,396], [386,387,398], [386,398,397], [387,388,399], [387,399,398], [388,389,400], [388,400,399], [389,390,401], [389,401,400], [390,623,401], [611,391,402], [391,392,403], [391,403,402], [392,393,404], [392,404,403], [393,394,405], [393,405,404], [394,395,406], [394,406,405], [395,396,407], [395,407,406], [396,397,408], [396,408,407], [397,398,409], [397,409,408], [398,399,410], [398,410,409], [399,400,411], [399,411,410], [400,401,412], [400,412,411], [401,623,412], [611,402,413], [402,403,414], [402,414,413], [403,404,415], [403,415,414], [404,405,416], [404,416,415], [405,406,417], [405,417,416], [406,407,418], [406,418,417], [407,408,419], [407,419,418], [408,409,420], [408,420,419], [409,410,421], [409,421,420], [410,411,422], [410,422,421], [411,412,423], [411,423,422], [412,623,423], [611,413,424], [413,414,425], [413,425,424], [414,415,426], [414,426,425], [415,416,427], [415,427,426], [416,417,428], [416,428,427], [417,418,429], [417,429,428], [418,419,430], [418,430,429], [419,420,431], [419,431,430], [420,421,432], [420,432,431], [421,422,433], [421,433,432], [422,423,434], [422,434,433], [423,623,434], [611,424,435], [424,425,436], [424,436,435], [425,426,437], [425,437,436], [426,427,438], [426,438,437], [427,428,439], [427,439,438], [428,429,440], [428,440,439], [429,430,441], [429,441,440], [430,431,442], [430,442,441], [431,432,443], [431,443,442], [432,433,444], [432,444,443], [433,434,445], [433,445,444], [434,623,445], [611,435,446], [435,436,447], [435,447,446], [436,437,448], [436,448,447], [437,438,449], [437,449,448], [438,439,450], [438,450,449], [439,440,451], [439,451,450], [440,441,452], [440,452,451], [441,442,453], [441,453,452], [442,443,454], [442,454,453], [443,444,455], [443,455,454], [444,445,456], [444,456,455], [445,623,456], [611,446,457], [446,447,458], [446,458,457], [447,448,459], [447,459,458], [448,449,460], [448,460,459], [449,450,461], [449,461,460], [450,451,462], [450,462,461], [451,452,463], [451,463,462], [452,453,464], [452,464,463], [453,454,465], [453,465,464], [454,455,466], [454,466,465], [455,456,467], [455,467,466], [456,623,467], [611,457,468], [457,458,469], [457,469,468], [458,459,470], [458,470,469], [459,460,471], [459,471,470], [460,461,472], [460,472,471], [461,462,473], [461,473,472], [462,463,474], [462,474,473], [463,464,475], [463,475,474], [464,465,476], [464,476,475], [465,466,477], [465,477,476], [466,467,478], [466,478,477], [467,623,478], [611,468,479], [468,469,480], [468,480,479], [469,470,481], [469,481,480], [470,471,482], [470,482,481], [471,472,483], [471,483,482], [472,473,484], [472,484,483], [473,474,485], [473,485,484], [474,475,486], [474,486,485], [475,476,487], [475,487,486], [476,477,488], [476,488,487], [477,478,489], [477,489,488], [478,623,489], [611,479,490], [479,480,491], [479,491,490], [480,481,492], [480,492,491], [481,482,493], [481,493,492], [482,483,494], [482,494,493], [483,484,495], [483,495,494], [484,485,496], [484,496,495], [485,486,497], [485,497,496], [486,487,498], [486,498,497], [487,488,499], [487,499,498], [488,489,500], [488,500,499], [489,623,500], [611,490,501], [490,491,502], [490,502,501], [491,492,503], [491,503,502], [492,493,504], [492,504,503], [493,494,505], [493,505,504], [494,495,506], [494,506,505], [495,496,507], [495,507,506], [496,497,508], [496,508,507], [497,498,509], [497,509,508], [498,499,510], [498,510,509], [499,500,511], [499,511,510], [500,623,511], [611,501,512], [501,502,513], [501,513,512], [502,503,514], [502,514,513], [503,504,515], [503,515,514], [504,505,516], [504,516,515], [505,506,517], [505,517,516], [506,507,518], [506,518,517], [507,508,519], [507,519,518], [508,509,520], [508,520,519], [509,510,521], [509,521,520], [510,511,522], [510,522,521], [511,623,522], [611,512,523], [512,513,524], [512,524,523], [513,514,525], [513,525,524], [514,515,526], [514,526,525], [515,516,527], [515,527,526], [516,517,528], [516,528,527], [517,518,529], [517,529,528], [518,519,530], [518,530,529], [519,520,531], [519,531,530], [520,521,532], [520,532,531], [521,522,533], [521,533,532], [522,623,533], [611,523,534], [523,524,535], [523,535,534], [524,525,536], [524,536,535], [525,526,537], [525,537,536], [526,527,538], [526,538,537], [527,528,539], [527,539,538], [528,529,540], [528,540,539], [529,530,541], [529,541,540], [530,531,542], [530,542,541], [531,532,543], [531,543,542], [532,533,544], [532,544,543], [533,623,544], [611,534,545], [534,535,546], [534,546,545], [535,536,547], [535,547,546], [536,537,548], [536,548,547], [537,538,549], [537,549,548], [538,539,550], [538,550,549], [539,540,551], [539,551,550], [540,541,552], [540,552,551], [541,542,553], [541,553,552], [542,543,554], [542,554,553], [543,544,555], [543,555,554], [544,623,555], [611,545,556], [545,546,557], [545,557,556], [546,547,558], [546,558,557], [547,548,559], [547,559,558], [548,549,560], [548,560,559], [549,550,561], [549,561,560], [550,551,562], [550,562,561], [551,552,563], [551,563,562], [552,553,564], [552,564,563], [553,554,565], [553,565,564], [554,555,566], [554,566,565], [555,623,566], [611,556,567], [556,557,568], [556,568,567], [557,558,569], [557,569,568], [558,559,570], [558,570,569], [559,560,571], [559,571,570], [560,561,572], [560,572,571], [561,562,573], [561,573,572], [562,563,574], [562,574,573], [563,564,575], [563,575,574], [564,565,576], [564,576,575], [565,566,577], [565,577,576], [566,623,577], [611,567,578], [567,568,579], [567,579,578], [568,569,580], [568,580,579], [569,570,581], [569,581,580], [570,571,582], [570,582,581], [571,572,583], [571,583,582], [572,573,584], [572,584,583], [573,574,585], [573,585,584], [574,575,586], [574,586,585], [575,576,587], [575,587,586], [576,577,588], [576,588,587], [577,623,588], [611,578,589], [578,579,590], [578,590,589], [579,580,591], [579,591,590], [580,581,592], [580,592,591], [581,582,593], [581,593,592], [582,583,594], [582,594,593], [583,584,595], [583,595,594], [584,585,596], [584,596,595], [585,586,597], [585,597,596], [586,587,598], [586,598,597], [587,588,599], [587,599,598], [588,623,599], [611,589,600], [589,590,601], [589,601,600], [590,591,602], [590,602,601], [591,592,603], [591,603,602], [592,593,604], [592,604,603], [593,594,605], [593,605,604], [594,595,606], [594,606,605], [595,596,607], [595,607,606], [596,597,608], [596,608,607], [597,598,609], [597,609,608], [598,599,610], [598,610,609], [599,623,610], [611,600,612], [600,601,613], [600,613,612], [601,602,614], [601,614,613], [602,603,615], [602,615,614], [603,604,616], [603,616,615], [604,605,617], [604,617,616], [605,606,618], [605,618,617], [606,607,619], [606,619,618], [607,608,620], [607,620,619], [608,609,621], [608,621,620], [609,610,622], [609,622,621], [610,623,622], [611,612,347], [612,613,348], [612,348,347], [613,614,349], [613,349,348], [614,615,350], [614,350,349], [615,616,351], [615,351,350], [616,617,352], [616,352,351], [617,618,353], [617,353,352], [618,619,354], [618,354,353], [619,620,355], [619,355,354], [620,621,356], [620,356,355], [621,622,357], [621,357,356], [622,623,357], [672,624,626], [624,625,627], [624,627,626], [625,675,627], [672,626,628], [626,627,629], [626,629,628], [627,675,629], [672,628,630], [628,629,631], [628,631,630], [629,675,631], [672,630,632], [630,631,633], [630,633,632], [631,675,633], [672,632,634], [632,633,635], [632,635,634], [633,675,635], [672,634,636], [634,635,637], [634,637,636], [635,675,637], [672,636,638], [636,637,639], [636,639,638], [637,675,639], [672,638,640], [638,639,641], [638,641,640], [639,675,641], [672,640,642], [640,641,643], [640,643,642], [641,675,643], [672,642,644], [642,643,645], [642,645,644], [643,675,645], [672,644,646], [644,645,647], [644,647,646], [645,675,647], [672,646,648], [646,647,649], [646,649,648], [647,675,649], [672,648,650], [648,649,651], [648,651,650], [649,675,651], [672,650,652], [650,651,653], [650,653,652], [651,675,653], [672,652,654], [652,653,655], [652,655,654], [653,675,655], [672,654,656], [654,655,657], [654,657,656], [655,675,657], [672,656,658], [656,657,659], [656,659,658], [657,675,659], [672,658,660], [658,659,661], [658,661,660], [659,675,661], [672,660,662], [660,661,663], [660,663,662], [661,675,663], [672,662,664], [662,663,665], [662,665,664], [663,675,665], [672,664,666], [664,665,667], [664,667,666], [665,675,667], [672,666,668], [666,667,669], [666,669,668], [667,675,669], [672,668,670], [668,669,671], [668,671,670], [669,675,671], [672,670,673], [670,671,674], [670,674,673], [671,675,674], [672,673,624], [673,674,625], [673,625,624], [674,675,625]]; >>> this.normals = new Array(); >>> for (var i=0; i>> { >>> this.normals[i] = [0, 0, 0]; } >>> this.center = [0, 0, 0]; >>> for (var i=0; i>> { >>> this.center[0] += this.points[i][0]; >>> this.center[1] += this.points[i][1]; >>> this.center[2] += this.points[i][2]; } >>> this.distances = new Array(); >>> for (var i=1; i>> { >>> this.distances[i] = 0; } >>> this.points_number = this.points.length; >>> this.center[0] = this.center[0]/(this.points_number-1); >>> this.center[1] = this.center[1]/(this.points_number-1); >>> this.center[2] = this.center[2]/(this.points_number-1); >>> this.faces_number = this.faces.length; >>> this.axis_x = [1, 0, 0]; >>> this.axis_y = [0, 1, 0]; >>> this.axis_z = [0, 0, 1]; >>> this.fillcolor = fillcolor; >>> this.linecolor = linecolor; } function ship(fillcolor, linecolor) >>> { >>> this.points=[[0,0,0], [-193.121536,-44.568363,-0.251513], [-197.573380,-46.895039,-0.256472], [-198.788773,-49.016193,-0.257825], [-148.971069,-47.449108,0.487985], [-157.748093,-48.462933,0.901612], [-175.811340,-47.449108,2.064319], [-193.124741,-44.568363,2.280679], [-197.576004,-46.915585,1.802589], [-198.790024,-49.024815,0.736692], [-148.971756,-48.138371,1.010340], [-157.749634,-50.179447,2.127501], [-175.814957,-50.343334,4.924728], [-193.128799,-48.681034,5.467995], [-197.579208,-49.064030,4.336096], [-198.791382,-49.925770,1.799131], [-148.971741,-48.358227,1.004796], [-157.749634,-51.695354,2.115620], [-175.814941,-53.750546,4.897006], [-193.128754,-52.477642,5.437099], [-197.579193,-52.081844,4.311542], [-198.791382,-51.191311,1.788833], [-148.970978,-48.512630,0.424875], [-157.748047,-52.759968,0.872927], [-175.811249,-56.143414,1.997388], [-193.124695,-55.143978,2.206096], [-197.575897,-54.201244,1.743308], [-198.790009,-52.080090,0.711832], [-148.970215,-48.511135,-0.201412], [-157.746658,-52.749645,-0.211188], [-175.808426,-56.120220,-0.231307], [-193.121536,-55.118137,-0.251513], [-197.573380,-54.180706,-0.256472], [-198.788773,-52.071476,-0.257825], [-175.835815,-44.020111,2.520835], [-192.249237,-44.020111,0.089022], [-149.033737,-40.512054,5.957043], [-157.821075,-40.512054,4.856255], [-175.834793,-40.512054,1.718337], [-190.096756,-40.512054,-0.249265], [-193.319107,-32.981995,-0.252854], [-149.033737,-32.981995,5.965450], [-157.821075,-32.981995,4.858928], [-175.834793,-32.981995,1.718337], [-157.822510,-22.686403,5.986545], [-175.835815,-22.686403,2.520832], [-203.319458,-22.686403,-0.263400], [-149.035294,-22.686403,7.187805], [-149.033951,-13.661487,12.976438], [-157.822800,-13.239704,11.364350], [-175.841217,-12.341414,8.138739], [-218.859848,-9.932562,-0.279986], [-157.820206,-44.109818,4.159561], [-157.795929,-46.143688,2.892030], [-149.015671,-46.054623,4.377612], [-149.033737,-44.092472,5.954969], [-114.731369,-47.455616,1.648514], [-114.808830,-46.061138,7.371684], [-114.840164,-44.098980,9.729299], [-114.840332,-40.518570,9.851958], [-114.840347,-32.988510,9.877554], [-114.842636,-22.692911,11.680110], [-114.833809,-14.981619,16.619209], [-86.866638,-47.462948,4.298918], [-86.945099,-46.068466,10.841274], [-86.976799,-44.106312,13.504797], [-86.978119,-40.525902,14.543481], [-86.979042,-32.995842,15.279140], [-86.981201,-22.700230,16.973080], [-27.674036,-43.568142,21.946110], [-44.549297,-33.003426,19.780952], [-44.550179,-22.707819,20.497684], [-21.460979,-18.288401,21.435612], [-44.437195,-47.470531,9.048497], [-44.514172,-46.076050,14.422836], [-44.546265,-44.113895,17.389896], [85.055260,-47.467136,9.566951], [84.978310,-46.072659,14.941110], [84.946236,-44.110508,17.908043], [68.021347,-43.564747,22.548162], [84.943199,-33.000031,20.298161], [75.746201,-22.704430,21.009447], [70.970001,-19.101204,21.930876], [85.067299,-47.467136,0.059286], [-45.041111,-40.533417,18.943781], [84.944374,-40.796600,19.374630], [82.226730,-42.588669,18.427174], [-41.828033,-42.589798,18.166464], [79.673470,-39.247772,19.470383], [-39.277756,-39.248901,19.220474], [102.918846,-19.467031,21.246489], [122.860519,-44.293362,8.534363], [122.756577,-43.026093,13.986779], [122.713524,-41.242935,17.011076], [122.711594,-38.231323,18.543358], [122.710190,-31.145979,19.637127], [122.709312,-22.913336,20.333622], [154.601456,-35.084190,17.534193], [154.600418,-28.227760,18.357895], [154.669479,-24.790649,19.310398], [149.794647,-18.465145,19.951303], [154.749863,-40.412964,7.742351], [154.646179,-39.298981,13.078783], [154.603317,-37.731514,16.040014], [122.866699,-44.293362,3.635928], [120.642647,-47.466251,0.104404], [165.723557,-39.503567,7.885768], [165.619827,-38.426041,13.331938], [165.576935,-36.909866,16.361908], [165.575211,-34.349174,17.790897], [165.574158,-27.696560,18.635632], [165.644394,-24.514065,19.685810], [165.632629,-23.205051,19.933445], [153.361526,-20.990608,20.149113], [218.698013,-23.197134,17.409588], [218.859879,-23.206814,0.233417], [217.906036,-34.818779,0.232852], [217.897858,-34.818779,7.380709], [217.795074,-34.083824,12.370145], [218.003616,-33.049683,15.120919], [218.221451,-31.303102,16.453737], [218.704147,-24.170685,17.239691], [26.770920,-18.608509,21.686554], [34.043495,-18.608231,21.725981], [34.098499,-18.608231,-21.703093], [26.825840,-18.608509,-21.679869], [218.743103,-24.170685,-16.773199], [218.258591,-31.303102,-15.987810], [218.037659,-33.049683,-14.655252], [217.822861,-34.083824,-11.904680], [217.914215,-34.818779,-6.915005], [218.738449,-23.197134,-16.831234], [153.410522,-20.990608,-19.848755], [165.680908,-23.205051,-19.612167], [165.692078,-24.514065,-19.364510], [165.619278,-27.696560,-18.314417], [165.618240,-34.349174,-17.469687], [165.616501,-36.909866,-16.040697], [165.651978,-38.426041,-13.010636], [165.742432,-39.503567,-7.564241], [122.875648,-44.293362,-3.422154], [154.642868,-37.731514,-15.746773], [154.678360,-39.298981,-12.785454], [154.768753,-40.412964,-7.448800], [149.843933,-18.465145,-19.663754], [154.717194,-24.790649,-19.017067], [154.645752,-28.227760,-18.064655], [154.644730,-35.084190,-17.240952], [122.760559,-22.913336,-20.120155], [122.759674,-31.145979,-19.423656], [122.758270,-38.231323,-18.329887], [122.756340,-41.242935,-16.797607], [122.791702,-43.026093,-13.773222], [122.881859,-44.293362,-8.320590], [102.972412,-19.467031,-21.056477], [-39.228889,-39.248901,-19.358833], [79.722641,-39.247772,-19.363771], [-41.781818,-42.589798,-18.310507], [82.273254,-42.588669,-18.314878], [84.993301,-40.796600,-19.256279], [-44.992966,-40.533417,-19.094976], [71.025414,-19.101204,-21.829052], [75.799278,-22.704430,-20.901999], [84.994453,-33.000031,-20.179810], [68.078354,-43.564747,-22.467506], [84.991455,-44.110508,-17.789692], [85.015999,-46.072659,-14.822695], [85.079361,-47.467136,-9.448378], [-44.502033,-44.113895,-17.539997], [-44.477455,-46.076050,-14.572871], [-44.414082,-47.470531,-9.198376], [-21.406540,-18.288401,-21.558340], [-44.498085,-22.707819,-20.647781], [-44.499001,-33.003426,-19.931049], [-27.618309,-43.568142,-22.058607], [-86.937897,-22.700230,-17.226698], [-86.940025,-32.995842,-15.532762], [-86.940956,-40.525902,-14.797100], [-86.942299,-44.106312,-13.758418], [-86.917328,-46.068466,-11.094831], [-86.855408,-47.462948,-4.552318], [-114.791275,-14.981464,-16.945929], [-114.812637,-22.692911,-12.006871], [-114.814926,-32.988510,-10.204315], [-114.814972,-40.518570,-10.178719], [-114.815102,-44.098980,-10.056059], [-114.789734,-46.061138,-7.698379], [-114.726784,-47.455616,-1.975055], [-149.018173,-44.092472,-6.357917], [-149.004089,-46.054623,-4.780525], [-157.788071,-46.143688,-3.314508], [-157.809143,-44.109818,-4.582088], [-175.820068,-12.341250,-8.601345], [-157.793457,-13.239477,-11.786820], [-149.000549,-13.661228,-13.379333], [-149.016586,-22.686403,-7.590753], [-175.828827,-22.686403,-2.983499], [-157.806839,-22.686403,-6.409072], [-175.829819,-32.981995,-2.181006], [-157.808243,-32.981995,-5.281456], [-149.018158,-32.981995,-6.368398], [-175.829819,-40.512054,-2.181006], [-157.808243,-40.512054,-5.278782], [-149.018158,-40.512054,-6.359990], [-192.248352,-44.020111,-0.590104], [-175.828827,-44.020111,-2.983502], [-198.787521,-52.080090,-1.227486], [-197.570847,-54.201244,-2.256252], [-193.118423,-55.143978,-2.709126], [-175.805588,-56.143414,-2.460002], [-157.745285,-52.759968,-1.295303], [-148.969376,-48.512630,-0.827696], [-198.786148,-51.191311,-2.304485], [-197.567612,-52.081844,-4.824486], [-193.114319,-52.477642,-5.940127], [-175.801941,-53.750546,-5.359620], [-157.743759,-51.695354,-2.537997], [-148.968674,-48.358227,-1.407619], [-198.786148,-49.925770,-2.314782], [-197.567566,-49.064030,-4.849041], [-193.114304,-48.681034,-5.971020], [-175.801895,-50.343334,-5.387342], [-157.743698,-50.179447,-2.549878], [-148.968674,-48.138371,-1.413163], [-198.787506,-49.024815,-1.252344], [-197.570755,-46.915585,-2.315533], [-193.118317,-44.568363,-2.783705], [-175.805511,-47.449108,-2.526933], [-157.745270,-48.462933,-1.323988], [-148.969315,-47.449108,-0.890806], [-80.094856,-16.366798,-20.192406], [-80.145653,-16.366798,19.944675], [-95.864258,-15.039927,6.206345], [-107.467216,-15.004230,6.197975], [-107.449020,-15.004153,-6.484835], [-95.844170,-15.039933,-6.482594], [-107.460655,-12.876587,6.197990], [-107.442490,-12.876509,-6.484818], [-95.837608,-12.912290,-6.482576], [-95.857697,-12.912283,6.206361], [-107.426102,-7.562058,-6.484778], [-95.821220,-7.597838,-6.482538], [-95.841347,-7.597833,6.206399], [-107.444267,-7.562137,6.198030], [-111.808311,-7.548680,6.191773], [-111.824669,-12.863129,6.191733], [-111.806503,-12.863051,-6.491072], [-111.790115,-7.548601,-6.491032], [71.006943,-19.101204,-7.242425], [70.988472,-19.101204,7.344247], [34.080170,-18.608231,-7.226748], [34.061840,-18.608231,7.249640], [-21.350143,-7.427763,-21.558270], [26.882221,-7.747872,-21.679798], [34.154896,-7.747593,-21.703022], [34.136551,-7.747593,-7.226677], [71.063339,-8.240566,-7.242352], [71.081810,-8.240566,-21.828981], [103.028801,-8.606395,-21.056404], [102.975235,-8.606395,21.246561], [71.026398,-8.240566,21.930946], [71.044868,-8.240566,7.344320], [34.118221,-7.747593,7.249712], [34.099892,-7.747593,21.726053], [26.827316,-7.747872,21.686625], [-21.404583,-7.427763,21.435682], [-23.850100,-6.966564,-20.859394], [-23.902718,-6.966564,20.706121], [-23.885199,-6.966564,6.850965], [-23.867649,-6.966564,-7.004236], [-23.533968,-2.682079,-20.858994], [-23.551517,-2.682079,-7.003835], [-23.569067,-2.682079,6.851367], [-23.586586,-2.682079,20.706522], [-74.120796,-6.574910,-20.294436], [-78.092445,-9.487654,-20.191195], [-77.228287,-6.505365,-17.084606], [-76.912163,-2.220882,-17.084206], [-73.804665,-2.290426,-20.294039], [-77.271225,-6.505365,16.840353], [-78.143242,-9.487654,19.945889], [-74.171867,-6.574910,20.058041], [-73.855736,-2.290426,20.058441], [-76.955093,-2.220882,16.840754], [-73.679039,5.593889,20.058668], [-76.778397,5.663433,16.840981], [-76.735466,5.663433,-17.083979], [-73.627968,5.593889,-20.293812], [-56.149837,5.202236,-20.878201], [-56.167385,5.202236,-7.023045], [-56.184937,5.202236,6.832156], [-56.202484,5.202236,20.687315], [-56.003712,5.197935,15.158989], [-23.387844,-2.686375,15.178197], [-73.656967,-2.294722,14.530116], [-73.480301,5.589588,14.530342], [-73.443222,5.589582,-14.765001], [-73.619888,-2.294727,-14.765227], [-23.349226,-2.686380,-15.330184], [-55.965096,5.197929,-15.349392], [-56.083004,8.968954,-7.022938], [-56.100555,8.968954,6.832263], [-56.118073,8.968954,20.687424], [-73.594658,9.360607,20.058777], [-76.694016,9.430149,16.841087], [-76.651085,9.430149,-17.083872], [-73.543587,9.360607,-20.293705], [-56.065456,8.968954,-20.878098], [-66.006950,9.264441,-5.180267], [-58.864384,9.104385,-5.312379], [-58.883072,9.104385,5.108154], [-66.025131,9.264441,4.962180], [-59.995365,18.266634,3.180750], [-64.496681,18.367502,3.088750], [-64.485199,18.367502,-3.303547], [-59.983597,18.266634,-3.386811], [-7.724119,-7.281446,8.517172], [-10.812283,-7.268494,11.267529], [-4.621579,-7.351016,11.657533], [-1.441457,15.301786,6.471271], [-3.377544,15.345182,4.909741], [-4.602257,-7.351017,-11.754386], [-10.793686,-7.268492,-11.383029], [-7.710023,-7.281446,-8.627288], [-3.362122,15.345030,-4.995567], [-1.426647,15.301691,-6.548023], [11.589803,-7.713856,-8.758033], [14.679115,-7.726812,-11.518564], [8.487137,-7.644284,-11.843060], [5.824824,15.139219,-6.555085], [7.739266,15.096296,-5.033173], [8.467769,-7.644286,11.802110], [14.660228,-7.726815,11.496260], [11.575425,-7.713856,8.730344], [7.723810,15.096468,4.981758], [5.810102,15.139311,6.494761], [9.661969,15.053129,-0.018312], [-5.251101,15.387262,-0.050158], [2.211564,15.220198,-7.492658], [2.199291,15.220198,7.424184], [-8.148654,15.301786,-9.292356], [-4.536936,15.301786,-12.189340], [2.252211,15.301786,-13.952092], [8.994812,15.301786,-12.202518], [12.567273,15.301786,-9.362534], [16.155155,15.301786,-0.004471], [12.538436,15.301786,9.325991], [8.967335,15.301786,12.149354], [2.229321,15.301786,13.883718], [-4.564579,15.301786,12.105520], [-8.177430,15.301786,9.191602], [-11.673625,15.301786,-0.063898], [-4.564579,25.331264,12.105520], [-8.177430,25.331264,9.191602], [-11.673625,25.331264,-0.063897], [-8.148654,25.331264,-9.292356], [-4.536936,25.331264,-12.189340], [2.252211,25.331264,-13.952092], [8.994812,25.331264,-12.202518], [12.567273,25.331264,-9.362534], [16.155155,25.331264,-0.004471], [12.538436,25.331264,9.325991], [8.967335,25.331264,12.149354], [2.229321,25.331264,13.883718], [11.696464,25.331264,4.060451], [10.309690,25.331264,5.156854], [7.380241,25.331264,5.910896], [4.424797,25.331264,5.137356], [3.015162,25.331264,4.000420], [1.487361,25.331264,-0.044122], [3.027532,25.331264,-4.076335], [4.436466,25.331264,-5.206450], [7.389619,25.331264,-5.973214], [10.321282,25.331264,-5.212503], [11.708874,25.331264,-4.109426], [13.277449,25.331264,-0.018191], [10.321282,27.999378,-5.212503], [11.708874,27.999378,-4.109426], [13.277449,27.999378,-0.018191], [11.696464,27.999378,4.060451], [10.309690,27.999378,5.156854], [7.380241,27.999378,5.910896], [4.424797,27.999378,5.137356], [3.015162,27.999378,4.000420], [1.487361,27.999378,-0.044122], [3.027532,27.999378,-4.076335], [4.436466,27.999378,-5.206450], [7.389619,27.999378,-5.973214], [7.370870,56.143414,-0.031196], [7.376258,27.999371,-1.219594], [7.962594,27.999371,-1.067451], [6.785621,27.999371,-1.066240], [6.503841,27.999371,-0.840218], [6.195807,27.999371,-0.033775], [6.501358,27.999371,0.775133], [6.783297,27.999371,1.002521], [7.374376,27.999371,1.157228], [7.960266,27.999371,1.006421], [8.237617,27.999371,0.787140], [8.553820,27.999371,-0.028589], [8.240097,27.999371,-0.846836], [73.408287,-8.258724,-19.460375], [100.696426,-8.588238,-18.765371], [100.648666,-8.588238,18.950254], [73.358879,-8.258724,19.567587], [73.374352,-8.258724,7.347268], [73.392822,-8.258724,-7.239404], [73.375023,-6.187043,19.567604], [73.390511,-6.187043,7.347289], [73.408966,-6.187043,-7.239382], [73.424431,-6.187043,-19.460354], [100.712578,-6.516557,-18.765354], [100.664818,-6.516557,18.950272], [71.097954,-6.168886,-21.828964], [103.044952,-6.534715,-21.056387], [102.991386,-6.534715,21.246578], [71.042557,-6.168886,21.930964], [71.061028,-6.168886,7.344340], [71.079483,-6.168886,-7.242332], [71.109116,2.369425,21.931049], [71.127586,2.369425,7.344425], [71.146042,2.369425,-7.242248], [71.164513,2.369425,-21.828878], [103.111481,2.003595,-21.056303], [103.057915,2.003595,21.246662], [106.177406,1.943451,-21.049290], [106.110878,-6.594859,-21.049376], [106.057304,-6.594859,21.253593], [106.123833,1.943451,21.253679]]; >>> this.faces=[[212,206,33,27,21,15,9,3,224,218], [7,1,2,8], [2,3,9,8], [4,5,11,10], [5,6,12,11], [6,7,13,12], [7,8,14,13], [8,9,15,14], [10,11,17,16], [11,12,18,17], [12,13,19,18], [13,14,20,19], [14,15,21,20], [16,17,23,22], [17,18,24,23], [18,19,25,24], [19,20,26,25], [20,21,27,26], [22,23,29,28], [23,24,30,29], [24,25,31,30], [25,26,32,31], [26,27,33,32], [223,229,4,10,16,22,28,211,217], [48,194,193,192,51,50,49], [7,6,34,35], [226,1,7,35,204], [118,117,116,115,114,121,120,119], [5,4,54,53], [53,34,6,5], [52,55,36,37], [34,52,37,38], [39,204,35], [37,36,41,42], [38,37,42,43], [39,38,43,40], [39,35,34,38], [43,42,44,45], [40,43,45,46], [42,41,47,44], [44,47,48,49], [45,44,49,50], [46,45,50,51], [52,34,53], [53,54,55,52], [4,229,187,56], [54,4,56,57], [55,54,57,58], [36,55,58,59], [41,36,59,60], [47,41,60,61], [48,47,61,62], [194,48,62,181], [63,56,187,180], [57,56,63,64], [58,57,64,65], [59,58,65,66], [60,59,66,67], [61,60,67,68], [231,62,61,68], [67,66,84,70], [68,67,70,71], [231,68,71,72], [73,63,180,170], [64,63,73,74], [65,64,74,75], [66,65,75,84], [74,73,76,77], [75,78,86,87], [87,84,75], [70,84,89], [71,70,80,81], [123,122,72,71,81,82], [83,76,73,170,167], [69,89,84], [85,80,88], [78,85,86], [86,85,79], [69,87,86,79], [79,88,89,69], [70,89,88,80], [88,79,85], [78,75,74,77], [87,69,84], [76,83,104,91], [77,76,91,92], [78,77,92,93], [85,78,93,94], [80,85,94,95], [81,80,95,96], [82,81,96,90], [95,94,97,98], [96,95,98,99], [90,96,99,100], [154,90,100,144], [101,91,104,140,153,143], [92,91,101,102], [93,92,102,103], [94,93,103,97], [83,105,104], [105,140,104], [102,101,106,107], [103,102,107,108], [97,103,108,109], [98,97,109,110], [99,98,110,111], [99,113,100], [132,144,100,113], [106,101,143,139], [133,132,113,112], [113,99,111,112], [116,117,106,139,130], [107,106,117,118], [108,107,118,119], [109,108,119,120], [110,109,120,121], [114,112,111,110,121], [131,133,112,114,115], [135,134,133,131,126], [136,135,126,127], [137,136,127,128], [138,137,128,129], [139,138,129,130], [145,132,133,134], [144,132,145], [146,145,134,135], [147,146,135,136], [141,147,136,137], [142,141,137,138], [143,142,138,139], [140,105,83], [151,150,147,141], [152,151,141,142], [153,152,142,143], [148,154,144,145], [149,148,145,146], [150,149,146,147], [162,161,154,148], [163,162,148,149], [159,163,149,150], [165,159,150,151], [166,165,151,152], [167,166,152,153], [83,167,153,140], [160,174,157], [168,165,166,169], [159,164,156], [155,173,163,156], [156,164,174,155], [157,174,164,158], [164,159,158], [158,159,165], [156,163,159], [160,155,174], [161,162,172,171,125,124], [173,172,162,163], [155,160,173], [168,160,157], [165,168,157,158], [170,169,166,167], [178,177,160,168], [179,178,168,169], [180,179,169,170], [172,175,230,171], [176,175,172,173], [177,176,173,160], [182,181,230,175], [183,182,175,176], [184,183,176,177], [185,184,177,178], [186,185,178,179], [187,186,179,180], [195,194,181,182], [200,195,182,183], [203,200,183,184], [188,203,184,185], [189,188,185,186], [229,189,186,187], [189,190,191,188], [190,205,191], [196,46,51,192], [197,196,192,193], [195,197,193,194], [200,199,197,195], [198,40,46,196], [199,198,196,197], [204,39,201,205], [201,39,40,198], [202,201,198,199], [203,202,199,200], [191,205,201,202], [188,191,202,203], [205,190,228,227], [229,228,190,189], [116,130,129,128,127,126,131,115], [227,226,204,205], [206,207,32,33], [207,208,31,32], [208,209,30,31], [209,210,29,30], [210,211,28,29], [212,213,207,206], [213,214,208,207], [214,215,209,208], [215,216,210,209], [216,217,211,210], [218,219,213,212], [219,220,214,213], [220,221,215,214], [221,222,216,215], [222,223,217,216], [224,225,219,218], [225,226,220,219], [226,227,221,220], [227,228,222,221], [228,229,223,222], [3,2,225,224], [1,226,225,2], [241,240,243,242], [266,269,322,321,328,327,255,254,253,252], [161,124,250,248], [422,421,420,419,424,423], [313,312,315,314], [232,233,62,231], [233,234,181,62], [234,235,230,181], [235,232,231,230], [236,237,234,233], [237,238,235,234], [238,239,232,235], [239,236,233,232], [240,241,238,237], [241,242,239,238], [242,243,236,239], [245,244,247,246], [244,245,236,243], [245,246,237,236], [246,247,240,237], [247,244,243,240], [123,82,249,251], [262,261,256,255], [275,274,266,252,171,230], [252,253,125,171], [253,254,124,125], [254,255,250,124], [255,256,248,250], [256,257,161,248], [257,258,154,161], [258,259,90,154], [259,260,82,90], [260,261,249,82], [261,262,251,249], [262,263,123,251], [263,264,122,123], [264,265,72,122], [265,267,281,280,231,72], [280,279,276,275,230,231], [322,269,268,317,316,323], [317,268,267,265,264,263,262,332,331,318], [332,262,255,327,326,333], [270,271,269,266], [271,272,268,269], [272,273,267,268], [273,282,281,267], [283,277,276,279], [278,270,266,274], [275,276,274], [280,281,279], [278,274,276,277], [283,279,281,282], [284,285,283,282], [285,286,277,283], [286,287,278,277], [297,296,299,298], [298,299,289,271], [289,290,272,271], [290,292,293,272], [293,292,295,294], [293,294,282,273], [294,295,284,282], [295,292,291,284], [296,297,278,287], [297,298,270,278], [299,296,287,288], [300,301,290,289], [301,302,291,290], [302,303,284,291], [303,304,285,284], [304,305,286,285], [305,306,287,286], [306,307,288,287], [307,300,289,288], [304,303,311,308,306,305], [308,309,307,306], [309,310,302,301,300,307], [310,311,303,302], [312,313,311,310], [313,314,308,311], [314,315,309,308], [315,312,310,309], [319,318,339], [324,323,337], [329,328,338], [334,333,336], [317,318,316], [322,323,321], [327,328,326], [332,333,331], [320,316,318,319], [325,321,323,324], [330,326,328,329], [335,331,333,334], [330,336,326], [321,338,328], [326,336,333], [325,338,321], [331,339,318], [335,339,331], [320,337,316], [316,337,323], [340,341,325,324], [341,342,338,325], [342,343,329,338], [343,344,330,329], [344,345,336,330], [345,346,334,336], [346,347,335,334], [347,348,339,335], [348,349,319,339], [349,350,320,319], [350,351,337,320], [351,340,324,337], [352,353,350,349], [353,354,351,350], [354,355,340,351], [355,356,341,340], [356,357,342,341], [357,358,343,342], [358,359,344,343], [359,360,345,344], [360,361,346,345], [361,362,347,346], [362,363,348,347], [363,352,349,348], [364,365,362,361], [365,366,363,362], [366,367,352,363], [367,368,353,352], [368,369,354,353], [369,370,355,354], [370,371,356,355], [371,372,357,356], [372,373,358,357], [373,374,359,358], [374,375,360,359], [375,364,361,360], [376,377,374,373], [377,378,375,374], [378,379,364,375], [379,380,365,364], [380,381,366,365], [381,382,367,366], [382,383,368,367], [383,384,369,368], [384,385,370,369], [385,386,371,370], [386,387,372,371], [387,376,373,372], [388,389,391], [388,390,389], [388,400,390], [388,399,400], [388,398,399], [388,397,398], [388,396,397], [388,395,396], [388,394,395], [388,393,394], [388,392,393], [388,391,392], [376,387,389,390], [387,386,391,389], [386,385,392,391], [385,384,393,392], [384,383,394,393], [383,382,395,394], [382,381,396,395], [381,380,397,396], [380,379,398,397], [379,378,399,398], [378,377,400,399], [377,376,390,400], [401,402,258,257], [402,403,259,258], [403,404,260,259], [404,405,261,260], [405,406,256,261], [406,401,257,256], [407,408,405,404], [408,409,406,405], [409,410,401,406], [410,411,402,401], [411,412,403,402], [412,407,404,403], [413,414,411,410], [414,415,412,411], [415,416,407,412], [416,417,408,407], [417,418,409,408], [418,413,410,409], [419,420,417,416], [420,421,418,417], [421,422,413,418], [422,423,414,413], [426,425,428,427], [424,419,416,415], [425,426,414,423], [426,427,415,414], [427,428,424,415], [428,425,423,424]]; >>> this.normals = new Array(); >>> for (var i=0; i>> { >>> this.normals[i] = [0, 0, 0]; } >>> this.center = [0, 0, 0]; >>> for (var i=0; i>> { >>> this.center[0] += this.points[i][0]; >>> this.center[1] += this.points[i][1]; >>> this.center[2] += this.points[i][2]; } >>> this.distances = new Array(); >>> for (var i=1; i>> { >>> this.distances[i] = 0; } >>> this.points_number = this.points.length; >>> this.center[0] = this.center[0]/(this.points_number-1); >>> this.center[1] = this.center[1]/(this.points_number-1); >>> this.center[2] = this.center[2]/(this.points_number-1); >>> this.faces_number = this.faces.length; >>> this.axis_x = [1, 0, 0]; >>> this.axis_y = [0, 1, 0]; >>> this.axis_z = [0, 0, 1]; >>> this.fillcolor = fillcolor; >>> this.linecolor = linecolor; } === File http://localhost/subjectPrograms/ClientSideOnly/3dmodel/./transform.js === function rotate_x(center, sin_cos_angle, point) --- { --- var diff1 = point[1]-center[1]; --- var diff2 = center[2]-point[2]; --- point[1] = center[1]+diff1*sin_cos_angle[1]+diff2*sin_cos_angle[0]; --- point[2] = center[2]-diff2*sin_cos_angle[1]+diff1*sin_cos_angle[0]; } function rotate_x_normal(sin_cos_angle, point) --- { --- var temp = point[1]; --- point[1] = temp*sin_cos_angle[1]-point[2]*sin_cos_angle[0]; --- point[2] = point[2]*sin_cos_angle[1]+temp*sin_cos_angle[0]; } function rotate_y(center, sin_cos_angle, point) --- { --- var diff1 = point[0]-center[0]; --- var diff2 = point[2]-center[2]; --- point[0] = center[0]+diff1*sin_cos_angle[1]+diff2*sin_cos_angle[0]; --- point[2] = center[2]+diff2*sin_cos_angle[1]-diff1*sin_cos_angle[0]; } function rotate_y_normal(sin_cos_angle, point) --- { --- var temp = point[0]; --- point[0] = temp*sin_cos_angle[1]+point[2]*sin_cos_angle[0]; --- point[2] = point[2]*sin_cos_angle[1]-temp*sin_cos_angle[0]; } function rotate_z(center, sin_cos_angle, point) --- { --- var diff1 = point[0]-center[0]; --- var diff2 = point[1]-center[1]; --- point[0] = center[0]+diff1*sin_cos_angle[1]-diff2*sin_cos_angle[0]; --- point[1] = center[1]+diff2*sin_cos_angle[1]+diff1*sin_cos_angle[0]; } function rotate_z_normal(sin_cos_angle, point) --- { --- var temp = point[0]; --- point[0] = temp*sin_cos_angle[1]-point[1]*sin_cos_angle[0]; --- point[1] = point[1]*sin_cos_angle[1]+temp*sin_cos_angle[0]; } function get_rotation_parameter(center, vector, teta) >>> { >>> var result = new Array(); >>> var u_u = vector[0]*vector[0]; >>> var v_v = vector[1]*vector[1]; >>> var w_w = vector[2]*vector[2]; >>> var v_v_p_w_w = (v_v+w_w); >>> var u_u_p_w_w = (u_u+w_w); >>> var u_u_p_v_v = (u_u+v_v); >>> var b_v_p_c_w = center[1]*vector[1]+center[2]*vector[2]; >>> var a_u_p_c_w = center[0]*vector[0]+center[2]*vector[2]; >>> var a_u_p_b_v = center[0]*vector[0]+center[1]*vector[1]; >>> var b_w_m_c_v = center[1]*vector[2]-center[2]*vector[1]; >>> var c_u_m_a_w = center[2]*vector[0]-center[0]*vector[2]; >>> var a_v_m_b_u = center[0]*vector[1]-center[1]*vector[0]; >>> var den = v_v+u_u+w_w; >>> result[0] = den; >>> result[1] = v_v_p_w_w; >>> result[2] = u_u_p_w_w; >>> result[3] = u_u_p_v_v; >>> result[4] = center[0]*v_v_p_w_w; >>> result[5] = center[1]*u_u_p_w_w; >>> result[6] = center[2]*u_u_p_v_v; >>> result[7] = b_v_p_c_w; >>> result[8] = a_u_p_c_w; >>> result[9] = a_u_p_b_v; >>> result[10] = Math.cos(teta); >>> result[11] = Math.sin(teta)*Math.sqrt(den); >>> result[12] = b_w_m_c_v; >>> result[13] = c_u_m_a_w; >>> result[14] = a_v_m_b_u; >>> result[15] = center[0]; >>> result[16] = center[1]; >>> result[17] = center[2]; >>> result[18] = vector[0]; >>> result[19] = vector[1]; >>> result[20] = vector[2]; >>> return result; } function rotate(p, point) >>> { >>> var p_20_p_2 = p[20]*point[2]; >>> var p_19_p_1 = p[19]*point[1]; >>> var p_18_p_0 = p[18]*point[0]; >>> var u_x_p_v_y_p_w_z = p_18_p_0+p_19_p_1+p_20_p_2; >>> var temp0 = point[0]; >>> var temp1 = point[1]; >>> point[0] = (p[4]+p[18]*(-p[7]+u_x_p_v_y_p_w_z)+((temp0-p[15])*p[1]+p[18]*(p[7]-p_19_p_1-p_20_p_2))*p[10]+p[11]*(p[12]-p[20]*temp1+p[19]*point[2]))/p[0]; >>> point[1] = (p[5]+p[19]*(-p[8]+u_x_p_v_y_p_w_z)+((temp1-p[16])*p[2]+p[19]*(p[8]-p_18_p_0-p_20_p_2))*p[10]+p[11]*(p[13]+p[20]*temp0-p[18]*point[2]))/p[0]; >>> point[2] = (p[6]+p[20]*(-p[9]+u_x_p_v_y_p_w_z)+((point[2]-p[17])*p[3]+p[20]*(p[9]-p_18_p_0-p_19_p_1))*p[10]+p[11]*(p[14]-p[19]*temp0+p[18]*temp1))/p[0]; } function translate(vector, point) >>> { >>> point[0] = point[0] + vector[0]; >>> point[1] = point[1] + vector[1]; >>> point[2] = point[2] + vector[2]; } function scale(vector, point) >>> { >>> point[0] = point[0] * vector[0]; >>> point[1] = point[1] * vector[1]; >>> point[2] = point[2] * vector[2]; } function translate_solid(vector, solid) >>> { >>> translate(vector, solid.center); >>> for (var i=0; i>> { >>> translate(vector, solid.points[i]); } } function translate_solid_direction(vector, delta, solid) --- { --- translate([vector[0]*delta, vector[1]*delta, vector[2]*delta], solid.center); --- for (var i=0; i>> { >>> var da = solid.center; >>> var a = [-solid.center[0], -solid.center[1], -solid.center[2]]; >>> translate_solid(a, solid); >>> for (var i=0; i>> { >>> scale(vector, solid.points[i]); } >>> translate_solid(da, solid); } function rotate_solid(point, vector, angle, solid) --- { --- parametri = get_rotation_parameter(point, vector, angle); --- parametri2 = get_rotation_parameter([0, 0, 0], vector, angle); --- rotate(parametri, solid.center); --- rotate(parametri2, solid.axis_x); --- rotate(parametri2, solid.axis_y); --- rotate(parametri2, solid.axis_z); --- for (var i=0; i>> { >>> rotate(parametri1, solid.center); >>> rotate(parametri2, solid.axis_x); >>> rotate(parametri2, solid.axis_y); >>> rotate(parametri2, solid.axis_z); >>> for (var i=0; i>> { >>> rotate(parametri2, solid.normals[i]); } >>> for (var j=0; j>> { >>> rotate(parametri1, solid.points[j]); } } function rotate_solid_x(center, angle, solid) --- { --- var sin_cosin_teta = [Math.sin(angle), Math.cos(angle)]; --- rotate_x(center, sin_cosin_teta, solid.center); --- rotate_x_normal(sin_cosin_teta, solid.axis_x); --- rotate_x_normal(sin_cosin_teta, solid.axis_y); --- rotate_x_normal(sin_cosin_teta, solid.axis_z); --- for (var i=0; i>> { >>> var result = new Array(); >>> result[0] = point[0]*distance/point[2]+500; >>> result[1] = 275-point[1]*distance/point[2]; >>> result[2] = distance; >>> return result; } === Inline script in: http://localhost/subjectPrograms/ClientSideOnly/3dmodel/ === function scene() >>> { >>> this.solid_number = 0; >>> this.solid = new Array(); >>> this.observer = [0, 0, 0]; >>> this.distance = -650; } >>> var world = new scene(); >>> var colore = 'rgb(255,255,255)'; >>> var alpha = 0.6; >>> var teta_x_global = 0; >>> var teta_y_global = 0; >>> var motion = 1; >>> var id_timer=0; function init() >>> { >>> world.solid[world.solid_number++] = new dinosaur([255,255,255],[0,0,0]); >>> scale_solid([3, 3, 3],world.solid[world.solid_number-1]); >>> translate_solid([-world.solid[world.solid_number-1].center[0], -world.solid[world.solid_number-1].center[1], -world.solid[world.solid_number-1].center[2]],world.solid[world.solid_number-1]); >>> translate_solid([0, 0, -1100],world.solid[world.solid_number-1]); >>> document.onkeydown = onKeyDown; >>> document.onmousemove = onMouseMove; >>> setInterval(draw,10); } function changeModel() >>> { >>> clearInterval(id_timer); >>> var canvas = document.getElementById("display"); >>> if (canvas.getContext) >>> { >>> var ctx = canvas.getContext("2d"); >>> ctx.clearRect(0,0,1000,550); } >>> if (document.getElementById("modello").value=='dino') >>> { >>> world.solid[0] = new dinosaur([255,255,255],[0,0,0]); >>> scale_solid([3, 3, 3],world.solid[world.solid_number-1]); >>> translate_solid([-world.solid[world.solid_number-1].center[0], -world.solid[world.solid_number-1].center[1], -world.solid[world.solid_number-1].center[2]],world.solid[world.solid_number-1]); >>> translate_solid([0, 0, -1100],world.solid[world.solid_number-1]); } >>> if (document.getElementById("modello").value=='heli') >>> { >>> world.solid[0] = new helicopter([255,255,255],[0,0,0]); >>> scale_solid([12, 12, 12],world.solid[world.solid_number-1]); >>> translate_solid([-world.solid[world.solid_number-1].center[0], -world.solid[world.solid_number-1].center[1], -world.solid[world.solid_number-1].center[2]],world.solid[world.solid_number-1]); >>> translate_solid([0, 0, -1100],world.solid[world.solid_number-1]); } >>> if (document.getElementById("modello").value=='ship') >>> { >>> world.solid[0] = new ship([255,255,255],[0,0,0]); >>> scale_solid([3, 3, 3],world.solid[world.solid_number-1]); >>> translate_solid([-world.solid[world.solid_number-1].center[0], -world.solid[world.solid_number-1].center[1], -world.solid[world.solid_number-1].center[2]],world.solid[world.solid_number-1]); >>> translate_solid([0, 0, -1100],world.solid[world.solid_number-1]); } >>> id_timer =setInterval(draw,10); } function onKeyDown(evt) >>> { >>> if(evt.keyCode==77) --- motion = (motion+1) % 2; >>> if(evt.keyCode==82) --- colore = 'rgb(255,0,0)'; >>> if(evt.keyCode==71) --- colore = 'rgb(0,255,0)'; >>> if(evt.keyCode==89) --- colore = 'rgb(255,255,0)'; >>> if(evt.keyCode==66) --- colore = 'rgb(0,0,255)'; >>> if(evt.keyCode==87) --- colore = 'rgb(255,255,255)'; >>> if(evt.keyCode==49) --- alpha = 0.1; >>> if(evt.keyCode==50) --- alpha = 0.15; >>> if(evt.keyCode==51) --- alpha = 0.2; >>> if(evt.keyCode==52) --- alpha = 0.25; >>> if(evt.keyCode==53) --- alpha = 0.3; >>> if(evt.keyCode==54) --- alpha = 0.4; >>> if(evt.keyCode==55) --- alpha = 0.5; >>> if(evt.keyCode==56) --- alpha = 0.6; >>> if(evt.keyCode==57) --- alpha = 0.7; >>> if(evt.keyCode==48) --- alpha = 0.8; } function onMouseMove(evt) >>> { >>> var x = evt.pageX-document.getElementById("display").offsetLeft; >>> var y = evt.pageY-document.getElementById("display").offsetTop; >>> if ((x>0) && (x<1000) &&(y>0) && (y<550)) --- { --- teta_y_global = 0.10*(x-500)/500; --- teta_x_global = 0.10*(y-275)/275; } } function draw() >>> { >>> var canvas = document.getElementById("display"); >>> if (canvas.getContext) >>> { >>> var ctx = canvas.getContext("2d"); >>> if (motion==0) --- { --- ctx.clearRect(0,0,1000,550); } else >>> { >>> ctx.globalAlpha= 0.2; >>> ctx.fillStyle = 'rgb(255,255,255)'; >>> ctx.fillRect(0,0,1000,550); } >>> ctx.fillStyle = colore; >>> ctx.strokeStyle = 'rgb(0,0,0)'; >>> ctx.lineWidth = 0.5; >>> ctx.globalAlpha= alpha; >>> var parametrig1 = get_rotation_parameter([0, 0, -1100], [0, 1, 0], teta_y_global); >>> var parametrig2 = get_rotation_parameter([0, 0, 0], [0, 1, 0], teta_y_global); >>> var parametrig1a = get_rotation_parameter([0, 0, -1100], [1, 0, 0], teta_x_global); >>> var parametrig2a = get_rotation_parameter([0, 0, 0], [1, 0, 0], teta_x_global); >>> for (var i=0; i>> { >>> rotate_solid_fast(parametrig1, parametrig2, world.solid[i]); >>> rotate_solid_fast(parametrig1a, parametrig2a, world.solid[i]); } >>> var contatore = 0; >>> visible_polygons = new Array(); var delta_x; var delta_y; var delta_z; >>> for (var j=0; j>> { >>> for (var i=0; i>> { world.solid[j].distances[i]= Math.pow(world.solid[j].points[i][0],2) + Math.pow(world.solid[j].points[i][1],2) + Math.pow(world.solid[j].points[i][2],2); }} >>> for (var j=0; j>> { >>> for (var i=0; i>> { >>> var max =world.solid[j].distances[world.solid[j].faces[i][0]]; >>> for (var w=1; w>> { >>> if (world.solid[j].distances[world.solid[j].faces[i][w]]>max) max=world.solid[j].distances[world.solid[j].faces[i][w]]; } >>> visible_polygons[contatore++] = {solid:j, vertex:world.solid[j].faces[i], fillcolor:world.solid[j].fillcolor, linecolor:world.solid[j].linecolor, distance:max}; } } >>> visible_polygons.sort(sortfunction); >>> var projected_points = new Array(); >>> for (var j=0; j>> { >>> projected_points[j]=new Array(); >>> for (var i=0; i>> { >>> projected_points[j][i] = project(world.distance, world.solid[j].points[i]); } } >>> for (var i=0; i>> { >>> ctx.beginPath(); >>> var indice_solido = visible_polygons[i].solid; >>> var indici_vertici = visible_polygons[i].vertex; >>> ctx.moveTo(projected_points[indice_solido][indici_vertici[0]][0],projected_points[indice_solido][indici_vertici[0]][1]); >>> for (var z=1;z>> ctx.lineTo(projected_points[indice_solido][indici_vertici[z]][0],projected_points[indice_solido][indici_vertici[z]][1]); >>> ctx.closePath(); >>> ctx.fill(); >>> ctx.stroke(); } } } function sortfunction(a, b) >>> { >>> return(b.distance-a.distance); } Total lines (including un-executable): 5029 Total executable lines: 393 Covered lines: 291 Coverage: ~74% Errors:0 errors/warningsh in the script: