posts - 468, comments - 590, trackbacks - 0, articles - 0

GET 3D MOUSE POSITION WITH THE DEPTH BUFFER

Posted on 2020-11-24 20:55 eryar 阅读(2312) 评论(0)  编辑 收藏 引用 所属分类: 2.OpenCASCADE

I would suggest looking into source code of Draw Harness command vstate, which seems to be prints some information, that can be useful in your case:

Draw[22]> vstate -entities
Detected entities: b1 Depth: 109.763 Distance: 124.217 Point: 45.6609 50 64.9933 (Select3D_SensitiveTriangulation)
Detected Shape: TopoDS_TSolid b2 Depth: 118.732 Distance: 130.122 Point: 40 43.8525 61.7375 (Select3D_SensitiveTriangulation)
Detected Shape: TopoDS_TSolid b0 Depth: 124.353 Distance: 142.24 Point: 36.4524 40 59.6971 (Select3D_SensitiveTriangulation)
Detected Shape: TopoDS_TCompound
Get 3D mouse position with the depth buffer
Get 3D mouse position with the depth buffer | OPEN CASCADE

只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理