提交 267583f3 编写于 作者: Z zz85

[docs] Added skeleton methods for

THREE.Path
THREE.Shape
THREE.CurvePath
THREE.Curve
THREE.SubdivisionModifier
THREE.ExtrudeGeometry

@sole you might be interested in the script i used to help generate this.

p = new THREE.Path()
for (i in p) {
p.hasOwnProperty(i) && console.log('\n<h3>.' + i + '</h3>');
}

console.log('-------------')

for (i in p) {
var pp = p[i].toString().replace(/function/,'');
THREE.Path.prototype.hasOwnProperty(i) &&
console.log('\n<h3>.' + i + pp.substring(0, pp.indexOf('{')-1).replace(/\s+/g, ' ')  + '</h3>\n<div>todo</div>' );
}
上级 a61d0609
......@@ -24,10 +24,38 @@
<h2>Methods</h2>
<h3>.todo( [page:Vector3 todo] )</h3>
<div>
todo — todo<br />
</div>
<h3>.getPoint ( t )</h3>
<div>todo</div>
<h3>.getPointAt ( u )</h3>
<div>todo</div>
<h3>.getPoints ( divisions )</h3>
<div>todo</div>
<h3>.getSpacedPoints ( divisions )</h3>
<div>todo</div>
<h3>.getLength ()</h3>
<div>todo</div>
<h3>.getLengths ( divisions )</h3>
<div>todo</div>
<h3>.updateArcLengths ()</h3>
<div>todo</div>
<h3>.getUtoTmapping ( u, distance )</h3>
<div>todo</div>
<h3>.getNormalVector ( t )</h3>
<div>todo</div>
<h3>.getTangent ( t )</h3>
<div>todo</div>
<h3>.getTangentAt ( u )</h3>
<div>todo</div>
<h2>Source</h2>
......
......@@ -18,17 +18,56 @@
<h2>Properties</h2>
<h3>.curves</h3>
<h3>.[page:Vector3 todo]</h3>
<h3>.bends</h3>
<h3>.autoClose</h3>
<h2>Methods</h2>
<h3>.todo( [page:Vector3 todo] )</h3>
<div>
todo — todo<br />
</div>
<h3>.add ( curve )</h3>
<div>todo</div>
<h3>.checkConnection ()</h3>
<div>todo</div>
<h3>.closePath ()</h3>
<div>todo</div>
<h3>.getPoint ( t )</h3>
<div>todo</div>
<h3>.getLength ()</h3>
<div>todo</div>
<h3>.getCurveLengths ()</h3>
<div>todo</div>
<h3>.getBoundingBox ()</h3>
<div>todo</div>
<h3>.createPointsGeometry ( divisions )</h3>
<div>todo</div>
<h3>.createSpacedPointsGeometry ( divisions )</h3>
<div>todo</div>
<h3>.createGeometry ( points )</h3>
<div>todo</div>
<h3>.addWrapPath ( bendpath )</h3>
<div>todo</div>
<h3>.getTransformedPoints ( segments, bends )</h3>
<div>todo</div>
<h3>.getTransformedSpacedPoints ( segments, bends )</h3>
<div>todo</div>
<h3>.getWrapPoints ( oldPts, path )</h3>
<div>todo</div>
<h2>Source</h2>
......
......@@ -9,7 +9,7 @@
<body>
<h1>[name]</h1>
<div class="desc">todo</div>
<div class="desc">a 2d path representation, comprising of points, lines, and cubes, similar to the html5 2d canvas api. It extends CurvePath.</div>
<h2>Constructor</h2>
......@@ -19,15 +19,54 @@
<h2>Properties</h2>
<h3>.[page:Vector3 todo]</h3>
<h3>.curves</h3>
<h3>.bends</h3>
<h3>.autoClose</h3>
<h3>.actions</h3>
<h2>Methods</h2>
<h3>.todo( [page:Vector3 todo] )</h3>
<div>
todo — todo<br />
</div>
<h3>.fromPoints ( vectors ) </h3>
<div>todo</div>
<h3>.moveTo ( x, y ) </h3>
<div>todo</div>
<h3>.lineTo ( x, y ) </h3>
<div>todo</div>
<h3>.quadraticCurveTo ( aCPx, aCPy, aX, aY ) </h3>
<div>todo</div>
<h3>.bezierCurveTo ( aCP1x, aCP1y, aCP2x, aCP2y, aX, aY ) </h3>
<div>todo</div>
<h3>.splineThru ( pts /*Array of Vector*/ ) </h3>
<div>todo</div>
<h3>.arc ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) </h3>
<div>todo</div>
<h3>.absarc ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) </h3>
<div>todo</div>
<h3>.ellipse ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise ) </h3>
<div>todo</div>
<h3>.absellipse ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise ) </h3>
<div>todo</div>
<h3>.getSpacedPoints ( divisions, closedPath ) </h3>
<div>todo</div>
<h3>.getPoints ( divisions, closedPath ) </h3>
<div>todo</div>
<h3>.toShapes () </h3>
<div>todo</div>
<h2>Source</h2>
......
......@@ -9,7 +9,7 @@
<body>
<h1>[name]</h1>
<div class="desc">todo</div>
<div class="desc">Defines a 2d shape plane using paths.</div>
<h2>Constructor</h2>
......@@ -19,15 +19,40 @@
<h2>Properties</h2>
<h3>.[page:Vector3 todo]</h3>
<h3>.curves</h3>
<h3>.bends</h3>
<h3>.autoClose</h3>
<h3>.actions</h3>
<h3>.holes</h3>
<h2>Methods</h2>
<h3>.todo( [page:Vector3 todo] )</h3>
<div>
todo — todo<br />
</div>
<h3>.extrude ( options )</h3>
<div>todo</div>
<h3>.makeGeometry ( options )</h3>
<div>todo</div>
<h3>.getPointsHoles ( divisions )</h3>
<div>todo</div>
<h3>.getSpacedPointsHoles ( divisions )</h3>
<div>todo</div>
<h3>.extractAllPoints ( divisions )</h3>
<div>todo</div>
<h3>.extractPoints ( divisions )</h3>
<div>todo</div>
<h3>.extractAllSpacedPoints ( divisions )</h3>
<div>todo</div>
<h2>Source</h2>
......
......@@ -19,8 +19,11 @@
<h2>Properties</h2>
<h3>.[page:Vector3 todo]</h3>
<h3>.addShapeList ( shapes, options )</h3>
<div>todo</div>
<h3>.addShape ( shape, options )</h3>
<div>todo</div>
<h2>Methods</h2>
......
......@@ -19,15 +19,22 @@
<h2>Properties</h2>
<h3>.[page:Vector3 todo]</h3>
<h3>.subdivisions</h3>
<h3>.useOldVertexColors</h3>
<h3>.supportUVs</h3>
<h3>.debug</h3>
<h2>Methods</h2>
<h3>.todo( [page:Vector3 todo] )</h3>
<div>
todo — todo<br />
</div>
<h3>.modify ( geometry )</h3>
<div>todo</div>
<h3>.smooth ( oldGeometry )</h3>
<div>todo</div>
<h2>Source</h2>
......
......@@ -142,8 +142,7 @@ var list = {
[ "EventTarget", "api/extras/core/EventTarget" ],
[ "Gyroscope", "api/extras/core/Gyroscope" ],
[ "Path", "api/extras/core/Path" ],
[ "Shape", "api/extras/core/Shape" ],
[ "TextPath", "api/extras/core/TextPath" ]
[ "Shape", "api/extras/core/Shape" ]
],
"Extras / Geometries": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册