-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThree.Legacy.js
More file actions
229 lines (133 loc) · 6.91 KB
/
Copy pathThree.Legacy.js
File metadata and controls
229 lines (133 loc) · 6.91 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import { BoxGeometry } from './geometries/BoxGeometry.js';
import { CapsuleGeometry } from './geometries/CapsuleGeometry.js';
import { CircleGeometry } from './geometries/CircleGeometry.js';
import { ConeGeometry } from './geometries/ConeGeometry.js';
import { CylinderGeometry } from './geometries/CylinderGeometry.js';
import { DodecahedronGeometry } from './geometries/DodecahedronGeometry.js';
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
import { IcosahedronGeometry } from './geometries/IcosahedronGeometry.js';
import { LatheGeometry } from './geometries/LatheGeometry.js';
import { OctahedronGeometry } from './geometries/OctahedronGeometry.js';
import { PlaneGeometry } from './geometries/PlaneGeometry.js';
import { PolyhedronGeometry } from './geometries/PolyhedronGeometry.js';
import { RingGeometry } from './geometries/RingGeometry.js';
import { ShapeGeometry } from './geometries/ShapeGeometry.js';
import { SphereGeometry } from './geometries/SphereGeometry.js';
import { TetrahedronGeometry } from './geometries/TetrahedronGeometry.js';
import { TorusGeometry } from './geometries/TorusGeometry.js';
import { TorusKnotGeometry } from './geometries/TorusKnotGeometry.js';
import { TubeGeometry } from './geometries/TubeGeometry.js';
export class BoxBufferGeometry extends BoxGeometry { // @deprecated, r144
constructor( width, height, depth, widthSegments, heightSegments, depthSegments ) {
console.warn( 'THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry.' );
super( width, height, depth, widthSegments, heightSegments, depthSegments );
}
}
export class CapsuleBufferGeometry extends CapsuleGeometry { // @deprecated, r144
constructor( radius, length, capSegments, radialSegments ) {
console.warn( 'THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry.' );
super( radius, length, capSegments, radialSegments );
}
}
export class CircleBufferGeometry extends CircleGeometry { // @deprecated, r144
constructor( radius, segments, thetaStart, thetaLength ) {
console.warn( 'THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry.' );
super( radius, segments, thetaStart, thetaLength );
}
}
export class ConeBufferGeometry extends ConeGeometry { // @deprecated, r144
constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
console.warn( 'THREE.ConeBufferGeometry has been renamed to THREE.ConeGeometry.' );
super( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
}
}
export class CylinderBufferGeometry extends CylinderGeometry { // @deprecated, r144
constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
console.warn( 'THREE.CylinderBufferGeometry has been renamed to THREE.CylinderGeometry.' );
super( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
}
}
export class DodecahedronBufferGeometry extends DodecahedronGeometry { // @deprecated, r144
constructor( radius, detail ) {
console.warn( 'THREE.DodecahedronBufferGeometry has been renamed to THREE.DodecahedronGeometry.' );
super( radius, detail );
}
}
export class ExtrudeBufferGeometry extends ExtrudeGeometry { // @deprecated, r144
constructor( shapes, options ) {
console.warn( 'THREE.ExtrudeBufferGeometry has been renamed to THREE.ExtrudeGeometry.' );
super( shapes, options );
}
}
export class IcosahedronBufferGeometry extends IcosahedronGeometry { // @deprecated, r144
constructor( radius, detail ) {
console.warn( 'THREE.IcosahedronBufferGeometry has been renamed to THREE.IcosahedronGeometry.' );
super( radius, detail );
}
}
export class LatheBufferGeometry extends LatheGeometry { // @deprecated, r144
constructor( points, segments, phiStart, phiLength ) {
console.warn( 'THREE.LatheBufferGeometry has been renamed to THREE.LatheGeometry.' );
super( points, segments, phiStart, phiLength );
}
}
export class OctahedronBufferGeometry extends OctahedronGeometry { // @deprecated, r144
constructor( radius, detail ) {
console.warn( 'THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry.' );
super( radius, detail );
}
}
export class PlaneBufferGeometry extends PlaneGeometry { // @deprecated, r144
constructor( width, height, widthSegments, heightSegments ) {
console.warn( 'THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry.' );
super( width, height, widthSegments, heightSegments );
}
}
export class PolyhedronBufferGeometry extends PolyhedronGeometry { // @deprecated, r144
constructor( vertices, indices, radius, detail ) {
console.warn( 'THREE.PolyhedronBufferGeometry has been renamed to THREE.PolyhedronGeometry.' );
super( vertices, indices, radius, detail );
}
}
export class RingBufferGeometry extends RingGeometry { // @deprecated, r144
constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
console.warn( 'THREE.RingBufferGeometry has been renamed to THREE.RingGeometry.' );
super( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength );
}
}
export class ShapeBufferGeometry extends ShapeGeometry { // @deprecated, r144
constructor( shapes, curveSegments ) {
console.warn( 'THREE.ShapeBufferGeometry has been renamed to THREE.ShapeGeometry.' );
super( shapes, curveSegments );
}
}
export class SphereBufferGeometry extends SphereGeometry { // @deprecated, r144
constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
console.warn( 'THREE.SphereBufferGeometry has been renamed to THREE.SphereGeometry.' );
super( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength );
}
}
export class TetrahedronBufferGeometry extends TetrahedronGeometry { // @deprecated, r144
constructor( radius, detail ) {
console.warn( 'THREE.TetrahedronBufferGeometry has been renamed to THREE.TetrahedronGeometry.' );
super( radius, detail );
}
}
export class TorusBufferGeometry extends TorusGeometry { // @deprecated, r144
constructor( radius, tube, radialSegments, tubularSegments, arc ) {
console.warn( 'THREE.TorusBufferGeometry has been renamed to THREE.TorusGeometry.' );
super( radius, tube, radialSegments, tubularSegments, arc );
}
}
export class TorusKnotBufferGeometry extends TorusKnotGeometry { // @deprecated, r144
constructor( radius, tube, tubularSegments, radialSegments, p, q ) {
console.warn( 'THREE.TorusKnotBufferGeometry has been renamed to THREE.TorusKnotGeometry.' );
super( radius, tube, tubularSegments, radialSegments, p, q );
}
}
export class TubeBufferGeometry extends TubeGeometry { // @deprecated, r144
constructor( path, tubularSegments, radius, radialSegments, closed ) {
console.warn( 'THREE.TubeBufferGeometry has been renamed to THREE.TubeGeometry.' );
super( path, tubularSegments, radius, radialSegments, closed );
}
}