jox81 преди 11 години
родител
ревизия
74c84bd905
променени са 1 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 17 0
      docs/api/objects/Line.html

+ 17 - 0
docs/api/objects/Line.html

@@ -14,6 +14,23 @@
 		<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>