查看: 558|回复: 0

求解答Intersection里面这些成员代表什么

[复制链接]

该用户从未签到

发表于 2017-5-24 19:35:36 | 显示全部楼层 |阅读模式
  1. osgUtil::LineSegmentIntersector::Intersections& intersections = lsi->getIntersections();
  2.                     for(osgUtil::LineSegmentIntersector::Intersections::iterator itr = intersections.begin();
  3.                         itr != intersections.end();
  4.                         ++itr)
  5.                     {
  6.                         const osgUtil::LineSegmentIntersector::Intersection& intersection = *itr;
  7.                         std::cout<<"  ratio "<<intersection.ratio<<std::endl;
  8.                         std::cout<<"  point "<<intersection.localIntersectionPoint<<std::endl;
  9.                         std::cout<<"  normal "<<intersection.localIntersectionNormal<<std::endl;
  10.                         std::cout<<"  indices "<<intersection.indexList.size()<<std::endl;
  11.                         std::cout<<"  primitiveIndex "<<intersection.primitiveIndex<<std::endl;
复制代码


另外intersection.indexList是第一个与射线相交的三角面片的三个顶点的索引吗?如果是的,该怎么获取与这个三角面片相邻的三角面片?先谢谢了~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表