Avaruus - taso pisteiden kautta
piste(0,0,1,'n') piste(0,0,-1,'s') piste( 0.8944, 0, 0.4472,'p1') piste( 0.2764, 0.8507, 0.4472,'p2') piste( -0.7236, 0.5257, 0.4472,'p3') piste( -0.7236, -0.5257, 0.4472,'p4') piste( 0.2764, -0.8507, 0.4472,'p5') piste( 0.7236, 0.5257, -0.4472,'q1') piste( -0.2764, 0.8507, -0.4472,'q2') piste( -0.8944, 0.0000, -0.4472,'q3') piste( -0.2764, -0.8507, -0.4472,'q4') piste( 0.7236, -0.5257, -0.4472,'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:'#f00000'}); const ABC12 = board.create('polygon', ['p2','n','p3'], {hasInnerPoints: true,Color:'#f00000'}); const ABC13 = board.create('polygon', ['p3','n','p4'], {hasInnerPoints: true,Color:'#f00000'}); const ABC14 = board.create('polygon', ['p4','n','p5'], {hasInnerPoints: true,Color:'#f00000'}); const ABC15 = board.create('polygon', ['p5','n','p1'], {hasInnerPoints: true,Color:'#f00000'}); const ABC16 = board.create('polygon', ['q2','q1','s'], {hasInnerPoints: true,Color:'#00f000'}); const ABC17 = board.create('polygon', ['q3','q2','s'], {hasInnerPoints: true,Color:'#00f000'}); const ABC18 = board.create('polygon', ['q4','q3','s'], {hasInnerPoints: true,Color:'#00f000'}); const ABC19 = board.create('polygon', ['q5','q4','s'], {hasInnerPoints: true,Color:'#00f000'}); const ABC20 = board.create('polygon', ['q1','q5','s'], {hasInnerPoints: true,Color:'#00f000'});