@@ -62,12 +62,7 @@ export declare function createPlaneVertices({ width, depth, subdivisionsWidth, s
6262 depth ?: number | undefined ;
6363 subdivisionsWidth ?: number | undefined ;
6464 subdivisionsDepth ?: number | undefined ;
65- } ) : {
66- position : Float32Array ;
67- normal : Float32Array ;
68- texcoord : Float32Array ;
69- indices : Uint16Array ;
70- } ;
65+ } ) : Arrays ;
7166/**
7267 * Creates sphere vertices.
7368 *
@@ -95,12 +90,7 @@ export declare function createSphereVertices({ radius, subdivisionsAxis, subdivi
9590 endLatitudeInRadians ?: number | undefined ;
9691 startLongitudeInRadians ?: number | undefined ;
9792 endLongitudeInRadians ?: number | undefined ;
98- } ) : {
99- position : Float32Array ;
100- normal : Float32Array ;
101- texcoord : Float32Array ;
102- indices : Uint16Array ;
103- } ;
93+ } ) : Arrays ;
10494/**
10595 * Creates the vertices and indices for a cube.
10696 *
@@ -112,12 +102,7 @@ export declare function createSphereVertices({ radius, subdivisionsAxis, subdivi
112102 */
113103export declare function createCubeVertices ( { size } ?: {
114104 size ?: number | undefined ;
115- } ) : {
116- position : Float32Array ;
117- normal : Float32Array ;
118- texcoord : Float32Array ;
119- indices : Uint16Array ;
120- } ;
105+ } ) : Arrays ;
121106/**
122107 * Creates vertices for a truncated cone, which is like a cylinder
123108 * except that it has different top and bottom radii. A truncated cone
@@ -144,22 +129,15 @@ export declare function createTruncatedConeVertices({ bottomRadius, topRadius, h
144129 verticalSubdivisions ?: number | undefined ;
145130 topCap ?: boolean | undefined ;
146131 bottomCap ?: boolean | undefined ;
147- } ) : {
148- position : Float32Array ;
149- normal : Float32Array ;
150- texcoord : Float32Array ;
151- indices : Uint16Array ;
152- } ;
132+ } ) : Arrays ;
153133/**
154134 * Creates 3D 'F' vertices.
155135 * An 'F' is useful because you can easily tell which way it is oriented.
156136 * The created 'F' has position, normal, texcoord, and color arrays.
157137 *
158138 * @return The created vertices.
159139 */
160- export declare function create3DFVertices ( ) : {
161- [ k : string ] : Uint8Array | Uint16Array | Float32Array ;
162- } ;
140+ export declare function create3DFVertices ( ) : Arrays ;
163141/**
164142 * Creates cylinder vertices. The cylinder will be created around the origin
165143 * along the y-axis.
@@ -180,12 +158,7 @@ export declare function createCylinderVertices({ radius, height, radialSubdivisi
180158 verticalSubdivisions ?: number | undefined ;
181159 topCap ?: boolean | undefined ;
182160 bottomCap ?: boolean | undefined ;
183- } ) : {
184- position : Float32Array ;
185- normal : Float32Array ;
186- texcoord : Float32Array ;
187- indices : Uint16Array ;
188- } ;
161+ } ) : Arrays ;
189162/**
190163 * Creates vertices for a torus
191164 *
@@ -205,12 +178,7 @@ export declare function createTorusVertices({ radius, thickness, radialSubdivisi
205178 bodySubdivisions ?: number | undefined ;
206179 startAngle ?: number | undefined ;
207180 endAngle ?: number | undefined ;
208- } ) : {
209- position : Float32Array ;
210- normal : Float32Array ;
211- texcoord : Float32Array ;
212- indices : Uint16Array ;
213- } ;
181+ } ) : Arrays ;
214182/**
215183 * Creates disc vertices. The disc will be in the xz plane, centered at
216184 * the origin. When creating, at least 3 divisions, or pie
@@ -242,12 +210,7 @@ export declare function createDiscVertices({ radius, divisions, stacks, innerRad
242210 stacks ?: number | undefined ;
243211 innerRadius ?: number | undefined ;
244212 stackPower ?: number | undefined ;
245- } ) : {
246- position : Float32Array ;
247- normal : Float32Array ;
248- texcoord : Float32Array ;
249- indices : Uint16Array ;
250- } ;
213+ } ) : Arrays ;
251214/**
252215 * Given indexed vertices creates a new set of vertices un-indexed by expanding the vertices by index.
253216 */
0 commit comments