Avaruus - taso pisteiden kautta
piste(0,0,2,'n') piste(0,0,-2,'s') piste( 1.7889, 0, 0.8944,'p1') piste( 0.5528, 1.7013, 0.8944,'p2') piste( -1.4472, 1.0515, 0.8944,'p3') piste( -1.4472, -1.0515, 0.8944,'p4') piste( 0.5528, -1.7013, 0.8944,'p5') piste(1.4472, 1.0515, -0.8944,'q1') piste( -0.5528, 1.7013, -0.8944,'q2') piste( -1.7889, 0.0000, -0.8944,'q3') piste( -0.5528, -1.7013, -0.8944,'q4') piste( 1.4472, -1.0515, -0.8944,'q5') const ABC1 = board.create('polygon', ['p1','q1','p2'], {hasInnerPoints: true,Color:'#f00000'}); const ABC2 = board.create('polygon', ['p2','q2','p3'], {hasInnerPoints: true,Color:'#f00000'}); const ABC3 = board.create('polygon', ['p3','q3','p4'], {hasInnerPoints: true,Color:'#f00000'}); const ABC4 = board.create('polygon', ['p4','q4','p5'], {hasInnerPoints: true,Color:'#f00000'}); const ABC5 = board.create('polygon', ['p5','q5','p1'], {hasInnerPoints: true,Color:'#f00000'}); const ABC6 = board.create('polygon', ['q2','q1','p2'], {hasInnerPoints: true,Color:'#00f000'}); const ABC7 = board.create('polygon', ['q3','q2','p3'], {hasInnerPoints: true,Color:'#00f000'}); const ABC8 = board.create('polygon', ['q4','q3','p4'], {hasInnerPoints: true,Color:'#00f000'}); const ABC9 = board.create('polygon', ['q5','q4','p5'], {hasInnerPoints: true,Color:'#00f000'}); const ABC10 = board.create('polygon', ['q1','q5','p1'], {hasInnerPoints: true,Color:'#00f000'}); const ABC11 = board.create('polygon', ['p1','n','p2'], {hasInnerPoints: true,Color:'#0000f0'}); const ABC12 = board.create('polygon', ['p2','n','p3'], {hasInnerPoints: true,Color:'#0000f0'}); const ABC13 = board.create('polygon', ['p3','n','p4'], {hasInnerPoints: true,Color:'#0000f0'}); const ABC14 = board.create('polygon', ['p4','n','p5'], {hasInnerPoints: true,Color:'#0000f0'}); const ABC15 = board.create('polygon', ['p5','n','p1'], {hasInnerPoints: true,Color:'#0000f0'}); const ABC16 = board.create('polygon', ['q2','q1','s'], {hasInnerPoints: true,Color:'#f000f0'}); const ABC17 = board.create('polygon', ['q3','q2','s'], {hasInnerPoints: true,Color:'#f000f0'}); const ABC18 = board.create('polygon', ['q4','q3','s'], {hasInnerPoints: true,Color:'#f000f0'}); const ABC19 = board.create('polygon', ['q5','q4','s'], {hasInnerPoints: true,Color:'#f000f0'}); const ABC20 = board.create('polygon', ['q1','q5','s'], {hasInnerPoints: true,Color:'#f000f0'});