forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCurve.html
More file actions
72 lines (51 loc) · 2.27 KB
/
Curve.html
File metadata and controls
72 lines (51 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc">
An abstract base class for creating a curve object that contains methods for interpolation.
For an array of Curves see [page:CurvePath].
</div>
<h2>Examples</h2>
<h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines ]
<h2>Constructor</h2>
<h3>[name]()</h3>
<div>
This constructor creates a new [name].
</div>
<h2>Methods</h2>
<h3>[method:Vector getPoint]( t )</h3>
<div>Returns a vector for point t of the curve where t is between 0 and 1. Must be implemented in the extending class.</div>
<h3>[method:Vector getPointAt]( u )</h3>
<div>Returns a vector for point at relative position in curve according to arc length</div>
<h3>[method:Array getPoints]( divisions )</h3>
<div>Get sequence of points using getPoint( t ) </div>
<h3>[method:Array getSpacedPoints]( divisions )</h3>
<div>Get sequence of equi-spaced points using getPointAt( u )</div>
<h3>[method:Float getLength]()</h3>
<div>Get total curve arc length</div>
<h3>[method:Array getLengths]( divisions )</h3>
<div>Get list of cumulative segment lengths</div>
<h3>[method:null updateArcLengths]()</h3>
<div>Update the cumlative segment distance cache</div>
<h3>[method:Float getUtoTmapping]( u, distance )</h3>
<div>Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant</div>
<h3>[method:Vector getTangent]( t )</h3>
<div>Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation</div>
<h3>[method:Vector getTangentAt]( u )</h3>
<div>Returns tangent at equidistant point u on the curve</div>
<h3>[method:Object computeFrenetFrames]( segments, closed )</h3>
<div>
Generates the Frenet Frames. Used in geometries like [page:TubeGeometry] or [page:ExtrudeGeometry].
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>