struct里嵌套struct应该如何初始化
struct tEdge;
struct tFace;
struct tVertex//点坐标
{
float x;
float y;
float z;
int id;
};
struct tEdge
{
tVertex *aVertex;//边的两个点
tVertex *bVertex;
tFace *lFace;//边的左右两个面
tFace *rFace;
};
struct tFace
{
int id;
tEdge *aEdge;//多边形的几条边
tEdge *bEdge;
tEdge *cEdge;
tVector *FaceNor;//面的法向量
};
应该如何初始化呢?