|
根据模型的包围盒创建前后左右4个四边形遮挡面,其中的0-7应该是表示包围盒的八个顶点,可我不明白的是,这些编号的顺序是如何确定的,是内部就有这样的定义吗?
//前遮挡面
scene->addChild(createOccluder(bb.corner(0),
bb.corner(1),
bb.corner(5),
bb.corner(4)));
//右遮挡面
scene->addChild(createOccluder(bb.corner(1),
bb.corner(3),
bb.corner(7),
bb.corner(5)));
//左遮挡面
scene->addChild(createOccluder(bb.corner(2),
bb.corner(0),
bb.corner(4),
bb.corner(6)));
//后遮挡面
scene->addChild(createOccluder(bb.corner(3),
bb.corner(2),
bb.corner(6),
bb.corner(7))); |
|