LineCurve3 折线

—> Curve

3D折线:线段.

function LineCurve3( v1, v2 ) { } var v1 = new THREE.Vector2(-4, 4, -4), v2 = new THREE.Vector2(4, -4, 4); var curve = new THREE.LineCurve3(v1, v2), points = curve.getPoints(1); var geometry = new THREE.Geometry().setFromPoints( points ); material = new THREE.LineBasicMaterial({color: '#009900'}), line = new THREE.Line(geometry, material); scene.add(line);

Attributes

type : String

Default value : 'LineCurve3'
Description : 类型.

v1 : Vector3

Default value : new Vector3()
Description : 起点.

v2 : Vector3

Default value : new Vector3()
Description : 终点.

isLineCurve3 : Boolean

Default value : true
Description : 类型是否为 LineCurve3.