You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to generate grid lines for the x, y, and z axis. I have not found an easy way to accomplish this for a three.js viewer. Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered:
Viewer does not support currently to add lines, but you can add them directly to three.js scene like this:
var geometry = new THREE.Geometry ();
geometry.vertices.push (new THREE.Vector3 (0.0, 0.0, 0.0));
geometry.vertices.push (new THREE.Vector3 (-2.0, 0.0, 0.0));
var material = new THREE.LineBasicMaterial ({color: 0xff0000});
var line = new THREE.Line (geometry, material);
viewer.scene.add (line);
Im trying to generate grid lines for the x, y, and z axis. I have not found an easy way to accomplish this for a three.js viewer. Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: