- }
- }
-
- /* Draw connections */
- for( int x=0; x<k_gridamt-1; x++ )
- {
- for( int z=0; z<k_gridamt-1; z++ )
- {
- static const struct conf
- {
- struct confedge
- {
- /* i: sample index
- * d: data index
- * a: axis index
- */
- int i0, i1,
- d0, d1,
- a0, a1;
- }
- edges[2];
- int edge_count;
- }
- k_configs[16] = {
- {{},0},
- {{{ 3, 3, 3, 0, 1,0 }}, 1},
- {{{ 2, 2, 1, 3, 0,1 }}, 1},
- {{{ 2, 3, 1, 0, 0,0 }}, 1},
-
- {{{ 1, 1, 0, 1, 1,0 }}, 1},
- {{{ 3, 3, 3, 0, 1,0 },
- { 1, 1, 0, 1, 1,0 }}, 2},
- {{{ 1, 2, 0, 3, 1,1 }}, 1},
- {{{ 1, 3, 0, 0, 1,0 }}, 1},
-
- {{{ 0, 0, 0, 0, 0,1 }}, 1},
- {{{ 3, 0, 3, 0, 1,1 }}, 1},
- {{{ 2, 2, 1, 3, 0,1 },
- { 0, 0, 0, 0, 0,1 }}, 2},
- {{{ 2, 0, 1, 0, 0,1 }}, 1},
-
- {{{ 0, 1, 0, 1, 0,0 }}, 1},
- {{{ 3, 1, 3, 1, 1,0 }}, 1},
- {{{ 0, 2, 0, 3, 0,1 }}, 1},
- {{},0},
- };