فهرست منبع

Docs: Clean up

Mugen87 7 سال پیش
والد
کامیت
d5449f1ca8

+ 10 - 1
docs/api/extras/curves/CubicBezierCurve.html

@@ -30,7 +30,16 @@ var curve = new THREE.CubicBezierCurve(
 
 
 var path = new THREE.Path( curve.getPoints( 50 ) );
 var path = new THREE.Path( curve.getPoints( 50 ) );
 
 
-var geometry = path.createPointsGeometry( 50 );
+var geometry = new THREE.Geometry();
+var points = curve.getPoints( 50 );
+
+for ( var i = 0, l = points.length; i < l; i ++ ) {
+
+	var point = points[ i ];
+	geometry.vertices.push( new THREE.Vector3( point.x, point.y, 0 ) );
+
+}
+
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 
 
 // Create the final object to add to the scene
 // Create the final object to add to the scene

+ 9 - 2
docs/api/extras/curves/EllipseCurve.html

@@ -28,8 +28,15 @@ var curve = new THREE.EllipseCurve(
 	0                 // aRotation
 	0                 // aRotation
 );
 );
 
 
-var path = new THREE.Path( curve.getPoints( 50 ) );
-var geometry = path.createPointsGeometry( 50 );
+var geometry = new THREE.Geometry();
+var points = curve.getPoints( 50 );
+
+for ( var i = 0, l = points.length; i < l; i ++ ) {
+
+	var point = points[ i ];
+	geometry.vertices.push( new THREE.Vector3( point.x, point.y, 0 ) );
+
+}
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 
 
 // Create the final object to add to the scene
 // Create the final object to add to the scene

+ 8 - 2
docs/api/extras/curves/QuadraticBezierCurve.html

@@ -27,9 +27,15 @@ var curve = new THREE.QuadraticBezierCurve(
 	new THREE.Vector2( 10, 0 )
 	new THREE.Vector2( 10, 0 )
 );
 );
 
 
-var path = new THREE.Path( curve.getPoints( 50 ) );
+var geometry = new THREE.Geometry();
+var points = curve.getPoints( 50 );
 
 
-var geometry = path.createPointsGeometry( 50 );
+for ( var i = 0, l = points.length; i < l; i ++ ) {
+
+	var point = points[ i ];
+	geometry.vertices.push( new THREE.Vector3( point.x, point.y, 0 ) );
+
+}
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 
 
 //Create the final object to add to the scene
 //Create the final object to add to the scene

+ 8 - 2
docs/api/extras/curves/SplineCurve.html

@@ -29,9 +29,15 @@ var curve = new THREE.SplineCurve( [
 	new THREE.Vector2( 10, 0 )
 	new THREE.Vector2( 10, 0 )
 ] );
 ] );
 
 
-var path = new THREE.Path( curve.getPoints( 50 ) );
+var geometry = new THREE.Geometry();
+var points = curve.getPoints( 50 );
 
 
-var geometry = path.createPointsGeometry( 50 );
+for ( var i = 0, l = points.length; i < l; i ++ ) {
+
+	var point = points[ i ];
+	geometry.vertices.push( new THREE.Vector3( point.x, point.y, 0 ) );
+
+}
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
 
 
 // Create the final object to add to the scene
 // Create the final object to add to the scene

+ 0 - 32
editor/js/libs/tern-threejs/threejs.js

@@ -924,34 +924,10 @@
           "!type": "boolean",
           "!type": "boolean",
           "!doc": "todo"
           "!doc": "todo"
         },
         },
-        "getWrapPoints": {
-          "!type": "fn(oldPts: todo, path: todo) -> todo",
-          "!doc": "todo"
-        },
-        "createPointsGeometry": {
-          "!type": "fn(divisions: todo) -> todo",
-          "!doc": "todo"
-        },
-        "addWrapPath": {
-          "!type": "fn(bendpath: todo) -> todo",
-          "!doc": "todo"
-        },
-        "createGeometry": {
-          "!type": "fn(points: todo) -> todo",
-          "!doc": "todo"
-        },
         "add": {
         "add": {
           "!type": "fn(curve: todo) -> todo",
           "!type": "fn(curve: todo) -> todo",
           "!doc": "todo"
           "!doc": "todo"
         },
         },
-        "getTransformedSpacedPoints": {
-          "!type": "fn(segments: todo, bends: todo) -> todo",
-          "!doc": "todo"
-        },
-        "createSpacedPointsGeometry": {
-          "!type": "fn(divisions: todo) -> todo",
-          "!doc": "todo"
-        },
         "closePath": {
         "closePath": {
           "!type": "fn() -> todo",
           "!type": "fn() -> todo",
           "!doc": "todo"
           "!doc": "todo"
@@ -963,14 +939,6 @@
         "getCurveLengths": {
         "getCurveLengths": {
           "!type": "fn() -> todo",
           "!type": "fn() -> todo",
           "!doc": "todo"
           "!doc": "todo"
-        },
-        "getTransformedPoints": {
-          "!type": "fn(segments: todo, bends: todo) -> todo",
-          "!doc": "todo"
-        },
-        "checkConnection": {
-          "!type": "fn() -> todo",
-          "!doc": "todo"
         }
         }
       },
       },
       "!doc": "todo",
       "!doc": "todo",