problem description
the curve generated by CatmullRomCurve3 will be displayed as a whole, how to make it longer slowly
related codes
var curve = new THREE.CatmullRomCurve3( [
new THREE.Vector3( 0, 0, 0 ),
new THREE.Vector3( 1, -1, -1 ),
new THREE.Vector3( -5, 5, 5 )
] );
var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints( 50 );
console.log(curve);
var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
addMesh = new THREE.Line(geometry, material);
scene.add(addMesh);