From 9f08a82c0c2cf49515a2823480767db29005a4b1 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Fri, 1 Sep 2023 18:04:19 +1000 Subject: [PATCH] Rearranging things a bit before publishing --- dodecahedra.js | 1683 +----------------------------------------------- polytopes.js | 43 +- testbed.js | 104 +-- 3 files changed, 70 insertions(+), 1760 deletions(-) diff --git a/dodecahedra.js b/dodecahedra.js index 3226c3d..4941d09 100644 --- a/dodecahedra.js +++ b/dodecahedra.js @@ -1,1682 +1 @@ -export const DODECAHEDRA = [ - [ - 1, - 4, - 2, - 145, - 626, - 169, - 173, - 553, - 149, - 147, - 171, - 554 - ], - [ - 1, - 5, - 3, - 193, - 641, - 217, - 221, - 565, - 197, - 195, - 219, - 566 - ], - [ - 2, - 6, - 3, - 529, - 244, - 242, - 649, - 290, - 292, - 530, - 241, - 289 - ], - [ - 4, - 6, - 5, - 541, - 268, - 266, - 659, - 314, - 316, - 542, - 265, - 313 - ], - [ - 7, - 10, - 8, - 151, - 629, - 175, - 179, - 556, - 155, - 153, - 177, - 557 - ], - [ - 7, - 11, - 9, - 199, - 643, - 223, - 227, - 568, - 203, - 201, - 225, - 569 - ], - [ - 8, - 12, - 9, - 532, - 250, - 248, - 652, - 296, - 298, - 533, - 247, - 295 - ], - [ - 10, - 12, - 11, - 544, - 274, - 272, - 661, - 320, - 322, - 545, - 271, - 319 - ], - [ - 13, - 16, - 14, - 157, - 632, - 181, - 185, - 559, - 161, - 159, - 183, - 560 - ], - [ - 13, - 17, - 15, - 205, - 645, - 229, - 233, - 571, - 209, - 207, - 231, - 572 - ], - [ - 14, - 18, - 15, - 535, - 256, - 254, - 654, - 302, - 304, - 536, - 253, - 301 - ], - [ - 16, - 18, - 17, - 547, - 280, - 278, - 662, - 326, - 328, - 548, - 277, - 325 - ], - [ - 19, - 22, - 20, - 163, - 634, - 187, - 191, - 562, - 167, - 165, - 189, - 563 - ], - [ - 19, - 23, - 21, - 211, - 646, - 235, - 239, - 574, - 215, - 213, - 237, - 575 - ], - [ - 20, - 24, - 21, - 538, - 262, - 260, - 657, - 308, - 310, - 539, - 259, - 307 - ], - [ - 22, - 24, - 23, - 550, - 286, - 284, - 664, - 332, - 334, - 551, - 283, - 331 - ], - [ - 25, - 28, - 26, - 146, - 625, - 194, - 196, - 531, - 148, - 145, - 193, - 529 - ], - [ - 25, - 29, - 27, - 158, - 631, - 206, - 208, - 537, - 160, - 157, - 205, - 535 - ], - [ - 26, - 30, - 27, - 577, - 341, - 337, - 674, - 349, - 353, - 578, - 339, - 351 - ], - [ - 28, - 30, - 29, - 589, - 389, - 385, - 689, - 397, - 401, - 590, - 387, - 399 - ], - [ - 31, - 34, - 32, - 152, - 628, - 200, - 202, - 534, - 154, - 151, - 199, - 532 - ], - [ - 31, - 35, - 33, - 164, - 633, - 212, - 214, - 540, - 166, - 163, - 211, - 538 - ], - [ - 32, - 36, - 33, - 580, - 347, - 343, - 677, - 355, - 359, - 581, - 345, - 357 - ], - [ - 34, - 36, - 35, - 592, - 395, - 391, - 691, - 403, - 407, - 593, - 393, - 405 - ], - [ - 37, - 40, - 38, - 170, - 635, - 218, - 220, - 543, - 172, - 169, - 217, - 541 - ], - [ - 37, - 41, - 39, - 182, - 639, - 230, - 232, - 549, - 184, - 181, - 229, - 547 - ], - [ - 38, - 42, - 39, - 583, - 365, - 361, - 682, - 373, - 377, - 584, - 363, - 375 - ], - [ - 40, - 42, - 41, - 595, - 413, - 409, - 693, - 421, - 425, - 596, - 411, - 423 - ], - [ - 43, - 46, - 44, - 176, - 637, - 224, - 226, - 546, - 178, - 175, - 223, - 544 - ], - [ - 43, - 47, - 45, - 188, - 640, - 236, - 238, - 552, - 190, - 187, - 235, - 550 - ], - [ - 44, - 48, - 45, - 586, - 371, - 367, - 685, - 379, - 383, - 587, - 369, - 381 - ], - [ - 46, - 48, - 47, - 598, - 419, - 415, - 695, - 427, - 431, - 599, - 417, - 429 - ], - [ - 49, - 52, - 50, - 241, - 651, - 247, - 251, - 601, - 245, - 243, - 249, - 602 - ], - [ - 49, - 53, - 51, - 289, - 666, - 295, - 299, - 613, - 293, - 291, - 297, - 614 - ], - [ - 50, - 54, - 51, - 530, - 340, - 338, - 673, - 386, - 388, - 531, - 337, - 385 - ], - [ - 52, - 54, - 53, - 533, - 346, - 344, - 676, - 392, - 394, - 534, - 343, - 391 - ], - [ - 55, - 58, - 56, - 253, - 656, - 259, - 263, - 604, - 257, - 255, - 261, - 605 - ], - [ - 55, - 59, - 57, - 301, - 669, - 307, - 311, - 616, - 305, - 303, - 309, - 617 - ], - [ - 56, - 60, - 57, - 536, - 352, - 350, - 678, - 398, - 400, - 537, - 349, - 397 - ], - [ - 58, - 60, - 59, - 539, - 358, - 356, - 680, - 404, - 406, - 540, - 355, - 403 - ], - [ - 61, - 64, - 62, - 265, - 660, - 271, - 275, - 607, - 269, - 267, - 273, - 608 - ], - [ - 61, - 65, - 63, - 313, - 671, - 319, - 323, - 619, - 317, - 315, - 321, - 620 - ], - [ - 62, - 66, - 63, - 542, - 364, - 362, - 681, - 410, - 412, - 543, - 361, - 409 - ], - [ - 64, - 66, - 65, - 545, - 370, - 368, - 684, - 416, - 418, - 546, - 367, - 415 - ], - [ - 67, - 70, - 68, - 277, - 663, - 283, - 287, - 610, - 281, - 279, - 285, - 611 - ], - [ - 67, - 71, - 69, - 325, - 672, - 331, - 335, - 622, - 329, - 327, - 333, - 623 - ], - [ - 68, - 72, - 69, - 548, - 376, - 374, - 686, - 422, - 424, - 549, - 373, - 421 - ], - [ - 70, - 72, - 71, - 551, - 382, - 380, - 688, - 428, - 430, - 552, - 379, - 427 - ], - [ - 73, - 76, - 74, - 147, - 627, - 159, - 162, - 579, - 150, - 146, - 158, - 577 - ], - [ - 73, - 77, - 75, - 171, - 636, - 183, - 186, - 585, - 174, - 170, - 182, - 583 - ], - [ - 74, - 78, - 75, - 554, - 436, - 434, - 697, - 458, - 460, - 555, - 433, - 457 - ], - [ - 76, - 78, - 77, - 560, - 448, - 446, - 702, - 470, - 472, - 561, - 445, - 469 - ], - [ - 79, - 82, - 80, - 153, - 630, - 165, - 168, - 582, - 156, - 152, - 164, - 580 - ], - [ - 79, - 83, - 81, - 177, - 638, - 189, - 192, - 588, - 180, - 176, - 188, - 586 - ], - [ - 80, - 84, - 81, - 557, - 442, - 440, - 700, - 464, - 466, - 558, - 439, - 463 - ], - [ - 82, - 84, - 83, - 563, - 454, - 452, - 704, - 476, - 478, - 564, - 451, - 475 - ], - [ - 85, - 88, - 86, - 195, - 642, - 207, - 210, - 591, - 198, - 194, - 206, - 589 - ], - [ - 85, - 89, - 87, - 219, - 647, - 231, - 234, - 597, - 222, - 218, - 230, - 595 - ], - [ - 86, - 90, - 87, - 566, - 484, - 482, - 709, - 506, - 508, - 567, - 481, - 505 - ], - [ - 88, - 90, - 89, - 572, - 496, - 494, - 714, - 518, - 520, - 573, - 493, - 517 - ], - [ - 91, - 94, - 92, - 201, - 644, - 213, - 216, - 594, - 204, - 200, - 212, - 592 - ], - [ - 91, - 95, - 93, - 225, - 648, - 237, - 240, - 600, - 228, - 224, - 236, - 598 - ], - [ - 92, - 96, - 93, - 569, - 490, - 488, - 712, - 512, - 514, - 570, - 487, - 511 - ], - [ - 94, - 96, - 95, - 575, - 502, - 500, - 716, - 524, - 526, - 576, - 499, - 523 - ], - [ - 97, - 100, - 98, - 243, - 650, - 267, - 270, - 555, - 246, - 242, - 266, - 553 - ], - [ - 97, - 101, - 99, - 249, - 653, - 273, - 276, - 558, - 252, - 248, - 272, - 556 - ], - [ - 98, - 102, - 99, - 602, - 437, - 433, - 699, - 439, - 443, - 603, - 435, - 441 - ], - [ - 100, - 102, - 101, - 608, - 461, - 457, - 706, - 463, - 467, - 609, - 459, - 465 - ], - [ - 103, - 106, - 104, - 255, - 655, - 279, - 282, - 561, - 258, - 254, - 278, - 559 - ], - [ - 103, - 107, - 105, - 261, - 658, - 285, - 288, - 564, - 264, - 260, - 284, - 562 - ], - [ - 104, - 108, - 105, - 605, - 449, - 445, - 703, - 451, - 455, - 606, - 447, - 453 - ], - [ - 106, - 108, - 107, - 611, - 473, - 469, - 708, - 475, - 479, - 612, - 471, - 477 - ], - [ - 109, - 112, - 110, - 291, - 665, - 315, - 318, - 567, - 294, - 290, - 314, - 565 - ], - [ - 109, - 113, - 111, - 297, - 667, - 321, - 324, - 570, - 300, - 296, - 320, - 568 - ], - [ - 110, - 114, - 111, - 614, - 485, - 481, - 711, - 487, - 491, - 615, - 483, - 489 - ], - [ - 112, - 114, - 113, - 620, - 509, - 505, - 718, - 511, - 515, - 621, - 507, - 513 - ], - [ - 115, - 118, - 116, - 303, - 668, - 327, - 330, - 573, - 306, - 302, - 326, - 571 - ], - [ - 115, - 119, - 117, - 309, - 670, - 333, - 336, - 576, - 312, - 308, - 332, - 574 - ], - [ - 116, - 120, - 117, - 617, - 497, - 493, - 715, - 499, - 503, - 618, - 495, - 501 - ], - [ - 118, - 120, - 119, - 623, - 521, - 517, - 720, - 523, - 527, - 624, - 519, - 525 - ], - [ - 121, - 124, - 122, - 339, - 675, - 345, - 348, - 603, - 342, - 338, - 344, - 601 - ], - [ - 121, - 125, - 123, - 351, - 679, - 357, - 360, - 606, - 354, - 350, - 356, - 604 - ], - [ - 122, - 126, - 123, - 578, - 438, - 435, - 698, - 447, - 450, - 579, - 434, - 446 - ], - [ - 124, - 126, - 125, - 581, - 444, - 441, - 701, - 453, - 456, - 582, - 440, - 452 - ], - [ - 127, - 130, - 128, - 363, - 683, - 369, - 372, - 609, - 366, - 362, - 368, - 607 - ], - [ - 127, - 131, - 129, - 375, - 687, - 381, - 384, - 612, - 378, - 374, - 380, - 610 - ], - [ - 128, - 132, - 129, - 584, - 462, - 459, - 705, - 471, - 474, - 585, - 458, - 470 - ], - [ - 130, - 132, - 131, - 587, - 468, - 465, - 707, - 477, - 480, - 588, - 464, - 476 - ], - [ - 133, - 136, - 134, - 387, - 690, - 393, - 396, - 615, - 390, - 386, - 392, - 613 - ], - [ - 133, - 137, - 135, - 399, - 692, - 405, - 408, - 618, - 402, - 398, - 404, - 616 - ], - [ - 134, - 138, - 135, - 590, - 486, - 483, - 710, - 495, - 498, - 591, - 482, - 494 - ], - [ - 136, - 138, - 137, - 593, - 492, - 489, - 713, - 501, - 504, - 594, - 488, - 500 - ], - [ - 139, - 142, - 140, - 411, - 694, - 417, - 420, - 621, - 414, - 410, - 416, - 619 - ], - [ - 139, - 143, - 141, - 423, - 696, - 429, - 432, - 624, - 426, - 422, - 428, - 622 - ], - [ - 140, - 144, - 141, - 596, - 510, - 507, - 717, - 519, - 522, - 597, - 506, - 518 - ], - [ - 142, - 144, - 143, - 599, - 516, - 513, - 719, - 525, - 528, - 600, - 512, - 524 - ], - [ - 148, - 150, - 149, - 244, - 340, - 341, - 438, - 436, - 246, - 245, - 342, - 437 - ], - [ - 154, - 156, - 155, - 250, - 346, - 347, - 444, - 442, - 252, - 251, - 348, - 443 - ], - [ - 160, - 162, - 161, - 256, - 352, - 353, - 450, - 448, - 258, - 257, - 354, - 449 - ], - [ - 166, - 168, - 167, - 262, - 358, - 359, - 456, - 454, - 264, - 263, - 360, - 455 - ], - [ - 172, - 174, - 173, - 268, - 364, - 365, - 462, - 460, - 270, - 269, - 366, - 461 - ], - [ - 178, - 180, - 179, - 274, - 370, - 371, - 468, - 466, - 276, - 275, - 372, - 467 - ], - [ - 184, - 186, - 185, - 280, - 376, - 377, - 474, - 472, - 282, - 281, - 378, - 473 - ], - [ - 190, - 192, - 191, - 286, - 382, - 383, - 480, - 478, - 288, - 287, - 384, - 479 - ], - [ - 196, - 198, - 197, - 292, - 388, - 389, - 486, - 484, - 294, - 293, - 390, - 485 - ], - [ - 202, - 204, - 203, - 298, - 394, - 395, - 492, - 490, - 300, - 299, - 396, - 491 - ], - [ - 208, - 210, - 209, - 304, - 400, - 401, - 498, - 496, - 306, - 305, - 402, - 497 - ], - [ - 214, - 216, - 215, - 310, - 406, - 407, - 504, - 502, - 312, - 311, - 408, - 503 - ], - [ - 220, - 222, - 221, - 316, - 412, - 413, - 510, - 508, - 318, - 317, - 414, - 509 - ], - [ - 226, - 228, - 227, - 322, - 418, - 419, - 516, - 514, - 324, - 323, - 420, - 515 - ], - [ - 232, - 234, - 233, - 328, - 424, - 425, - 522, - 520, - 330, - 329, - 426, - 521 - ], - [ - 238, - 240, - 239, - 334, - 430, - 431, - 528, - 526, - 336, - 335, - 432, - 527 - ], - [ - 625, - 627, - 626, - 641, - 642, - 631, - 632, - 636, - 635, - 647, - 645, - 639 - ], - [ - 628, - 630, - 629, - 643, - 644, - 633, - 634, - 638, - 637, - 648, - 646, - 640 - ], - [ - 649, - 651, - 650, - 659, - 665, - 666, - 652, - 653, - 660, - 671, - 667, - 661 - ], - [ - 654, - 656, - 655, - 662, - 668, - 669, - 657, - 658, - 663, - 672, - 670, - 664 - ], - [ - 673, - 675, - 674, - 689, - 690, - 676, - 677, - 679, - 678, - 692, - 691, - 680 - ], - [ - 681, - 683, - 682, - 693, - 694, - 684, - 685, - 687, - 686, - 696, - 695, - 688 - ], - [ - 697, - 699, - 698, - 702, - 705, - 706, - 700, - 701, - 703, - 708, - 707, - 704 - ], - [ - 709, - 711, - 710, - 714, - 717, - 718, - 712, - 713, - 715, - 720, - 719, - 716 - ] -]; \ No newline at end of file +export const DODECAHEDRA_INDEX = {"1": [ 27,38,48,49,61,68,74,87,95,98,105,120, 126,131,140,149,156,165,174,179,185,200,207,210,218,223,226,231,234,239,241,248,252,253,258,263,265,272,274,279,284,285,289,296,300,301,306,311,313,320,324,325,331,334,339,342,347,350,356,357,362,367,369,376,378,383,388,389,393,400,403,406,413,414,419,420,425,427,438,440,444,448,449,453,458,460,469,471,473,474,487,488,490,494,499,503,511,512,513,514,525,527,530,532,539,543,546,550,555,558,563,566,572,573,580,581,585,592,593,600],"2":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,28,30,31,34,35,37,40,41,44,46,47,50,51,53,56,57,60,62,63,66,67,69,72,73,76,78,79,82,83,85,88,90,91,93,96,97,100,102,103,106,107,109,112,113,116,118,119,122,123,125,128,129,132,134,135,138,139,141,144,145,148,150,151,154,155,157,160,161,164,166,167,170,171,173,176,177,180,182,183,186,187,189,192,193,196,198,199,202,203,205,208,209,212,214,215],"3":[26,39,45,52,64,65,75,86,94,99,108,117,127,130,137,152,153,168,175,178,188,197,206,211,219,222,227,230,235,238,244,245,251,254,257,264,268,269,273,280,283,286,292,293,299,302,305,312,316,317,321,328,330,335,338,343,348,349,355,358,363,366,370,375,377,384,385,392,394,399,404,405,415,416,417,418,426,428,437,439,441,445,452,456,457,459,470,472,475,476,485,486,491,495,498,502,509,510,515,516,526,528,529,531,538,542,547,551,554,559,562,567,569,576,577,584,588,589,596,597],"4":[32,33,43,54,58,71,77,84,92,101,110,115,121,136,143,146,159,162,169,184,190,195,204,213,220,221,228,229,236,237,242,247,249,256,260,261,266,271,276,277,281,288,290,295,297,304,308,309,315,318,322,327,329,336,340,341,346,351,354,359,361,368,371,374,379,382,387,390,396,397,401,408,409,410,423,424,430,432,433,435,443,447,450,454,461,463,466,468,477,478,483,484,489,493,500,504,507,508,517,518,522,524,533,535,540,544,545,549,553,560,561,568,570,575,578,583,587,590,595,598],"5":[29,36,42,55,59,70,80,81,89,104,111,114,124,133,142,147,158,163,172,181,191,194,201,216,217,224,225,232,233,240,243,246,250,255,259,262,267,270,275,278,282,287,291,294,298,303,307,310,314,319,323,326,332,333,337,344,345,352,353,360,364,365,372,373,380,381,386,391,395,398,402,407,411,412,421,422,429,431,434,436,442,446,451,455,462,464,465,467,479,480,481,482,492,496,497,501,505,506,519,520,521,523,534,536,537,541,548,552,556,557,564,565,571,574,579,582,586,591,594,599]}; diff --git a/polytopes.js b/polytopes.js index 0447503..877a869 100644 --- a/polytopes.js +++ b/polytopes.js @@ -384,47 +384,8 @@ function meridian_label_120cell(nodes) { function arctic_label_120cell(nodes) { - const ARCTIC_COLOURED = { - '1': [ - 27, 49, 61, 87, 95, 105, 131, 149, 165, - 174, 185, 210, 223, 226, 239, 241, 253, 263, - 265, 279, 285, 301, 311, 313, 325, 331, 347, - 357, 367, 369, 383, 389, 393, 406, 413, 419, - 425, 438, 449, 453, 469, 471, 473, 487, 511, - 513, 525, 530, 563, 566, 573, 581, 585, 593 - ], - '2': [ - 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 23, - 24, 25, 31, 35, 37, 41, 50, 53, 57, 67, 69, - 73, 82, 83, 85, 91, 93, 97, 103, 109, 113, 119, - 123, 125, 129, 135, 141, 145, 150, 155, 157, 161, 167, - 170, 173, 177, 182, 189, 193, 199, 209, 214, 215 - ], - '3': [ - 39, 45, 65, 86, 99, 117, 127, 137, 153, - 178, 197, 211, 219, 230, 235, 245, 251, 257, - 269, 273, 293, 312, 317, 321, 335, 343, 349, - 355, 363, 375, 385, 399, 405, 415, 417, 437, - 441, 445, 457, 475, 485, 498, 502, 509, 515, - 529, 547, 551, 562, 567, 569, 577, 589, 597 - ], - '4': [ - 33, 54, 71, 77, 101, 115, 121, 146, 159, - 169, 195, 213, 221, 229, 237, 242, 249, 261, - 271, 277, 295, 309, 315, 322, 329, 341, 351, - 359, 361, 371, 390, 397, 408, 409, 423, 433, - 443, 447, 461, 477, 483, 489, 493, 507, 517, - 533, 545, 549, 553, 561, 575, 583, 595, 598 - ], - '5': [ - 29, 81, 89, 133, 163, 181, 217, 225, 233, - 246, 255, 259, 267, 275, 287, 294, 303, 310, - 319, 326, 333, 337, 345, 353, 365, 373, 381, - 391, 395, 407, 411, 421, 429, 434, 451, 455, - 465, 467, 479, 481, 497, 501, 505, 519, 521, - 534, 537, 541, 557, 565, 571, 579, 594, 599 - ] - }; + const ARCTIC_COLOURED = {"1":[27,38,48,49,61,68,74,87,95,98,105,120,126,131,140,149,156,165,174,179,185,200,207,210,218,223,226,231,234,239,241,248,252,253,258,263,265,272,274,279,284,285,289,296,300,301,306,311,313,320,324,325,331,334,339,342,347,350,356,357,362,367,369,376,378,383,388,389,393,400,403,406,413,414,419,420,425,427,438,440,444,448,449,453,458,460,469,471,473,474,487,488,490,494,499,503,511,512,513,514,525,527,530,532,539,543,546,550,555,558,563,566,572,573,580,581,585,592,593,600],"2":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,28,30,31,34,35,37,40,41,44,46,47,50,51,53,56,57,60,62,63,66,67,69,72,73,76,78,79,82,83,85,88,90,91,93,96,97,100,102,103,106,107,109,112,113,116,118,119,122,123,125,128,129,132,134,135,138,139,141,144,145,148,150,151,154,155,157,160,161,164,166,167,170,171,173,176,177,180,182,183,186,187,189,192,193,196,198,199,202,203,205,208,209,212,214,215],"3":[26,39,45,52,64,65,75,86,94,99,108,117,127,130,137,152,153,168,175,178,188,197,206,211,219,222,227,230,235,238,244,245,251,254,257,264,268,269,273,280,283,286,292,293,299,302,305,312,316,317,321,328,330,335,338,343,348,349,355,358,363,366,370,375,377,384,385,392,394,399,404,405,415,416,417,418,426,428,437,439,441,445,452,456,457,459,470,472,475,476,485,486,491,495,498,502,509,510,515,516,526,528,529,531,538,542,547,551,554,559,562,567,569,576,577,584,588,589,596,597],"4":[32,33,43,54,58,71,77,84,92,101,110,115,121,136,143,146,159,162,169,184,190,195,204,213,220,221,228,229,236,237,242,247,249,256,260,261,266,271,276,277,281,288,290,295,297,304,308,309,315,318,322,327,329,336,340,341,346,351,354,359,361,368,371,374,379,382,387,390,396,397,401,408,409,410,423,424,430,432,433,435,443,447,450,454,461,463,466,468,477,478,483,484,489,493,500,504,507,508,517,518,522,524,533,535,540,544,545,549,553,560,561,568,570,575,578,583,587,590,595,598],"5":[29,36,42,55,59,70,80,81,89,104,111,114,124,133,142,147,158,163,172,181,191,194,201,216,217,224,225,232,233,240,243,246,250,255,259,262,267,270,275,278,282,287,291,294,298,303,307,310,314,319,323,326,332,333,337,344,345,352,353,360,364,365,372,373,380,381,386,391,395,398,402,407,411,412,421,422,429,431,434,436,442,446,451,455,462,464,465,467,479,480,481,482,492,496,497,501,505,506,519,520,521,523,534,536,537,541,548,552,556,557,564,565,571,574,579,582,586,591,594,599]}; + for( const cstr in ARCTIC_COLOURED ) { label_nodes(nodes, ARCTIC_COLOURED[cstr], Number(cstr)); diff --git a/testbed.js b/testbed.js index 4ec25f9..59e34e5 100644 --- a/testbed.js +++ b/testbed.js @@ -688,10 +688,12 @@ function arctic_two(nodes, links, faces, startf, startn) { seen[dd_fingerprint(nextdd)] = true; } - // dumb! - // top five of the temperate circle - const a1 = dds[1]; - for( const a of dds.slice(1, 12) ) { + // go around all of the arctic circle and grow all faces + + // 1, 12, 20, 12, 30 = 75 + // 0 1 13, 33, 45 + + for( const a of dds.slice(1, 13) ) { for( const i of [ 6, 7, 8, 9, 10 ] ) { const [ nextdd, ncolours ] = follow_and_colour( nodes, links, faces, colours, a, a[i] @@ -705,32 +707,63 @@ function arctic_two(nodes, links, faces, startf, startn) { } } - // // bottom five of the temperate circle - // const a12 = dds[12]; - // for( const i of [ 6, 7, 8, 9, 10 ] ) { - // const [ nextdd, ncolours ] = follow_and_colour( - // nodes, links, faces, colours, a1, a1[i] - // ); - // add_colours(colours, ncolours); - // dds.push(nextdd); - // } + // meridians = 45 - // // will be weird - // for( const dd of dds.slice(2, 12) ) { - // const [ nextdd, ncolours ] = follow_and_colour( - // nodes, links, faces, colours, dd, dd[6] - // ); - // add_colours(colours, ncolours); - // dds.push(nextdd); - // } + for( const a of dds.slice(1, 13) ) { + const [ nextdd, ncolours ] = follow_and_colour( + nodes, links, faces, colours, a, a[11] + ); + const fp = dd_fingerprint(nextdd); + if( !(fp in seen) ) { + add_colours(colours, ncolours); + dds.push(nextdd); + seen[fp] = true; + } + } - // for( const dd of dds.slice(2, 7) ) { - // const [ nextdd, ncolours ] = follow_and_colour( - // nodes, links, faces, colours, dd, dd[6] - // ); - // add_colours(colours, ncolours); - // dds.push(nextdd); - // } + // the 30 equatorials? + for( const a of dds.slice(13, 46) ) { + for( const i of [ 6, 7, 8, 9, 10 ] ) { + const [ nextdd, ncolours ] = follow_and_colour( + nodes, links, faces, colours, a, a[i] + ); + const fp = dd_fingerprint(nextdd); + if( !(fp in seen) ) { + add_colours(colours, ncolours); + dds.push(nextdd); + seen[fp] = true; + } + } + } + + for( const a of dds.slice(33, 76) ) { + for( const i of [ 6, 7, 8, 9, 10 ] ) { + const [ nextdd, ncolours ] = follow_and_colour( + nodes, links, faces, colours, a, a[i] + ); + const fp = dd_fingerprint(nextdd); + if( !(fp in seen) ) { + add_colours(colours, ncolours); + dds.push(nextdd); + seen[fp] = true; + } + } + } + + // this should get the rest or explode! + for( const a of dds ) { + for( const i of [ 6, 7, 8, 9, 10 ] ) { + const [ nextdd, ncolours ] = follow_and_colour( + nodes, links, faces, colours, a, a[i] + ); + const fp = dd_fingerprint(nextdd); + if( !(fp in seen) ) { + add_colours(colours, ncolours); + dds.push(nextdd); + seen[fp] = true; + } + } + } const labels = { 1: [], 2:[], 3:[], 4:[], 5:[] }; @@ -868,15 +901,12 @@ const nodes = make_120cell_vertices(); const links = auto_detect_edges(nodes, 4); const faces = auto_120cell_faces(links); -//const dodecas = make_120cell_cells(faces); - -//const colours = all_meridians(nodes, links, faces, faces[0], 341); - -//console.log(JSON.stringify(colours)); -// note - all_meridians colours 530 of the 600 vertices - try a simple -// algorithm to see which of the remaining 70 have 4 neighbours labeled and -// fill in the rest that way +const a2 = arctic_two(nodes, links, faces, faces[0], 341) + +console.log(`got ${a2.dodecahedra.length}`); + +console.log(JSON.stringify(a2.labels)); + -// have tried this and they mostly have 3 with some 1s and 2ss \ No newline at end of file