c*****t 发帖数: 1879 | 1 【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
I am trying to do the following in java3d. Performance is a big issue
here.
There is a surface (around 20,000 vertices) and I would like to pick
vertices. Basically, when a mouse click event occurs, I would like to
know the nearest vertex by the mouse pointer.
I tried to use PickTool, which requires a shooting ray (which can be
started from the eye position to the image plate location of the mouse
pointer, which has a z coordinate of 0.0). Then |
|