|
发表于 2012-4-25 08:23:36
|
显示全部楼层
原帖由 听雨古船 于 2012-4-21 13:35 发表
f = C_FACE(c,t,n) ,参数n 怎么理解?
help文档中说: The argument n is the local face index number. The local face index number is used in the C_FACE macro to obtain the global face number。
就是网格面的序号,二维正方形网格的n就是从0到3,一般和c_face_loop(c, t, n)联用,如下面的例子
c_face_loop(c, t, n) /* 对网格的面循环,自动填充n*/
{
.
.
.
f = C_FACE(c,t,n); //由于n已经被填充,所以可以直接调用
tf = C_FACE_THREAD(c,t,n);
.
.
.
} |
|