聚合国内IT技术精华文章,分享IT技术精华,帮助IT从业人士成长

GET 3D MOUSE POSITION WITH THE DEPTH BUFFER

2020-11-25 00:13 浏览: 1916861 次 我要评论(0 条) 字号:

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

eryar 2020-11-24 20:55 发表评论


网友评论已有0条评论, 我也要评论

发表评论

*

* (保密)

Ctrl+Enter 快捷回复