Skip to content

Instantly share code, notes, and snippets.

@cr1901
Created September 5, 2015 04:58
Show Gist options
  • Select an option

  • Save cr1901/8c451269023b9a412450 to your computer and use it in GitHub Desktop.

Select an option

Save cr1901/8c451269023b9a412450 to your computer and use it in GitHub Desktop.
solvespace.js Prototypee
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"></meta>
<title>Three.js Solvespace Mesh</title>
<script src="http://threejs.org/build/three.min.js"></script>
<script src="http://threejs.org/examples/js/controls/OrthographicTrackballControls.js"></script>
<script src="mesh.js"></script>
<script src="solvespace.js"></script>
</head>
<body>
<script>
my_render = solvespace(three_js_mesh, {width : 200, height : 200});
my_render2 = solvespace(three_js_mesh, {width : 400, height : 400});
my_render3 = solvespace(three_js_mesh, {width : 800, height : 800});
document.body.appendChild(my_render);
document.body.appendChild(my_render2);
document.body.appendChild(my_render3);
</script>
</body>
</html>
var three_js_mesh = {
bounds: {x: 69.5557082114, y: 69.5557082114, near: 1, far: 139.1114164227,
z: 69.5557082114, edgeBias: 0.2782228328},
points: [[43.4545546534, 10.2296172501, 31.8842053790],
[19.6631339357, 10.2296172501, 31.8842053790],
[43.4545546534, 0.0000000000, 31.8842053790],
[0.0000000000, 0.0000000000, 31.8842053790],
[16.6891118443, 10.4218278437, 31.8842053790],
[-26.1011535580, 47.2265034813, 31.8842053790],
[-17.1479519556, 52.1747607656, 31.8842053790],
[13.6864575957, 11.0160343940, 31.8842053790],
[-0.5582242261, 22.1578945519, 31.8842053790],
[10.7366900350, 12.0236615820, 31.8842053790],
[1.0485931425, 19.6479363338, 31.8842053790],
[7.9244465592, 13.4338821989, 31.8842053790],
[3.0210967370, 17.3073715449, 31.8842053790],
[5.3298535161, 15.2130737277, 31.8842053790],
[43.4545546534, 0.0000000000, -31.8842053790],
[-0.0000000000, 0.0000000000, -31.8842053790],
[43.4545546534, 10.2296172501, -31.8842053790],
[19.6631339357, 10.2296172501, -31.8842053790],
[16.6891118443, 10.4218278437, -31.8842053790],
[13.6864575957, 11.0160343940, -31.8842053790],
[10.7366900350, 12.0236615820, -31.8842053790],
[7.9244465592, 13.4338821989, -31.8842053790],
[5.3298535161, 15.2130737277, -31.8842053790],
[3.0210967370, 17.3073715449, -31.8842053790],
[-26.1011535580, 47.2265034813, -31.8842053790],
[1.0485931425, 19.6479363338, -31.8842053790],
[-0.5582242261, 22.1578945519, -31.8842053790],
[-17.1479519556, 52.1747607656, -31.8842053790],
[-0.5582242261, 22.1578945519, 5.1148086251],
[-7.1615211357, 34.1056662776, 5.1148086251],
[-14.0894173291, 46.6407564594, 17.6280952830],
[-13.8840821158, 46.2692301915, 19.8535596212],
[-13.2328465227, 45.0909075579, 21.9031931965],
[-12.2414004089, 43.2970200485, 23.2495037203],
[-11.1649016648, 41.3492413202, 23.6739967327],
[-10.0884029207, 39.4014625919, 23.2495037203],
[-9.0969568069, 37.6075750825, 21.9031931965],
[-8.4457212138, 36.4292524489, 19.8535596212],
[-8.2403860005, 36.0577261810, 17.6280952830],
[-7.1615211357, 34.1056662776, -5.1148086251],
[-8.4457212138, 36.4292524489, 15.4026309449],
[-9.0969568069, 37.6075750825, 13.3529973696],
[-10.0884029207, 39.4014625919, 12.0066868457],
[-11.1649016648, 41.3492413202, 11.5821938333],
[-12.2414004089, 43.2970200485, 12.0066868457],
[-13.2328465227, 45.0909075579, 13.3529973696],
[-13.8840821158, 46.2692301915, 15.4026309449],
[-14.0894173291, 46.6407564594, -17.6280952830],
[-13.8840821158, 46.2692301915, -15.4026309449],
[-13.2328465227, 45.0909075579, -13.3529973696],
[-12.2414004089, 43.2970200485, -12.0066868457],
[-0.5582242261, 22.1578945519, -5.1148086251],
[-11.1649016648, 41.3492413202, -11.5821938333],
[-10.0884029207, 39.4014625919, -12.0066868457],
[-9.0969568069, 37.6075750825, -13.3529973696],
[-8.4457212138, 36.4292524489, -15.4026309449],
[-8.2403860005, 36.0577261810, -17.6280952830],
[-8.4457212138, 36.4292524489, -19.8535596212],
[-9.0969568069, 37.6075750825, -21.9031931965],
[-10.0884029207, 39.4014625919, -23.2495037203],
[-11.1649016648, 41.3492413202, -23.6739967327],
[-12.2414004089, 43.2970200485, -23.2495037203],
[-13.2328465227, 45.0909075579, -21.9031931965],
[-13.8840821158, 46.2692301915, -19.8535596212],
[19.6631339357, 10.2296172501, -5.1148086251],
[16.6891118443, 10.4218278437, -5.1148086251],
[1.0485931425, 19.6479363338, -5.1148086251],
[13.6864575957, 11.0160343940, -5.1148086251],
[3.0210967370, 17.3073715449, -5.1148086251],
[10.7366900350, 12.0236615820, -5.1148086251],
[5.3298535161, 15.2130737277, -5.1148086251],
[7.9244465592, 13.4338821989, -5.1148086251],
[1.0485931425, 19.6479363338, 5.1148086251],
[19.6631339357, 10.2296172501, 5.1148086251],
[16.6891118443, 10.4218278437, 5.1148086251],
[3.0210967370, 17.3073715449, 5.1148086251],
[13.6864575957, 11.0160343940, 5.1148086251],
[5.3298535161, 15.2130737277, 5.1148086251],
[10.7366900350, 12.0236615820, 5.1148086251],
[7.9244465592, 13.4338821989, 5.1148086251],
[33.3142430221, 10.2296172501, -5.1148086251],
[33.3142430221, 10.2296172501, 5.1148086251],
[-22.8372837182, 41.3209729073, -15.4026309449],
[-19.0416045231, 34.4532053077, 23.2495037203],
[-20.1181032672, 36.4009840360, 23.6739967327],
[-22.1860481251, 40.1426502737, -13.3529973696],
[-21.1946020113, 38.3487627643, 23.2495037203],
[-21.1946020113, 38.3487627643, -12.0066868457],
[-22.1860481251, 40.1426502737, 21.9031931965],
[-20.1181032672, 36.4009840360, -11.5821938333],
[-22.8372837182, 41.3209729073, 19.8535596212],
[-19.0416045231, 34.4532053077, -12.0066868457],
[-23.0426189315, 41.6924991752, 17.6280952830],
[-18.0501584093, 32.6593177983, -13.3529973696],
[-22.8372837182, 41.3209729073, 15.4026309449],
[-17.3989228162, 31.4809951647, -15.4026309449],
[-22.1860481251, 40.1426502737, 13.3529973696],
[-21.1946020113, 38.3487627643, 12.0066868457],
[-20.1181032672, 36.4009840360, 11.5821938333],
[-19.0416045231, 34.4532053077, 12.0066868457],
[-17.1935876029, 31.1094688968, -17.6280952830],
[-18.0501584093, 32.6593177983, 13.3529973696],
[-17.3989228162, 31.4809951647, 15.4026309449],
[-17.1935876029, 31.1094688968, 17.6280952830],
[-18.0501584093, 32.6593177983, 21.9031931965],
[-17.3989228162, 31.4809951647, 19.8535596212],
[-17.3989228162, 31.4809951647, -19.8535596212],
[-23.0426189315, 41.6924991752, -17.6280952830],
[-18.0501584093, 32.6593177983, -21.9031931965],
[-22.8372837182, 41.3209729073, -19.8535596212],
[-19.0416045231, 34.4532053077, -23.2495037203],
[-20.1181032672, 36.4009840360, -23.6739967327],
[-22.1860481251, 40.1426502737, -21.9031931965],
[-21.1946020113, 38.3487627643, -23.2495037203]],
faces: [[0, 1, 2],
[2, 1, 3],
[1, 4, 3],
[5, 3, 6],
[4, 7, 3],
[6, 3, 8],
[7, 9, 3],
[8, 3, 10],
[9, 11, 3],
[10, 3, 12],
[11, 13, 3],
[3, 13, 12],
[14, 15, 16],
[16, 15, 17],
[17, 15, 18],
[18, 15, 19],
[19, 15, 20],
[20, 15, 21],
[21, 15, 22],
[22, 15, 23],
[15, 24, 23],
[23, 24, 25],
[25, 24, 26],
[26, 24, 27],
[27, 24, 6],
[6, 24, 5],
[28, 29, 8],
[30, 6, 31],
[31, 6, 32],
[32, 6, 33],
[6, 8, 33],
[33, 8, 34],
[34, 8, 35],
[35, 8, 36],
[36, 8, 37],
[37, 8, 38],
[8, 29, 38],
[29, 39, 38],
[38, 39, 40],
[40, 39, 41],
[41, 39, 42],
[42, 39, 43],
[43, 39, 44],
[44, 39, 45],
[30, 46, 6],
[6, 46, 27],
[46, 45, 27],
[27, 45, 47],
[47, 45, 48],
[48, 45, 49],
[49, 45, 50],
[45, 39, 50],
[39, 51, 50],
[50, 51, 52],
[52, 51, 53],
[53, 51, 54],
[51, 26, 54],
[54, 26, 55],
[55, 26, 56],
[56, 26, 57],
[57, 26, 58],
[58, 26, 59],
[26, 27, 59],
[59, 27, 60],
[60, 27, 61],
[61, 27, 62],
[62, 27, 63],
[63, 27, 47],
[17, 18, 64],
[64, 18, 65],
[51, 66, 26],
[26, 66, 25],
[18, 19, 65],
[65, 19, 67],
[66, 68, 25],
[25, 68, 23],
[19, 20, 67],
[67, 20, 69],
[68, 70, 23],
[23, 70, 22],
[20, 21, 69],
[69, 21, 71],
[21, 22, 71],
[71, 22, 70],
[8, 10, 28],
[28, 10, 72],
[73, 74, 1],
[1, 74, 4],
[10, 12, 72],
[72, 12, 75],
[74, 76, 4],
[4, 76, 7],
[12, 13, 75],
[75, 13, 77],
[76, 78, 7],
[7, 78, 9],
[13, 11, 77],
[77, 11, 79],
[11, 9, 79],
[79, 9, 78],
[64, 80, 17],
[17, 80, 16],
[80, 81, 16],
[16, 81, 0],
[81, 73, 0],
[0, 73, 1],
[14, 16, 2],
[2, 16, 0],
[15, 14, 3],
[3, 14, 2],
[24, 82, 5],
[83, 5, 84],
[82, 85, 5],
[84, 5, 86],
[85, 87, 5],
[86, 5, 88],
[87, 89, 5],
[88, 5, 90],
[89, 91, 5],
[90, 5, 92],
[91, 93, 5],
[92, 5, 94],
[93, 95, 5],
[5, 95, 94],
[94, 95, 96],
[96, 95, 97],
[97, 95, 98],
[98, 95, 99],
[95, 100, 99],
[99, 100, 101],
[101, 100, 102],
[102, 100, 103],
[5, 83, 3],
[83, 104, 3],
[104, 105, 3],
[105, 103, 3],
[103, 100, 3],
[3, 100, 15],
[100, 106, 15],
[82, 24, 107],
[106, 108, 15],
[107, 24, 109],
[108, 110, 15],
[15, 110, 24],
[110, 111, 24],
[109, 24, 112],
[111, 113, 24],
[24, 113, 112],
[39, 80, 51],
[51, 80, 66],
[80, 64, 66],
[66, 64, 68],
[64, 65, 68],
[68, 65, 70],
[65, 67, 70],
[70, 67, 71],
[71, 67, 69],
[81, 29, 73],
[73, 29, 74],
[29, 28, 74],
[74, 28, 76],
[28, 72, 76],
[76, 72, 78],
[72, 75, 78],
[78, 75, 79],
[79, 75, 77],
[80, 39, 81],
[81, 39, 29],
[52, 53, 89],
[89, 53, 91],
[100, 95, 56],
[56, 95, 55],
[53, 54, 91],
[91, 54, 93],
[54, 55, 93],
[93, 55, 95],
[56, 57, 100],
[100, 57, 106],
[111, 110, 60],
[60, 110, 59],
[57, 58, 106],
[106, 58, 108],
[58, 59, 108],
[108, 59, 110],
[60, 61, 111],
[111, 61, 113],
[107, 109, 47],
[47, 109, 63],
[61, 62, 113],
[113, 62, 112],
[62, 63, 112],
[112, 63, 109],
[47, 48, 107],
[107, 48, 82],
[89, 87, 52],
[52, 87, 50],
[48, 49, 82],
[82, 49, 85],
[49, 50, 85],
[85, 50, 87],
[34, 35, 84],
[84, 35, 83],
[103, 105, 38],
[38, 105, 37],
[35, 36, 83],
[83, 36, 104],
[36, 37, 104],
[104, 37, 105],
[38, 40, 103],
[103, 40, 102],
[98, 99, 43],
[43, 99, 42],
[40, 41, 102],
[102, 41, 101],
[41, 42, 101],
[101, 42, 99],
[43, 44, 98],
[98, 44, 97],
[92, 94, 30],
[30, 94, 46],
[44, 45, 97],
[97, 45, 96],
[45, 46, 96],
[96, 46, 94],
[30, 31, 92],
[92, 31, 90],
[84, 86, 34],
[34, 86, 33],
[31, 32, 90],
[90, 32, 88],
[32, 33, 88],
[88, 33, 86]],
colors: [[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x000066, 0.4980392158],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000],
[0x646464, 1.0000000000]],
normals: [[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[0.0000000000, -0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[0.0000000000, -0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, 0.0000000000, 3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[0.0000000000, 0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[0.0000000000, 0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-0.0000000000, -0.0000000000, -3629.0524358074],
[-315.5425030372, 570.9314373812, 0.0000000000],
[-315.5425030372, 570.9314373812, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[1914.1278543812, 1057.9005722211, 0.0000000000],
[-0.0000000000, 1497.1148767678, 0.0000000000],
[0.0000000001, 1497.1148767678, 0.0000000000],
[1310.3101500189, 724.1824804542, 0.0000000000],
[1310.3101500190, 724.1824804541, 0.0000000000],
[198.7410321116, 1531.1105918545, 0.0000000000],
[198.7410321116, 1531.1105918545, 0.0000000000],
[1243.9292432431, 914.5696693737, 0.0000000000],
[1243.9292432431, 914.5696693737, 0.0000000000],
[408.5251045883, 1525.4939200525, 0.0000000000],
[408.5251045883, 1525.4939200525, 0.0000000000],
[1137.5369185731, 1095.4607341567, 0.0000000000],
[1137.5369185731, 1095.4607341567, 0.0000000000],
[618.6359755319, 1476.8750555873, 0.0000000000],
[618.6359755319, 1476.8750555873, 0.0000000000],
[817.3235337258, 1385.5640250014, 0.0000000000],
[817.3235337258, 1385.5640250014, 0.0000000000],
[1310.3101500190, 724.1824804541, 0.0000000000],
[1310.3101500189, 724.1824804543, 0.0000000000],
[0.0000000001, 1497.1148767678, 0.0000000000],
[-0.0000000000, 1497.1148767678, 0.0000000000],
[1243.9292432431, 914.5696693737, 0.0000000000],
[1243.9292432431, 914.5696693737, 0.0000000000],
[198.7410321116, 1531.1105918544, 0.0000000000],
[198.7410321116, 1531.1105918545, 0.0000000000],
[1137.5369185731, 1095.4607341567, 0.0000000000],
[1137.5369185731, 1095.4607341567, 0.0000000000],
[408.5251045883, 1525.4939200525, 0.0000000000],
[408.5251045883, 1525.4939200525, 0.0000000000],
[993.3499850043, 1255.8368553798, 0.0000000000],
[993.3499850043, 1255.8368553798, 0.0000000000],
[817.3235337258, 1385.5640250014, 0.0000000000],
[817.3235337258, 1385.5640250014, 0.0000000000],
[-0.0000000000, 1517.1410888378, 0.0000000000],
[-0.0000000000, 1517.1410888378, 0.0000000000],
[-0.0000000000, 1517.1410888378, 0.0000000000],
[-0.0000000000, 1517.1410888378, 0.0000000000],
[0.0000000000, 1517.1410888378, 0.0000000000],
[-0.0000000000, 1517.1410888378, 0.0000000000],
[652.3264347036, 0.0000000000, 0.0000000000],
[652.3264347036, 0.0000000000, 0.0000000000],
[-0.0000000000, -2771.0278904386, -0.0000000000],
[-0.0000000000, -2771.0278904386, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[-3011.5590726585, -1664.4290813442, -0.0000000000],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, -0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, -0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, 0.0000000000, -966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, 0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[0.0000000000, 0.0000000000, 966.4013294557],
[0.0000000000, -0.0000000000, 966.4013294557],
[244.2428429966, 414.0515752403, -0.0000000000],
[244.2428429966, 414.0515752403, -0.0000000000],
[-0.0000000000, 0.0000000000, -87.4652307231],
[-0.0000000000, 0.0000000000, -87.4652307231],
[-42.3085687822, 76.5516269785, -0.0000000000],
[-42.3085687822, 76.5516269785, -0.0000000000],
[-17.4951380810, 31.6550836595, -91.3585058405],
[-17.4951380772, 31.6550836527, -91.3585058418],
[-35.0495659883, 63.4174442324, -72.4585696032],
[-35.0495659883, 63.4174442324, -72.4585696032],
[-42.3085687822, 76.5516269785, 0.0000000000],
[-42.3085687822, 76.5516269785, 0.0000000000],
[-0.0000000000, 0.0000000000, 87.4652307231],
[-0.0000000000, 0.0000000000, 87.4652307231],
[-44.1918188088, 79.9591129251, 36.1679993636],
[-44.1918188095, 79.9591129263, 36.1679993558],
[-35.0495659883, 63.4174442324, 72.4585696032],
[-35.0495659883, 63.4174442324, 72.4585696032],
[0.0000000000, -0.0000000000, 87.4652307231],
[0.0000000000, -0.0000000000, 87.4652307231],
[42.3085687822, -76.5516269785, -0.0000000000],
[42.3085687822, -76.5516269785, 0.0000000000],
[17.4951380810, -31.6550836595, 91.3585058405],
[17.4951380772, -31.6550836527, 91.3585058418],
[35.0495659883, -63.4174442324, 72.4585696032],
[35.0495659883, -63.4174442324, 72.4585696032],
[42.3085687822, -76.5516269785, -0.0000000000],
[42.3085687822, -76.5516269785, 0.0000000000],
[0.0000000000, -0.0000000000, -87.4652307231],
[0.0000000000, -0.0000000000, -87.4652307231],
[44.1918188088, -79.9591129251, -36.1679993636],
[44.1918188095, -79.9591129263, -36.1679993558],
[35.0495659883, -63.4174442324, -72.4585696032],
[35.0495659883, -63.4174442324, -72.4585696032],
[-0.0000000000, 0.0000000000, -87.4652307231],
[-0.0000000000, 0.0000000000, -87.4652307231],
[-42.3085687822, 76.5516269785, -0.0000000000],
[-42.3085687822, 76.5516269785, -0.0000000000],
[-17.4951380810, 31.6550836595, -91.3585058405],
[-17.4951380772, 31.6550836527, -91.3585058418],
[-35.0495659883, 63.4174442324, -72.4585696032],
[-35.0495659883, 63.4174442324, -72.4585696032],
[-42.3085687822, 76.5516269785, 0.0000000000],
[-42.3085687822, 76.5516269785, 0.0000000000],
[-0.0000000000, 0.0000000000, 87.4652307231],
[-0.0000000000, 0.0000000000, 87.4652307231],
[-44.1918188088, 79.9591129251, 36.1679993636],
[-44.1918188095, 79.9591129263, 36.1679993558],
[-35.0495659883, 63.4174442324, 72.4585696032],
[-35.0495659883, 63.4174442324, 72.4585696032],
[0.0000000000, -0.0000000000, 87.4652307231],
[0.0000000000, -0.0000000000, 87.4652307231],
[42.3085687822, -76.5516269785, -0.0000000000],
[42.3085687822, -76.5516269785, 0.0000000000],
[17.4951380810, -31.6550836595, 91.3585058405],
[17.4951380772, -31.6550836527, 91.3585058418],
[35.0495659883, -63.4174442324, 72.4585696032],
[35.0495659883, -63.4174442324, 72.4585696032],
[42.3085687822, -76.5516269785, -0.0000000000],
[42.3085687822, -76.5516269785, 0.0000000000],
[0.0000000000, -0.0000000000, -87.4652307231],
[0.0000000000, -0.0000000000, -87.4652307231],
[44.1918188088, -79.9591129251, -36.1679993636],
[44.1918188095, -79.9591129263, -36.1679993558],
[35.0495659883, -63.4174442324, -72.4585696032],
[35.0495659883, -63.4174442324, -72.4585696032]],
edges: [[[43.4545546534, 10.2296172501, 31.8842053790], [43.4545546534, 0.0000000000, 31.8842053790]],
[[43.4545546534, 0.0000000000, 31.8842053790], [0.0000000000, 0.0000000000, 31.8842053790]],
[[0.0000000000, 0.0000000000, 31.8842053790], [-26.1011535580, 47.2265034813, 31.8842053790]],
[[-26.1011535580, 47.2265034813, 31.8842053790], [-17.1479519556, 52.1747607656, 31.8842053790]],
[[-17.1479519556, 52.1747607656, 31.8842053790], [-0.5582242261, 22.1578945519, 31.8842053790]],
[[-0.5582242261, 22.1578945519, 31.8842053790], [1.0485931425, 19.6479363338, 31.8842053790]],
[[1.0485931425, 19.6479363338, 31.8842053790], [3.0210967370, 17.3073715449, 31.8842053790]],
[[3.0210967370, 17.3073715449, 31.8842053790], [5.3298535161, 15.2130737277, 31.8842053790]],
[[5.3298535161, 15.2130737277, 31.8842053790], [7.9244465592, 13.4338821989, 31.8842053790]],
[[7.9244465592, 13.4338821989, 31.8842053790], [10.7366900350, 12.0236615820, 31.8842053790]],
[[10.7366900350, 12.0236615820, 31.8842053790], [13.6864575957, 11.0160343940, 31.8842053790]],
[[13.6864575957, 11.0160343940, 31.8842053790], [16.6891118443, 10.4218278437, 31.8842053790]],
[[16.6891118443, 10.4218278437, 31.8842053790], [19.6631339357, 10.2296172501, 31.8842053790]],
[[19.6631339357, 10.2296172501, 31.8842053790], [43.4545546534, 10.2296172501, 31.8842053790]],
[[43.4545546534, 0.0000000000, -31.8842053790], [43.4545546534, 10.2296172501, -31.8842053790]],
[[43.4545546534, 10.2296172501, -31.8842053790], [19.6631339357, 10.2296172501, -31.8842053790]],
[[19.6631339357, 10.2296172501, -31.8842053790], [16.6891118443, 10.4218278437, -31.8842053790]],
[[16.6891118443, 10.4218278437, -31.8842053790], [13.6864575957, 11.0160343940, -31.8842053790]],
[[13.6864575957, 11.0160343940, -31.8842053790], [10.7366900350, 12.0236615820, -31.8842053790]],
[[10.7366900350, 12.0236615820, -31.8842053790], [7.9244465592, 13.4338821989, -31.8842053790]],
[[7.9244465592, 13.4338821989, -31.8842053790], [5.3298535161, 15.2130737277, -31.8842053790]],
[[5.3298535161, 15.2130737277, -31.8842053790], [3.0210967370, 17.3073715449, -31.8842053790]],
[[3.0210967370, 17.3073715449, -31.8842053790], [1.0485931425, 19.6479363338, -31.8842053790]],
[[1.0485931425, 19.6479363338, -31.8842053790], [-0.5582242261, 22.1578945519, -31.8842053790]],
[[-0.5582242261, 22.1578945519, -31.8842053790], [-17.1479519556, 52.1747607656, -31.8842053790]],
[[-17.1479519556, 52.1747607656, -31.8842053790], [-26.1011535580, 47.2265034813, -31.8842053790]],
[[-26.1011535580, 47.2265034813, -31.8842053790], [0.0000000000, 0.0000000000, -31.8842053790]],
[[0.0000000000, 0.0000000000, -31.8842053790], [43.4545546534, 0.0000000000, -31.8842053790]],
[[-17.1479519556, 52.1747607656, 31.8842053790], [-26.1011535580, 47.2265034813, 31.8842053790]],
[[-26.1011535580, 47.2265034813, 31.8842053790], [-26.1011535580, 47.2265034813, -31.8842053790]],
[[-26.1011535580, 47.2265034813, -31.8842053790], [-17.1479519556, 52.1747607656, -31.8842053790]],
[[-17.1479519556, 52.1747607656, -31.8842053790], [-17.1479519556, 52.1747607656, 31.8842053790]],
[[-7.1615211357, 34.1056662776, 5.1148086251], [-0.5582242261, 22.1578945519, 5.1148086251]],
[[-0.5582242261, 22.1578945519, 5.1148086251], [-0.5582242261, 22.1578945519, 31.8842053790]],
[[-0.5582242261, 22.1578945519, 31.8842053790], [-17.1479519556, 52.1747607656, 31.8842053790]],
[[-17.1479519556, 52.1747607656, 31.8842053790], [-17.1479519556, 52.1747607656, -31.8842053790]],
[[-17.1479519556, 52.1747607656, -31.8842053790], [-0.5582242261, 22.1578945519, -31.8842053790]],
[[-0.5582242261, 22.1578945519, -31.8842053790], [-0.5582242261, 22.1578945519, -5.1148086251]],
[[-0.5582242261, 22.1578945519, -5.1148086251], [-7.1615211357, 34.1056662776, -5.1148086251]],
[[-7.1615211357, 34.1056662776, -5.1148086251], [-7.1615211357, 34.1056662776, 5.1148086251]],
[[-14.0894173291, 46.6407564594, -17.6280952830], [-13.8840821158, 46.2692301915, -15.4026309449]],
[[-13.8840821158, 46.2692301915, -15.4026309449], [-13.2328465227, 45.0909075579, -13.3529973696]],
[[-13.2328465227, 45.0909075579, -13.3529973696], [-12.2414004089, 43.2970200485, -12.0066868457]],
[[-12.2414004089, 43.2970200485, -12.0066868457], [-11.1649016648, 41.3492413202, -11.5821938333]],
[[-11.1649016648, 41.3492413202, -11.5821938333], [-10.0884029207, 39.4014625919, -12.0066868457]],
[[-10.0884029207, 39.4014625919, -12.0066868457], [-9.0969568069, 37.6075750825, -13.3529973696]],
[[-9.0969568069, 37.6075750825, -13.3529973696], [-8.4457212138, 36.4292524489, -15.4026309449]],
[[-8.4457212138, 36.4292524489, -15.4026309449], [-8.2403860005, 36.0577261810, -17.6280952830]],
[[-8.2403860005, 36.0577261810, -17.6280952830], [-8.4457212138, 36.4292524489, -19.8535596212]],
[[-8.4457212138, 36.4292524489, -19.8535596212], [-9.0969568069, 37.6075750825, -21.9031931965]],
[[-9.0969568069, 37.6075750825, -21.9031931965], [-10.0884029207, 39.4014625919, -23.2495037203]],
[[-10.0884029207, 39.4014625919, -23.2495037203], [-11.1649016648, 41.3492413202, -23.6739967327]],
[[-11.1649016648, 41.3492413202, -23.6739967327], [-12.2414004089, 43.2970200485, -23.2495037203]],
[[-12.2414004089, 43.2970200485, -23.2495037203], [-13.2328465227, 45.0909075579, -21.9031931965]],
[[-13.2328465227, 45.0909075579, -21.9031931965], [-13.8840821158, 46.2692301915, -19.8535596212]],
[[-13.8840821158, 46.2692301915, -19.8535596212], [-14.0894173291, 46.6407564594, -17.6280952830]],
[[-14.0894173291, 46.6407564594, 17.6280952830], [-13.8840821158, 46.2692301915, 19.8535596212]],
[[-13.8840821158, 46.2692301915, 19.8535596212], [-13.2328465227, 45.0909075579, 21.9031931965]],
[[-13.2328465227, 45.0909075579, 21.9031931965], [-12.2414004089, 43.2970200485, 23.2495037203]],
[[-12.2414004089, 43.2970200485, 23.2495037203], [-11.1649016648, 41.3492413202, 23.6739967327]],
[[-11.1649016648, 41.3492413202, 23.6739967327], [-10.0884029207, 39.4014625919, 23.2495037203]],
[[-10.0884029207, 39.4014625919, 23.2495037203], [-9.0969568069, 37.6075750825, 21.9031931965]],
[[-9.0969568069, 37.6075750825, 21.9031931965], [-8.4457212138, 36.4292524489, 19.8535596212]],
[[-8.4457212138, 36.4292524489, 19.8535596212], [-8.2403860005, 36.0577261810, 17.6280952830]],
[[-8.2403860005, 36.0577261810, 17.6280952830], [-8.4457212138, 36.4292524489, 15.4026309449]],
[[-8.4457212138, 36.4292524489, 15.4026309449], [-9.0969568069, 37.6075750825, 13.3529973696]],
[[-9.0969568069, 37.6075750825, 13.3529973696], [-10.0884029207, 39.4014625919, 12.0066868457]],
[[-10.0884029207, 39.4014625919, 12.0066868457], [-11.1649016648, 41.3492413202, 11.5821938333]],
[[-11.1649016648, 41.3492413202, 11.5821938333], [-12.2414004089, 43.2970200485, 12.0066868457]],
[[-12.2414004089, 43.2970200485, 12.0066868457], [-13.2328465227, 45.0909075579, 13.3529973696]],
[[-13.2328465227, 45.0909075579, 13.3529973696], [-13.8840821158, 46.2692301915, 15.4026309449]],
[[-13.8840821158, 46.2692301915, 15.4026309449], [-14.0894173291, 46.6407564594, 17.6280952830]],
[[19.6631339357, 10.2296172501, -5.1148086251], [16.6891118443, 10.4218278437, -5.1148086251]],
[[16.6891118443, 10.4218278437, -5.1148086251], [13.6864575957, 11.0160343940, -5.1148086251]],
[[13.6864575957, 11.0160343940, -5.1148086251], [10.7366900350, 12.0236615820, -5.1148086251]],
[[10.7366900350, 12.0236615820, -5.1148086251], [7.9244465592, 13.4338821989, -5.1148086251]],
[[7.9244465592, 13.4338821989, -5.1148086251], [5.3298535161, 15.2130737277, -5.1148086251]],
[[5.3298535161, 15.2130737277, -5.1148086251], [3.0210967370, 17.3073715449, -5.1148086251]],
[[3.0210967370, 17.3073715449, -5.1148086251], [1.0485931425, 19.6479363338, -5.1148086251]],
[[1.0485931425, 19.6479363338, -5.1148086251], [-0.5582242261, 22.1578945519, -5.1148086251]],
[[-0.5582242261, 22.1578945519, -5.1148086251], [-0.5582242261, 22.1578945519, -31.8842053790]],
[[-0.5582242261, 22.1578945519, -31.8842053790], [1.0485931425, 19.6479363338, -31.8842053790]],
[[1.0485931425, 19.6479363338, -31.8842053790], [3.0210967370, 17.3073715449, -31.8842053790]],
[[3.0210967370, 17.3073715449, -31.8842053790], [5.3298535161, 15.2130737277, -31.8842053790]],
[[5.3298535161, 15.2130737277, -31.8842053790], [7.9244465592, 13.4338821989, -31.8842053790]],
[[7.9244465592, 13.4338821989, -31.8842053790], [10.7366900350, 12.0236615820, -31.8842053790]],
[[10.7366900350, 12.0236615820, -31.8842053790], [13.6864575957, 11.0160343940, -31.8842053790]],
[[13.6864575957, 11.0160343940, -31.8842053790], [16.6891118443, 10.4218278437, -31.8842053790]],
[[16.6891118443, 10.4218278437, -31.8842053790], [19.6631339357, 10.2296172501, -31.8842053790]],
[[19.6631339357, 10.2296172501, -31.8842053790], [19.6631339357, 10.2296172501, -5.1148086251]],
[[-0.5582242261, 22.1578945519, 5.1148086251], [1.0485931425, 19.6479363338, 5.1148086251]],
[[1.0485931425, 19.6479363338, 5.1148086251], [3.0210967370, 17.3073715449, 5.1148086251]],
[[3.0210967370, 17.3073715449, 5.1148086251], [5.3298535161, 15.2130737277, 5.1148086251]],
[[5.3298535161, 15.2130737277, 5.1148086251], [7.9244465592, 13.4338821989, 5.1148086251]],
[[7.9244465592, 13.4338821989, 5.1148086251], [10.7366900350, 12.0236615820, 5.1148086251]],
[[10.7366900350, 12.0236615820, 5.1148086251], [13.6864575957, 11.0160343940, 5.1148086251]],
[[13.6864575957, 11.0160343940, 5.1148086251], [16.6891118443, 10.4218278437, 5.1148086251]],
[[16.6891118443, 10.4218278437, 5.1148086251], [19.6631339357, 10.2296172501, 5.1148086251]],
[[19.6631339357, 10.2296172501, 5.1148086251], [19.6631339357, 10.2296172501, 31.8842053790]],
[[19.6631339357, 10.2296172501, 31.8842053790], [16.6891118443, 10.4218278437, 31.8842053790]],
[[16.6891118443, 10.4218278437, 31.8842053790], [13.6864575957, 11.0160343940, 31.8842053790]],
[[13.6864575957, 11.0160343940, 31.8842053790], [10.7366900350, 12.0236615820, 31.8842053790]],
[[10.7366900350, 12.0236615820, 31.8842053790], [7.9244465592, 13.4338821989, 31.8842053790]],
[[7.9244465592, 13.4338821989, 31.8842053790], [5.3298535161, 15.2130737277, 31.8842053790]],
[[5.3298535161, 15.2130737277, 31.8842053790], [3.0210967370, 17.3073715449, 31.8842053790]],
[[3.0210967370, 17.3073715449, 31.8842053790], [1.0485931425, 19.6479363338, 31.8842053790]],
[[1.0485931425, 19.6479363338, 31.8842053790], [-0.5582242261, 22.1578945519, 31.8842053790]],
[[-0.5582242261, 22.1578945519, 31.8842053790], [-0.5582242261, 22.1578945519, 5.1148086251]],
[[33.3142430221, 10.2296172501, -5.1148086251], [19.6631339357, 10.2296172501, -5.1148086251]],
[[19.6631339357, 10.2296172501, -5.1148086251], [19.6631339357, 10.2296172501, -31.8842053790]],
[[19.6631339357, 10.2296172501, -31.8842053790], [43.4545546534, 10.2296172501, -31.8842053790]],
[[43.4545546534, 10.2296172501, -31.8842053790], [43.4545546534, 10.2296172501, 31.8842053790]],
[[43.4545546534, 10.2296172501, 31.8842053790], [19.6631339357, 10.2296172501, 31.8842053790]],
[[19.6631339357, 10.2296172501, 31.8842053790], [19.6631339357, 10.2296172501, 5.1148086251]],
[[19.6631339357, 10.2296172501, 5.1148086251], [33.3142430221, 10.2296172501, 5.1148086251]],
[[33.3142430220, 10.2296172501, 5.1148086251], [33.3142430220, 10.2296172501, -5.1148086251]],
[[43.4545546534, 0.0000000000, 31.8842053790], [43.4545546534, 10.2296172501, 31.8842053790]],
[[43.4545546534, 10.2296172501, 31.8842053790], [43.4545546534, 10.2296172501, -31.8842053790]],
[[43.4545546534, 10.2296172501, -31.8842053790], [43.4545546534, 0.0000000000, -31.8842053790]],
[[43.4545546534, 0.0000000000, -31.8842053790], [43.4545546534, 0.0000000000, 31.8842053790]],
[[0.0000000000, 0.0000000000, 31.8842053790], [43.4545546534, 0.0000000000, 31.8842053790]],
[[43.4545546534, 0.0000000000, 31.8842053790], [43.4545546534, 0.0000000000, -31.8842053790]],
[[43.4545546534, 0.0000000000, -31.8842053790], [0.0000000000, 0.0000000000, -31.8842053790]],
[[0.0000000000, 0.0000000000, -31.8842053790], [0.0000000000, 0.0000000000, 31.8842053790]],
[[-26.1011535580, 47.2265034813, 31.8842053790], [0.0000000000, 0.0000000000, 31.8842053790]],
[[0.0000000000, 0.0000000000, 31.8842053790], [0.0000000000, 0.0000000000, -31.8842053790]],
[[0.0000000000, 0.0000000000, -31.8842053790], [-26.1011535580, 47.2265034813, -31.8842053790]],
[[-26.1011535580, 47.2265034813, -31.8842053790], [-26.1011535580, 47.2265034813, 31.8842053790]],
[[-20.1181032672, 36.4009840360, -11.5821938333], [-21.1946020113, 38.3487627643, -12.0066868457]],
[[-21.1946020113, 38.3487627643, -12.0066868457], [-22.1860481251, 40.1426502737, -13.3529973696]],
[[-22.1860481251, 40.1426502737, -13.3529973696], [-22.8372837182, 41.3209729073, -15.4026309449]],
[[-22.8372837182, 41.3209729073, -15.4026309449], [-23.0426189315, 41.6924991752, -17.6280952830]],
[[-23.0426189315, 41.6924991752, -17.6280952830], [-22.8372837182, 41.3209729073, -19.8535596212]],
[[-22.8372837182, 41.3209729073, -19.8535596212], [-22.1860481251, 40.1426502737, -21.9031931965]],
[[-22.1860481251, 40.1426502737, -21.9031931965], [-21.1946020113, 38.3487627643, -23.2495037203]],
[[-21.1946020113, 38.3487627643, -23.2495037203], [-20.1181032672, 36.4009840360, -23.6739967327]],
[[-20.1181032672, 36.4009840360, -23.6739967327], [-19.0416045231, 34.4532053077, -23.2495037203]],
[[-19.0416045231, 34.4532053077, -23.2495037203], [-18.0501584093, 32.6593177983, -21.9031931965]],
[[-18.0501584093, 32.6593177983, -21.9031931965], [-17.3989228162, 31.4809951647, -19.8535596212]],
[[-17.3989228162, 31.4809951647, -19.8535596212], [-17.1935876029, 31.1094688968, -17.6280952830]],
[[-17.1935876029, 31.1094688968, -17.6280952830], [-17.3989228162, 31.4809951647, -15.4026309449]],
[[-17.3989228162, 31.4809951647, -15.4026309449], [-18.0501584093, 32.6593177983, -13.3529973696]],
[[-18.0501584093, 32.6593177983, -13.3529973696], [-19.0416045231, 34.4532053077, -12.0066868457]],
[[-19.0416045231, 34.4532053077, -12.0066868457], [-20.1181032672, 36.4009840360, -11.5821938333]],
[[-20.1181032672, 36.4009840360, 23.6739967327], [-21.1946020113, 38.3487627643, 23.2495037203]],
[[-21.1946020113, 38.3487627643, 23.2495037203], [-22.1860481251, 40.1426502737, 21.9031931965]],
[[-22.1860481251, 40.1426502737, 21.9031931965], [-22.8372837182, 41.3209729073, 19.8535596212]],
[[-22.8372837182, 41.3209729073, 19.8535596212], [-23.0426189315, 41.6924991752, 17.6280952830]],
[[-23.0426189315, 41.6924991752, 17.6280952830], [-22.8372837182, 41.3209729073, 15.4026309449]],
[[-22.8372837182, 41.3209729073, 15.4026309449], [-22.1860481251, 40.1426502737, 13.3529973696]],
[[-22.1860481251, 40.1426502737, 13.3529973696], [-21.1946020113, 38.3487627643, 12.0066868457]],
[[-21.1946020113, 38.3487627643, 12.0066868457], [-20.1181032672, 36.4009840360, 11.5821938333]],
[[-20.1181032672, 36.4009840360, 11.5821938333], [-19.0416045231, 34.4532053077, 12.0066868457]],
[[-19.0416045231, 34.4532053077, 12.0066868457], [-18.0501584093, 32.6593177983, 13.3529973696]],
[[-18.0501584093, 32.6593177983, 13.3529973696], [-17.3989228162, 31.4809951647, 15.4026309449]],
[[-17.3989228162, 31.4809951647, 15.4026309449], [-17.1935876029, 31.1094688968, 17.6280952830]],
[[-17.1935876029, 31.1094688968, 17.6280952830], [-17.3989228162, 31.4809951647, 19.8535596212]],
[[-17.3989228162, 31.4809951647, 19.8535596212], [-18.0501584093, 32.6593177983, 21.9031931965]],
[[-18.0501584093, 32.6593177983, 21.9031931965], [-19.0416045231, 34.4532053077, 23.2495037203]],
[[-19.0416045231, 34.4532053077, 23.2495037203], [-20.1181032672, 36.4009840360, 23.6739967327]],
[[-0.5582242261, 22.1578945519, -5.1148086251], [1.0485931425, 19.6479363338, -5.1148086251]],
[[1.0485931425, 19.6479363338, -5.1148086251], [3.0210967370, 17.3073715449, -5.1148086251]],
[[3.0210967370, 17.3073715449, -5.1148086251], [5.3298535161, 15.2130737277, -5.1148086251]],
[[5.3298535161, 15.2130737277, -5.1148086251], [7.9244465592, 13.4338821989, -5.1148086251]],
[[7.9244465592, 13.4338821989, -5.1148086251], [10.7366900350, 12.0236615820, -5.1148086251]],
[[10.7366900350, 12.0236615820, -5.1148086251], [13.6864575957, 11.0160343940, -5.1148086251]],
[[13.6864575957, 11.0160343940, -5.1148086251], [16.6891118443, 10.4218278437, -5.1148086251]],
[[16.6891118443, 10.4218278437, -5.1148086251], [19.6631339357, 10.2296172501, -5.1148086251]],
[[19.6631339357, 10.2296172501, -5.1148086251], [33.3142430220, 10.2296172501, -5.1148086251]],
[[33.3142430220, 10.2296172501, -5.1148086251], [-7.1615211357, 34.1056662776, -5.1148086251]],
[[-7.1615211357, 34.1056662776, -5.1148086251], [-0.5582242261, 22.1578945519, -5.1148086251]],
[[19.6631339357, 10.2296172501, 5.1148086251], [16.6891118443, 10.4218278437, 5.1148086251]],
[[16.6891118443, 10.4218278437, 5.1148086251], [13.6864575957, 11.0160343940, 5.1148086251]],
[[13.6864575957, 11.0160343940, 5.1148086251], [10.7366900350, 12.0236615820, 5.1148086251]],
[[10.7366900350, 12.0236615820, 5.1148086251], [7.9244465592, 13.4338821989, 5.1148086251]],
[[7.9244465592, 13.4338821989, 5.1148086251], [5.3298535161, 15.2130737277, 5.1148086251]],
[[5.3298535161, 15.2130737277, 5.1148086251], [3.0210967370, 17.3073715449, 5.1148086251]],
[[3.0210967370, 17.3073715449, 5.1148086251], [1.0485931425, 19.6479363338, 5.1148086251]],
[[1.0485931425, 19.6479363338, 5.1148086251], [-0.5582242261, 22.1578945519, 5.1148086251]],
[[-0.5582242261, 22.1578945519, 5.1148086251], [-7.1615211357, 34.1056662776, 5.1148086251]],
[[-7.1615211357, 34.1056662776, 5.1148086251], [33.3142430220, 10.2296172501, 5.1148086251]],
[[33.3142430220, 10.2296172501, 5.1148086251], [19.6631339357, 10.2296172501, 5.1148086251]],
[[33.3142430220, 10.2296172501, 5.1148086251], [-7.1615211357, 34.1056662776, 5.1148086251]],
[[-7.1615211357, 34.1056662776, 5.1148086251], [-7.1615211357, 34.1056662776, -5.1148086251]],
[[-7.1615211357, 34.1056662776, -5.1148086251], [33.3142430220, 10.2296172501, -5.1148086251]],
[[33.3142430220, 10.2296172501, -5.1148086251], [33.3142430220, 10.2296172501, 5.1148086251]],
[[-20.1181032672, 36.4009840360, -11.5821938333], [-19.0416045231, 34.4532053077, -12.0066868457]],
[[-19.0416045231, 34.4532053077, -12.0066868457], [-18.0501584093, 32.6593177983, -13.3529973696]],
[[-18.0501584093, 32.6593177983, -13.3529973696], [-17.3989228162, 31.4809951647, -15.4026309449]],
[[-17.3989228162, 31.4809951647, -15.4026309449], [-17.1935876029, 31.1094688968, -17.6280952830]],
[[-8.2403860005, 36.0577261810, -17.6280952830], [-8.4457212138, 36.4292524489, -15.4026309449]],
[[-8.4457212138, 36.4292524489, -15.4026309449], [-9.0969568069, 37.6075750825, -13.3529973696]],
[[-9.0969568069, 37.6075750825, -13.3529973696], [-10.0884029207, 39.4014625919, -12.0066868457]],
[[-10.0884029207, 39.4014625919, -12.0066868457], [-11.1649016648, 41.3492413202, -11.5821938333]],
[[-17.1935876029, 31.1094688968, -17.6280952830], [-8.2403860005, 36.0577261810, -17.6280952830]],
[[-11.1649016648, 41.3492413202, -11.5821938333], [-20.1181032672, 36.4009840360, -11.5821938333]],
[[-17.1935876029, 31.1094688968, -17.6280952830], [-17.3989228162, 31.4809951647, -19.8535596212]],
[[-17.3989228162, 31.4809951647, -19.8535596212], [-18.0501584093, 32.6593177983, -21.9031931965]],
[[-18.0501584093, 32.6593177983, -21.9031931965], [-19.0416045231, 34.4532053077, -23.2495037203]],
[[-19.0416045231, 34.4532053077, -23.2495037203], [-20.1181032672, 36.4009840360, -23.6739967327]],
[[-11.1649016648, 41.3492413202, -23.6739967327], [-10.0884029207, 39.4014625919, -23.2495037203]],
[[-10.0884029207, 39.4014625919, -23.2495037203], [-9.0969568069, 37.6075750825, -21.9031931965]],
[[-9.0969568069, 37.6075750825, -21.9031931965], [-8.4457212138, 36.4292524489, -19.8535596212]],
[[-8.4457212138, 36.4292524489, -19.8535596212], [-8.2403860005, 36.0577261810, -17.6280952830]],
[[-20.1181032672, 36.4009840360, -23.6739967327], [-11.1649016648, 41.3492413202, -23.6739967327]],
[[-8.2403860005, 36.0577261810, -17.6280952830], [-17.1935876029, 31.1094688968, -17.6280952830]],
[[-20.1181032672, 36.4009840360, -23.6739967327], [-21.1946020113, 38.3487627643, -23.2495037203]],
[[-21.1946020113, 38.3487627643, -23.2495037203], [-22.1860481251, 40.1426502737, -21.9031931965]],
[[-22.1860481251, 40.1426502737, -21.9031931965], [-22.8372837182, 41.3209729073, -19.8535596212]],
[[-22.8372837182, 41.3209729073, -19.8535596212], [-23.0426189315, 41.6924991752, -17.6280952830]],
[[-14.0894173291, 46.6407564594, -17.6280952830], [-13.8840821158, 46.2692301915, -19.8535596212]],
[[-13.8840821158, 46.2692301915, -19.8535596212], [-13.2328465227, 45.0909075579, -21.9031931965]],
[[-13.2328465227, 45.0909075579, -21.9031931965], [-12.2414004089, 43.2970200485, -23.2495037203]],
[[-12.2414004089, 43.2970200485, -23.2495037203], [-11.1649016648, 41.3492413202, -23.6739967327]],
[[-23.0426189315, 41.6924991752, -17.6280952830], [-14.0894173291, 46.6407564594, -17.6280952830]],
[[-11.1649016648, 41.3492413202, -23.6739967327], [-20.1181032672, 36.4009840360, -23.6739967327]],
[[-23.0426189315, 41.6924991752, -17.6280952830], [-22.8372837182, 41.3209729073, -15.4026309449]],
[[-22.8372837182, 41.3209729073, -15.4026309449], [-22.1860481251, 40.1426502737, -13.3529973696]],
[[-22.1860481251, 40.1426502737, -13.3529973696], [-21.1946020113, 38.3487627643, -12.0066868457]],
[[-21.1946020113, 38.3487627643, -12.0066868457], [-20.1181032672, 36.4009840360, -11.5821938333]],
[[-11.1649016648, 41.3492413202, -11.5821938333], [-12.2414004089, 43.2970200485, -12.0066868457]],
[[-12.2414004089, 43.2970200485, -12.0066868457], [-13.2328465227, 45.0909075579, -13.3529973696]],
[[-13.2328465227, 45.0909075579, -13.3529973696], [-13.8840821158, 46.2692301915, -15.4026309449]],
[[-13.8840821158, 46.2692301915, -15.4026309449], [-14.0894173291, 46.6407564594, -17.6280952830]],
[[-20.1181032672, 36.4009840360, -11.5821938333], [-11.1649016648, 41.3492413202, -11.5821938333]],
[[-14.0894173291, 46.6407564594, -17.6280952830], [-23.0426189315, 41.6924991752, -17.6280952830]],
[[-20.1181032672, 36.4009840360, 23.6739967327], [-19.0416045231, 34.4532053077, 23.2495037203]],
[[-19.0416045231, 34.4532053077, 23.2495037203], [-18.0501584093, 32.6593177983, 21.9031931965]],
[[-18.0501584093, 32.6593177983, 21.9031931965], [-17.3989228162, 31.4809951647, 19.8535596212]],
[[-17.3989228162, 31.4809951647, 19.8535596212], [-17.1935876029, 31.1094688968, 17.6280952830]],
[[-8.2403860005, 36.0577261810, 17.6280952830], [-8.4457212138, 36.4292524489, 19.8535596212]],
[[-8.4457212138, 36.4292524489, 19.8535596212], [-9.0969568069, 37.6075750825, 21.9031931965]],
[[-9.0969568069, 37.6075750825, 21.9031931965], [-10.0884029207, 39.4014625919, 23.2495037203]],
[[-10.0884029207, 39.4014625919, 23.2495037203], [-11.1649016648, 41.3492413202, 23.6739967327]],
[[-17.1935876029, 31.1094688968, 17.6280952830], [-8.2403860005, 36.0577261810, 17.6280952830]],
[[-11.1649016648, 41.3492413202, 23.6739967327], [-20.1181032672, 36.4009840360, 23.6739967327]],
[[-17.1935876029, 31.1094688968, 17.6280952830], [-17.3989228162, 31.4809951647, 15.4026309449]],
[[-17.3989228162, 31.4809951647, 15.4026309449], [-18.0501584093, 32.6593177983, 13.3529973696]],
[[-18.0501584093, 32.6593177983, 13.3529973696], [-19.0416045231, 34.4532053077, 12.0066868457]],
[[-19.0416045231, 34.4532053077, 12.0066868457], [-20.1181032672, 36.4009840360, 11.5821938333]],
[[-11.1649016648, 41.3492413202, 11.5821938333], [-10.0884029207, 39.4014625919, 12.0066868457]],
[[-10.0884029207, 39.4014625919, 12.0066868457], [-9.0969568069, 37.6075750825, 13.3529973696]],
[[-9.0969568069, 37.6075750825, 13.3529973696], [-8.4457212138, 36.4292524489, 15.4026309449]],
[[-8.4457212138, 36.4292524489, 15.4026309449], [-8.2403860005, 36.0577261810, 17.6280952830]],
[[-20.1181032672, 36.4009840360, 11.5821938333], [-11.1649016648, 41.3492413202, 11.5821938333]],
[[-8.2403860005, 36.0577261810, 17.6280952830], [-17.1935876029, 31.1094688968, 17.6280952830]],
[[-20.1181032672, 36.4009840360, 11.5821938333], [-21.1946020113, 38.3487627643, 12.0066868457]],
[[-21.1946020113, 38.3487627643, 12.0066868457], [-22.1860481251, 40.1426502737, 13.3529973696]],
[[-22.1860481251, 40.1426502737, 13.3529973696], [-22.8372837182, 41.3209729073, 15.4026309449]],
[[-22.8372837182, 41.3209729073, 15.4026309449], [-23.0426189315, 41.6924991752, 17.6280952830]],
[[-14.0894173291, 46.6407564594, 17.6280952830], [-13.8840821158, 46.2692301915, 15.4026309449]],
[[-13.8840821158, 46.2692301915, 15.4026309449], [-13.2328465227, 45.0909075579, 13.3529973696]],
[[-13.2328465227, 45.0909075579, 13.3529973696], [-12.2414004089, 43.2970200485, 12.0066868457]],
[[-12.2414004089, 43.2970200485, 12.0066868457], [-11.1649016648, 41.3492413202, 11.5821938333]],
[[-23.0426189315, 41.6924991752, 17.6280952830], [-14.0894173291, 46.6407564594, 17.6280952830]],
[[-11.1649016648, 41.3492413202, 11.5821938333], [-20.1181032672, 36.4009840360, 11.5821938333]],
[[-23.0426189315, 41.6924991752, 17.6280952830], [-22.8372837182, 41.3209729073, 19.8535596212]],
[[-22.8372837182, 41.3209729073, 19.8535596212], [-22.1860481251, 40.1426502737, 21.9031931965]],
[[-22.1860481251, 40.1426502737, 21.9031931965], [-21.1946020113, 38.3487627643, 23.2495037203]],
[[-21.1946020113, 38.3487627643, 23.2495037203], [-20.1181032672, 36.4009840360, 23.6739967327]],
[[-11.1649016648, 41.3492413202, 23.6739967327], [-12.2414004089, 43.2970200485, 23.2495037203]],
[[-12.2414004089, 43.2970200485, 23.2495037203], [-13.2328465227, 45.0909075579, 21.9031931965]],
[[-13.2328465227, 45.0909075579, 21.9031931965], [-13.8840821158, 46.2692301915, 19.8535596212]],
[[-13.8840821158, 46.2692301915, 19.8535596212], [-14.0894173291, 46.6407564594, 17.6280952830]],
[[-20.1181032672, 36.4009840360, 23.6739967327], [-11.1649016648, 41.3492413202, 23.6739967327]],
[[-14.0894173291, 46.6407564594, 17.6280952830], [-23.0426189315, 41.6924991752, 17.6280952830]]]
}
solvespace = function(obj, params) {
var scene, edgeScene, camera, edgeCamera, renderer, directionalLight;
var geometry, controls, material, mesh, edges;
var width, height, edgeBias;
if(typeof params === "undefined" || !("width" in params)) {
width = window.innerWidth;
}else {
width = params.width;
}
if(typeof params === "undefined" || !("height" in params)) {
height = window.innerHeight;
}else {
height = params.height;
}
edgeBias = obj.bounds.edgeBias;
domElement = init();
render();
return domElement;
function init() {
scene = new THREE.Scene();
edgeScene = new THREE.Scene();
var ratio = (width/height);
camera = new THREE.OrthographicCamera(-obj.bounds.x * ratio,
obj.bounds.x * ratio, obj.bounds.y, -obj.bounds.y, obj.bounds.near,
obj.bounds.far);
camera.position.z = obj.bounds.z;
mesh = createMesh(obj);
scene.add(mesh);
edges = createEdges(obj);
edgeScene.add(edges);
directionalLight = new THREE.DirectionalLight(0xffffff, 1);
directionalLight.position.set(0, 0, 1);
scene.add(directionalLight);
var ambientLight = new THREE.AmbientLight(0x444444);
scene.add(ambientLight);
renderer = new THREE.WebGLRenderer();
renderer.setSize(width, height);
renderer.autoClear = false;
controls = new THREE.OrthographicTrackballControls(camera, renderer.domElement);
controls.screen.width = width;
controls.screen.height = height;
controls.radius = (width + height)/4;
controls.rotateSpeed = 1.0;
controls.zoomSpeed = 1.2;
controls.panSpeed = 0.8;
controls.staticMoving = true;
controls.addEventListener("change", render);
controls.addEventListener("change", lightUpdate);
controls.addEventListener("change", setControlsCenter);
animate();
return renderer.domElement;
}
function animate() {
requestAnimationFrame( animate );
controls.update();
}
function render() {
renderer.clear();
renderer.render(scene, camera);
var farTmp = camera.far
camera.far = camera.far + edgeBias;
camera.updateProjectionMatrix();
renderer.render(edgeScene, camera);
camera.far = farTmp;
camera.updateProjectionMatrix();
}
function lightUpdate() {
directionalLight.position.copy(camera.position);
}
function setControlsCenter() {
var rect = renderer.domElement.getBoundingClientRect()
controls.screen.left = rect.left + document.body.scrollLeft;
controls.screen.top = rect.top + document.body.scrollTop;
}
function createMesh(mesh_obj) {
var geometry = new THREE.Geometry();
var i;
var matIndex = 0;
var seenOpacities = {};
var materialsList = [];
for(i = 0; i < mesh_obj.points.length; i++) {
geometry.vertices.push(new THREE.Vector3(mesh_obj.points[i][0],
mesh_obj.points[i][1], mesh_obj.points[i][2]));
}
for(i = 0; i < mesh_obj.faces.length; i++) {
var currOpacity = mesh_obj.colors[i][1]
if(seenOpacities[currOpacity] === undefined) {
seenOpacities[currOpacity] = matIndex;
matIndex++;
materialsList.push(new THREE.MeshLambertMaterial(
{vertexColors : THREE.FaceColors, opacity : currOpacity,
transparent : true}));
}
geometry.faces.push(new THREE.Face3(mesh_obj.faces[i][0],
mesh_obj.faces[i][1], mesh_obj.faces[i][2],
new THREE.Vector3(mesh_obj.normals[i][0],
mesh_obj.normals[i][1], mesh_obj.normals[i][2]),
new THREE.Color(mesh_obj.colors[i][0]),
seenOpacities[currOpacity]));
}
geometry.computeBoundingSphere();
return new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materialsList));
}
function createEdges(mesh_obj) {
var geometry = new THREE.Geometry();
var material = new THREE.LineBasicMaterial();
var i;
for(i = 0; i < mesh_obj.edges.length; i++) {
geometry.vertices.push(new THREE.Vector3(mesh_obj.edges[i][0][0],
mesh_obj.edges[i][0][1], mesh_obj.edges[i][0][2]),
new THREE.Vector3(mesh_obj.edges[i][1][0],
mesh_obj.edges[i][1][1], mesh_obj.edges[i][1][2]));
}
return new THREE.Line(geometry, material, THREE.LinePieces);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment