I am striving to create a set of parallel lines in the xz plane, but have yet to find a simple enough example.
It seems that my approach to Geometry may be incorrect somehow.
function generateParallelLines(){
var material = new THREE.LineBasicMaterial({ color: 0x00ff00 });
var geometry = new THREE.Geometry();
for(var i=0; i<10; i++){
geometry.vertices.push(
new THREE.Vector3(10*i, 0, 0), new THREE.Vector3(10*i, 0, 100)
);
}
var lineSet = new THREE.LineSegments(geometry, material);
scene.add(lineSet);
}
My understanding is that the geometry object passed to LineSegments should contain pairs of coordinates representing the start and end points of each line. However, the function above does not produce the desired result.
Is there anyone who can offer a more accurate technique?