2014-03-02 72 views
2

我想使捲尺看起來像下面的圖片:三維模型的測量距離?

enter image description here

這裏的鏈接到產品上的圖像:Link,他們使用WebGL的太多,但不three.js所

那麼,如何在Three.js中製作三維模型捲尺?

謝謝。

回答

7

通過使用this example作爲參考,您應該能夠找出您點擊的幾何中的哪個位置。

有了這些點則只是這樣做之事:

var distance = point1.distanceTo(point2);