mrdoob/three.js — Issue #854: three.js - Can't get the vertices back...
Author: BorisDutkin
Created: 2011-12-06 14:07:08+00:00
State: open

This is my code for drawing line:

function line_vec(x,y,z) {
return new THREE.Vertex(new THREE.Vector3(x,y,z));
}

var lineGeo = new THREE.Geometry();

lineGeo.vertices.push(
line_vec(5,0,5),line_vec(5,10,5)
);

var lineMaterial = .......

var line = new THREE.Line(lineGeo,lineMaterial);

line.type = THREE.Lines;

line.position.set(0,0,0);

scene.add(line);

The question is...after I have build the path of the line (lineGeo), is there any way to push it
to another array in witch I could save this path?