1
考慮一個1×3單元A
:如何在3D圖中用不同顏色的單元格繪製每個矩陣?
A = { [A1] [A2] [A3] }
A = {[1 2 3; 4 5 6; 7 8 9] [6 5 4; 9 8 7] [1 1 1]}
其中Ai
的結構是這樣的:
A1 = [ 1 2 3 %coordinate (x,y,z) of point 1
4 5 6 %coordinate (x,y,z) of point 2
7 8 9 ] %coordinate (x,y,z) of point 3
A2 = [ 6 5 4 %coordinate (x,y,z) of point 4
9 8 7 ] %coordinate (x,y,z) of point 5
A3 = [ 1 1 1 ] %coordinate (x,y,z) of point 6
如何繪製所有這些問題,使得我們使用一種顏色的A1
所有點,另一種顏色的所有點A2
和一些其他顏色的所有點A3
?
一般來說,如果我們有一個1xn的單元格,即A = { [A1] [A2] [A3] ... [An] }
,這個怎麼做?