找回密码
 注册
查看: 2378|回复: 1

f = C_FACE(c,t,n) ,参数n 怎么理解?

[复制链接]
发表于 2012-4-21 21:35:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
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。
发表于 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);
.
.
.
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表