有沒有辦法在threeJS中選擇線條? 我檢查改變了一下這個演示http://mrdoob.github.io/three.js/examples/webgl_interactive_cubes.html到remplace與線的立方體,它似乎並沒有被採摘什麼:http://jsfiddle.net/p3cdk/如何在three.js中選擇線條?
var geometry = new THREE.Geometry();
geometry.vertices.push(new THREE.Vector3(0, 0, 0));
geometry.vertices.push(new THREE.Vector3(20, 20, 20));
的光線投射系統不提線都:https://github.com/mrdoob/three.js/blob/master/src/core/Raycaster.js (我猜想光線投射系統必須在線框中給出一個有趣的行爲)。
我不是3D技術的專家,但是看起來我很難用光線選擇一條線,我寧願投出一個圓錐體,或者對像素緩衝區做些什麼,但我不知道如何實現這一目標。
我的上下文是CAD,因此程式化的系統,正交相機和純線。