Canj's trail
2011年8月29日星期一
怎么定义一个QuadTriMesh, 同时支持quad and triangle faces?
class QuadTriMesh : public BaseMesh {
public:
struct Face;
...
};
#define NIL uint(~0)
struct QuadTriMesh::Face {
unsigned int id;
unsigned int v[4];
bool isQuadFace() const { return v[3] != NIL; };
};
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论