|
|
| 第1行: |
第1行: |
| =='''Format'''==
| |
| ''indx<sub>O</sub>(1) indx<sub>L</sub>(1) indx<sub>R</sub>(1) indx<sub>B</sub>(1) indx<sub>F</sub>(1) indx<sub>D</sub>(1) indx<sub>U</sub>(1)
| |
| ''indx<sub>O</sub>(2) indx<sub>L</sub>(2) indx<sub>R</sub>(2) indx<sub>B</sub>(2) indx<sub>F</sub>(2) indx<sub>D</sub>(2) indx<sub>U</sub>(2)
| |
| . . . . . . .
| |
| . . . . . . .
| |
| . . . . . . .
| |
| ''indx<sub>O</sub>(i) indx<sub>L</sub>(i) indx<sub>R</sub>(i) indx<sub>B</sub>(i) indx<sub>F</sub>(i) indx<sub>D</sub>(i) indx<sub>U</sub>(i)
| |
| . . . . . . .
| |
| . . . . . . .
| |
| . . . . . . .
| |
| ''indx<sub>O</sub>(N) indx<sub>L</sub>(N) indx<sub>R</sub>(N) indx<sub>B</sub>(N) indx<sub>F</sub>(N) indx<sub>D</sub>(N) indx<sub>U</sub>(N)'' <font color=green>// all are integers.</font>
| |
|
| |
|
| This outputs the indices of each nodes and the its neighbor indices.
| |
|
| |
| indx<sub>O</sub>(i): the index of i<sub>th</sub> node. <br>
| |
| indx<sub>L</sub>(i): left <br>
| |
| indx<sub>R</sub>(i): right <br>
| |
| indx<sub>B</sub>(i): back <br>
| |
| indx<sub>F</sub>(i): in front of <br>
| |
| indx<sub>D</sub>(i): down <br>
| |
| indx<sub>U</sub>(i): up <br>
| |