Skip to content

Commit 0e82588

Browse files
committed
ExtrudeGeometry: Refactor interface.
1 parent 02145fe commit 0e82588

File tree

4 files changed

+377
-466
lines changed

4 files changed

+377
-466
lines changed

docs/api/geometries/ExtrudeBufferGeometry.html

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -92,49 +92,6 @@ <h3>[name]([param:Array shapes], [param:Object options])</h3>
9292
applied to the face; the second material will be applied to the sides.
9393
</p>
9494

95-
96-
<h2>Properties</h2>
97-
98-
99-
<h2>Methods</h2>
100-
101-
<h3>[method:null addShapeList]([param:Array shapes], [param:Object options])</h3>
102-
<p>
103-
shapes — An Array of shapes to add. <br />
104-
options — Object that can contain the following parameters.
105-
<ul>
106-
<li>curveSegments — int. Number of points on the curves. Default is 12.</li>
107-
<li>steps — int. Number of points used for subdividing segments along the depth of the extruded spline. Default is 1.</li>
108-
<li>amount — int. Depth to extrude the shape. Default is 100.</li>
109-
<li>bevelEnabled — bool. Apply beveling to the shape. Default is true.</li>
110-
<li>bevelThickness — float. How deep into the original shape the bevel goes. Default is 6.</li>
111-
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
112-
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
113-
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
114-
<li>UVGenerator — Object. object that provides UV generator functions</li>
115-
</ul>
116-
</p>
117-
<p>Adds the shapes to the list to extrude.</p>
118-
119-
<h3>[method:null addShape]([param:Shape shape], [param:Object options])</h3>
120-
<p>
121-
shape — A shape to add. <br />
122-
options — Object that can contain the following parameters.
123-
<ul>
124-
<li>curveSegments — int. Number of points on the curves. Default is 12.</li>
125-
<li>steps — int. Number of points used for subdividing segments along the depth of the extruded spline. Default is 1.</li>
126-
<li>amount — int. Depth to extrude the shape. Default is 100.</li>
127-
<li>bevelEnabled — bool. Apply beveling to the shape. Default is true.</li>
128-
<li>bevelThickness — float. How deep into the original shape the bevel goes. Default is 6.</li>
129-
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
130-
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
131-
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
132-
<li>UVGenerator — Object. object that provides UV generator functions</li>
133-
</ul>
134-
</p>
135-
<p>Add the shape to the list to extrude.</p>
136-
137-
13895
<h2>Source</h2>
13996

14097
[link:https://github.com/mrdoob/three.js/blob/master/src/geometries/ExtrudeGeometry.js src/geometries/ExtrudeGeometry.js]

docs/api/geometries/ExtrudeGeometry.html

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -92,49 +92,6 @@ <h3>[name]([param:Array shapes], [param:Object options])</h3>
9292
applied to the face; the second material will be applied to the sides.
9393
</p>
9494

95-
96-
<h2>Properties</h2>
97-
98-
99-
<h2>Methods</h2>
100-
101-
<h3>[method:null addShapeList]([param:Array shapes], [param:Object options])</h3>
102-
<p>
103-
shapes — An Array of shapes to add. <br />
104-
options — Object that can contain the following parameters.
105-
<ul>
106-
<li>curveSegments — int. Number of points on the curves. Default is 12.</li>
107-
<li>steps — int. Number of points used for subdividing segments along the depth of the extruded spline. Default is 1.</li>
108-
<li>amount — int. Depth to extrude the shape. Default is 100.</li>
109-
<li>bevelEnabled — bool. Apply beveling to the shape. Default is true.</li>
110-
<li>bevelThickness — float. How deep into the original shape the bevel goes. Default is 6.</li>
111-
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
112-
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
113-
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
114-
<li>UVGenerator — Object. object that provides UV generator functions</li>
115-
</ul>
116-
</p>
117-
<p>Adds the shapes to the list to extrude.</p>
118-
119-
<h3>[method:null addShape]([param:Shape shape], [param:Object options])</h3>
120-
<p>
121-
shape — A shape to add. <br />
122-
options — Object that can contain the following parameters.
123-
<ul>
124-
<li>curveSegments — int. Number of points on the curves. Default is 12.</li>
125-
<li>steps — int. Number of points used for subdividing segments along the depth of the extruded spline. Default is 1.</li>
126-
<li>amount — int. Depth to extrude the shape. Default is 100.</li>
127-
<li>bevelEnabled — bool. Apply beveling to the shape. Default is true.</li>
128-
<li>bevelThickness — float. How deep into the original shape the bevel goes. Default is 6.</li>
129-
<li>bevelSize — float. Distance from the shape outline that the bevel extends. Default is bevelThickness - 2.</li>
130-
<li>bevelSegments — int. Number of bevel layers. Default is 3.</li>
131-
<li>extrudePath — THREE.CurvePath. A 3D spline path along which the shape should be extruded.</li>
132-
<li>UVGenerator — Object. object that provides UV generator functions</li>
133-
</ul>
134-
</p>
135-
<p>Add the shape to the list to extrude.</p>
136-
137-
13895
<h2>Source</h2>
13996

14097
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]

src/Three.Legacy.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { SkeletonHelper } from './helpers/SkeletonHelper.js';
3434
import { BoxGeometry } from './geometries/BoxGeometry.js';
3535
import { EdgesGeometry } from './geometries/EdgesGeometry.js';
3636
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
37+
import { ExtrudeBufferGeometry } from './geometries/ExtrudeGeometry.js';
3738
import { ShapeGeometry } from './geometries/ShapeGeometry.js';
3839
import { WireframeGeometry } from './geometries/WireframeGeometry.js';
3940
import { Light } from './lights/Light.js';
@@ -1202,6 +1203,30 @@ Object.defineProperties( BufferGeometry.prototype, {
12021203

12031204
//
12041205

1206+
Object.assign( ExtrudeBufferGeometry.prototype, {
1207+
1208+
getArrays: function () {
1209+
1210+
console.error( 'THREE.ExtrudeBufferGeometry: .getArrays() has been removed.' );
1211+
1212+
},
1213+
1214+
addShapeList: function () {
1215+
1216+
console.error( 'THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.' );
1217+
1218+
},
1219+
1220+
addShape: function () {
1221+
1222+
console.error( 'THREE.ExtrudeBufferGeometry: .addShape() has been removed.' );
1223+
1224+
}
1225+
1226+
} );
1227+
1228+
//
1229+
12051230
Object.defineProperties( Uniform.prototype, {
12061231

12071232
dynamic: {

0 commit comments

Comments
 (0)