|
@@ -14,6 +14,23 @@
|
|
<div class="desc">A line or a series of lines.</div>
|
|
<div class="desc">A line or a series of lines.</div>
|
|
|
|
|
|
|
|
|
|
|
|
+ <h2>Example</h2>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <code>var material = new THREE.LineBasicMaterial({
|
|
|
|
+ color: 0x0000ff
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ var geometry = new THREE.Geometry();
|
|
|
|
+ geometry.vertices.push( new THREE.Vector3( -10, 0, 0 ) );
|
|
|
|
+ geometry.vertices.push( new THREE.Vector3( 0, 10, 0 ) );
|
|
|
|
+ geometry.vertices.push( new THREE.Vector3( 10, 0, 0 ) );
|
|
|
|
+
|
|
|
|
+ var line = new THREE.Line( geometry, material );
|
|
|
|
+ scene.add( line );
|
|
|
|
+ </code>
|
|
|
|
+
|
|
|
|
+
|
|
<h2>Constructor</h2>
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
|
|
|