[MSCE C#/C++] 根据射线求穿过实体及最近实体

经过搜索得出以下方案
1:https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/199718/msce-c/595962#595962

遍历元素,然后将元素转成面,再调用SolidUtil::RayTestFace求交点(感觉,solidutil是mdlsolid相关函数的封装?)

2:https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/123991/microstation-v8i-c/376481#376481

遍历元素,然后将元素转成solid,再调用mdlSolid_getEntities求交点(mssolid.fdf好像要手动请加mssolid.h引用,否则编译不通过?)

采用第二个帖子里的代码可行,但是对于其中的变换没看懂,是因为body的坐标系统与dgn的UOR系统不一样?

另,从说明来看,mdlSolid_rayTestBody好像更符合需求,不知道方法2中描述的函数缺陷是否已被修复?