@rtzh/engine 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/Source/Scene/GltfLoader.js +2 -2
  2. package/Source/Scene/Model/CustomShader.js +2 -2
  3. package/index.js +504 -504
  4. package/package.json +1 -1
  5. package/Build/ThirdParty/Workers/zip-web-worker.js +0 -640
  6. package/Build/Workers/chunk-245NZYCR.js +0 -124
  7. package/Build/Workers/chunk-25BA4527.js +0 -837
  8. package/Build/Workers/chunk-4HXPSZRC.js +0 -1483
  9. package/Build/Workers/chunk-4Z26IS65.js +0 -3514
  10. package/Build/Workers/chunk-55IROWAX.js +0 -139
  11. package/Build/Workers/chunk-56XTN5NJ.js +0 -1800
  12. package/Build/Workers/chunk-5VZISKJF.js +0 -629
  13. package/Build/Workers/chunk-5WAG5YKS.js +0 -368
  14. package/Build/Workers/chunk-66YGZWBI.js +0 -1317
  15. package/Build/Workers/chunk-6H33B6OL.js +0 -37
  16. package/Build/Workers/chunk-6LZBBEA7.js +0 -439
  17. package/Build/Workers/chunk-6XJO625E.js +0 -497
  18. package/Build/Workers/chunk-75UGCVME.js +0 -102
  19. package/Build/Workers/chunk-7B23DD46.js +0 -1054
  20. package/Build/Workers/chunk-7NCJH26L.js +0 -352
  21. package/Build/Workers/chunk-AIW5F22O.js +0 -352
  22. package/Build/Workers/chunk-AL22JVIA.js +0 -256
  23. package/Build/Workers/chunk-AVSQILVI.js +0 -75
  24. package/Build/Workers/chunk-B2VFNYD7.js +0 -280
  25. package/Build/Workers/chunk-BOV6T7FO.js +0 -44
  26. package/Build/Workers/chunk-DP76S3IQ.js +0 -1067
  27. package/Build/Workers/chunk-EDIUN7V3.js +0 -219
  28. package/Build/Workers/chunk-EKMWNF4U.js +0 -55
  29. package/Build/Workers/chunk-ELXGXAYS.js +0 -682
  30. package/Build/Workers/chunk-FVYRV2T6.js +0 -455
  31. package/Build/Workers/chunk-GDIBU55R.js +0 -778
  32. package/Build/Workers/chunk-HAY6YE7M.js +0 -97
  33. package/Build/Workers/chunk-I76SRIKN.js +0 -138
  34. package/Build/Workers/chunk-IELTSYPZ.js +0 -241
  35. package/Build/Workers/chunk-J4MIJCN5.js +0 -171
  36. package/Build/Workers/chunk-JFO3ELF3.js +0 -642
  37. package/Build/Workers/chunk-K4IMD7KH.js +0 -162
  38. package/Build/Workers/chunk-KFMCOG26.js +0 -692
  39. package/Build/Workers/chunk-KH2OWUUA.js +0 -163
  40. package/Build/Workers/chunk-KQIZ7AFF.js +0 -8366
  41. package/Build/Workers/chunk-KVE5EAPO.js +0 -398
  42. package/Build/Workers/chunk-OAOREOSO.js +0 -940
  43. package/Build/Workers/chunk-OFJRMGNX.js +0 -788
  44. package/Build/Workers/chunk-PLLZB3R4.js +0 -198
  45. package/Build/Workers/chunk-POY6ZE32.js +0 -2058
  46. package/Build/Workers/chunk-PV5B2YNB.js +0 -2719
  47. package/Build/Workers/chunk-Q2DXNFYW.js +0 -414
  48. package/Build/Workers/chunk-QWV2DM66.js +0 -1443
  49. package/Build/Workers/chunk-R73BHGGI.js +0 -305
  50. package/Build/Workers/chunk-S3AE3MZZ.js +0 -511
  51. package/Build/Workers/chunk-SBFTVHRW.js +0 -57
  52. package/Build/Workers/chunk-SOR7PD4V.js +0 -114
  53. package/Build/Workers/chunk-TO7TWUET.js +0 -476
  54. package/Build/Workers/chunk-TSAJNE4K.js +0 -101
  55. package/Build/Workers/chunk-TWF4XRZ6.js +0 -73
  56. package/Build/Workers/chunk-UTWLMOPM.js +0 -387
  57. package/Build/Workers/chunk-UYT2PBMV.js +0 -58
  58. package/Build/Workers/chunk-WAS3IHIQ.js +0 -288
  59. package/Build/Workers/chunk-WO5ZNC7S.js +0 -1045
  60. package/Build/Workers/chunk-X65Y2JSA.js +0 -55
  61. package/Build/Workers/chunk-XOVHLPKW.js +0 -299
  62. package/Build/Workers/chunk-YPGJSFOO.js +0 -1460
  63. package/Build/Workers/combineGeometry.js +0 -66
  64. package/Build/Workers/createBoxGeometry.js +0 -58
  65. package/Build/Workers/createBoxOutlineGeometry.js +0 -231
  66. package/Build/Workers/createCircleGeometry.js +0 -201
  67. package/Build/Workers/createCircleOutlineGeometry.js +0 -147
  68. package/Build/Workers/createCoplanarPolygonGeometry.js +0 -505
  69. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +0 -225
  70. package/Build/Workers/createCorridorGeometry.js +0 -1258
  71. package/Build/Workers/createCorridorOutlineGeometry.js +0 -563
  72. package/Build/Workers/createCylinderGeometry.js +0 -60
  73. package/Build/Workers/createCylinderOutlineGeometry.js +0 -231
  74. package/Build/Workers/createEllipseGeometry.js +0 -72
  75. package/Build/Workers/createEllipseOutlineGeometry.js +0 -65
  76. package/Build/Workers/createEllipsoidGeometry.js +0 -59
  77. package/Build/Workers/createEllipsoidOutlineGeometry.js +0 -61
  78. package/Build/Workers/createFrustumGeometry.js +0 -58
  79. package/Build/Workers/createFrustumOutlineGeometry.js +0 -234
  80. package/Build/Workers/createGeometry.js +0 -173
  81. package/Build/Workers/createGroundPolylineGeometry.js +0 -1602
  82. package/Build/Workers/createPlaneGeometry.js +0 -223
  83. package/Build/Workers/createPlaneOutlineGeometry.js +0 -124
  84. package/Build/Workers/createPolygonGeometry.js +0 -1404
  85. package/Build/Workers/createPolygonOutlineGeometry.js +0 -532
  86. package/Build/Workers/createPolylineGeometry.js +0 -491
  87. package/Build/Workers/createPolylineVolumeGeometry.js +0 -374
  88. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +0 -272
  89. package/Build/Workers/createRectangleGeometry.js +0 -1264
  90. package/Build/Workers/createRectangleOutlineGeometry.js +0 -476
  91. package/Build/Workers/createSimplePolylineGeometry.js +0 -397
  92. package/Build/Workers/createSphereGeometry.js +0 -116
  93. package/Build/Workers/createSphereOutlineGeometry.js +0 -116
  94. package/Build/Workers/createTaskProcessorWorker.js +0 -32
  95. package/Build/Workers/createVectorTileClampedPolylines.js +0 -492
  96. package/Build/Workers/createVectorTileGeometries.js +0 -387
  97. package/Build/Workers/createVectorTilePoints.js +0 -114
  98. package/Build/Workers/createVectorTilePolygons.js +0 -386
  99. package/Build/Workers/createVectorTilePolylines.js +0 -262
  100. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -91
  101. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -565
  102. package/Build/Workers/createVerticesFromHeightmap.js +0 -2254
  103. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -499
  104. package/Build/Workers/createWallGeometry.js +0 -487
  105. package/Build/Workers/createWallOutlineGeometry.js +0 -335
  106. package/Build/Workers/decodeDraco.js +0 -369
  107. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +0 -2680
  108. package/Build/Workers/decodeI3S.js +0 -1339
  109. package/Build/Workers/gaussianSplatSorter.js +0 -62
  110. package/Build/Workers/gaussianSplatTextureGenerator.js +0 -68
  111. package/Build/Workers/incrementallyBuildTerrainPicker.js +0 -121
  112. package/Build/Workers/transcodeKTX2.js +0 -3463
  113. package/Build/Workers/transferTypedArrayTest.js +0 -41
  114. package/Build/Workers/upsampleQuantizedTerrainMesh.js +0 -820
  115. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -95
@@ -1,398 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- CylinderGeometryLibrary_default
28
- } from "./chunk-TWF4XRZ6.js";
29
- import {
30
- GeometryOffsetAttribute_default
31
- } from "./chunk-6H33B6OL.js";
32
- import {
33
- VertexFormat_default
34
- } from "./chunk-I76SRIKN.js";
35
- import {
36
- IndexDatatype_default
37
- } from "./chunk-55IROWAX.js";
38
- import {
39
- GeometryAttributes_default
40
- } from "./chunk-BOV6T7FO.js";
41
- import {
42
- GeometryAttribute_default,
43
- Geometry_default,
44
- PrimitiveType_default
45
- } from "./chunk-XOVHLPKW.js";
46
- import {
47
- BoundingSphere_default
48
- } from "./chunk-OAOREOSO.js";
49
- import {
50
- ComponentDatatype_default
51
- } from "./chunk-AL22JVIA.js";
52
- import {
53
- Cartesian2_default
54
- } from "./chunk-YPGJSFOO.js";
55
- import {
56
- Cartesian3_default,
57
- Frozen_default
58
- } from "./chunk-QWV2DM66.js";
59
- import {
60
- Math_default
61
- } from "./chunk-6XJO625E.js";
62
- import {
63
- DeveloperError_default
64
- } from "./chunk-KH2OWUUA.js";
65
- import {
66
- defined_default
67
- } from "./chunk-AVSQILVI.js";
68
-
69
- // packages/engine/Source/Core/CylinderGeometry.js
70
- var radiusScratch = new Cartesian2_default();
71
- var normalScratch = new Cartesian3_default();
72
- var bitangentScratch = new Cartesian3_default();
73
- var tangentScratch = new Cartesian3_default();
74
- var positionScratch = new Cartesian3_default();
75
- function CylinderGeometry(options) {
76
- options = options ?? Frozen_default.EMPTY_OBJECT;
77
- const length = options.length;
78
- const topRadius = options.topRadius;
79
- const bottomRadius = options.bottomRadius;
80
- const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
81
- const slices = options.slices ?? 128;
82
- if (!defined_default(length)) {
83
- throw new DeveloperError_default("options.length must be defined.");
84
- }
85
- if (!defined_default(topRadius)) {
86
- throw new DeveloperError_default("options.topRadius must be defined.");
87
- }
88
- if (!defined_default(bottomRadius)) {
89
- throw new DeveloperError_default("options.bottomRadius must be defined.");
90
- }
91
- if (slices < 3) {
92
- throw new DeveloperError_default(
93
- "options.slices must be greater than or equal to 3."
94
- );
95
- }
96
- if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
97
- throw new DeveloperError_default(
98
- "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
99
- );
100
- }
101
- this._length = length;
102
- this._topRadius = topRadius;
103
- this._bottomRadius = bottomRadius;
104
- this._vertexFormat = VertexFormat_default.clone(vertexFormat);
105
- this._slices = slices;
106
- this._offsetAttribute = options.offsetAttribute;
107
- this._workerName = "createCylinderGeometry";
108
- }
109
- CylinderGeometry.packedLength = VertexFormat_default.packedLength + 5;
110
- CylinderGeometry.pack = function(value, array, startingIndex) {
111
- if (!defined_default(value)) {
112
- throw new DeveloperError_default("value is required");
113
- }
114
- if (!defined_default(array)) {
115
- throw new DeveloperError_default("array is required");
116
- }
117
- startingIndex = startingIndex ?? 0;
118
- VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
119
- startingIndex += VertexFormat_default.packedLength;
120
- array[startingIndex++] = value._length;
121
- array[startingIndex++] = value._topRadius;
122
- array[startingIndex++] = value._bottomRadius;
123
- array[startingIndex++] = value._slices;
124
- array[startingIndex] = value._offsetAttribute ?? -1;
125
- return array;
126
- };
127
- var scratchVertexFormat = new VertexFormat_default();
128
- var scratchOptions = {
129
- vertexFormat: scratchVertexFormat,
130
- length: void 0,
131
- topRadius: void 0,
132
- bottomRadius: void 0,
133
- slices: void 0,
134
- offsetAttribute: void 0
135
- };
136
- CylinderGeometry.unpack = function(array, startingIndex, result) {
137
- if (!defined_default(array)) {
138
- throw new DeveloperError_default("array is required");
139
- }
140
- startingIndex = startingIndex ?? 0;
141
- const vertexFormat = VertexFormat_default.unpack(
142
- array,
143
- startingIndex,
144
- scratchVertexFormat
145
- );
146
- startingIndex += VertexFormat_default.packedLength;
147
- const length = array[startingIndex++];
148
- const topRadius = array[startingIndex++];
149
- const bottomRadius = array[startingIndex++];
150
- const slices = array[startingIndex++];
151
- const offsetAttribute = array[startingIndex];
152
- if (!defined_default(result)) {
153
- scratchOptions.length = length;
154
- scratchOptions.topRadius = topRadius;
155
- scratchOptions.bottomRadius = bottomRadius;
156
- scratchOptions.slices = slices;
157
- scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
158
- return new CylinderGeometry(scratchOptions);
159
- }
160
- result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
161
- result._length = length;
162
- result._topRadius = topRadius;
163
- result._bottomRadius = bottomRadius;
164
- result._slices = slices;
165
- result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
166
- return result;
167
- };
168
- CylinderGeometry.createGeometry = function(cylinderGeometry) {
169
- let length = cylinderGeometry._length;
170
- const topRadius = cylinderGeometry._topRadius;
171
- const bottomRadius = cylinderGeometry._bottomRadius;
172
- const vertexFormat = cylinderGeometry._vertexFormat;
173
- const slices = cylinderGeometry._slices;
174
- if (length <= 0 || topRadius < 0 || bottomRadius < 0 || topRadius === 0 && bottomRadius === 0) {
175
- return;
176
- }
177
- const twoSlices = slices + slices;
178
- const threeSlices = slices + twoSlices;
179
- const numVertices = twoSlices + twoSlices;
180
- const positions = CylinderGeometryLibrary_default.computePositions(
181
- length,
182
- topRadius,
183
- bottomRadius,
184
- slices,
185
- true
186
- );
187
- const st = vertexFormat.st ? new Float32Array(numVertices * 2) : void 0;
188
- const normals = vertexFormat.normal ? new Float32Array(numVertices * 3) : void 0;
189
- const tangents = vertexFormat.tangent ? new Float32Array(numVertices * 3) : void 0;
190
- const bitangents = vertexFormat.bitangent ? new Float32Array(numVertices * 3) : void 0;
191
- let i;
192
- const computeNormal = vertexFormat.normal || vertexFormat.tangent || vertexFormat.bitangent;
193
- if (computeNormal) {
194
- const computeTangent = vertexFormat.tangent || vertexFormat.bitangent;
195
- let normalIndex = 0;
196
- let tangentIndex = 0;
197
- let bitangentIndex = 0;
198
- const theta = Math.atan2(bottomRadius - topRadius, length);
199
- const normal = normalScratch;
200
- normal.z = Math.sin(theta);
201
- const normalScale = Math.cos(theta);
202
- let tangent = tangentScratch;
203
- let bitangent = bitangentScratch;
204
- for (i = 0; i < slices; i++) {
205
- const angle = i / slices * Math_default.TWO_PI;
206
- const x = normalScale * Math.cos(angle);
207
- const y = normalScale * Math.sin(angle);
208
- if (computeNormal) {
209
- normal.x = x;
210
- normal.y = y;
211
- if (computeTangent) {
212
- tangent = Cartesian3_default.normalize(
213
- Cartesian3_default.cross(Cartesian3_default.UNIT_Z, normal, tangent),
214
- tangent
215
- );
216
- }
217
- if (vertexFormat.normal) {
218
- normals[normalIndex++] = normal.x;
219
- normals[normalIndex++] = normal.y;
220
- normals[normalIndex++] = normal.z;
221
- normals[normalIndex++] = normal.x;
222
- normals[normalIndex++] = normal.y;
223
- normals[normalIndex++] = normal.z;
224
- }
225
- if (vertexFormat.tangent) {
226
- tangents[tangentIndex++] = tangent.x;
227
- tangents[tangentIndex++] = tangent.y;
228
- tangents[tangentIndex++] = tangent.z;
229
- tangents[tangentIndex++] = tangent.x;
230
- tangents[tangentIndex++] = tangent.y;
231
- tangents[tangentIndex++] = tangent.z;
232
- }
233
- if (vertexFormat.bitangent) {
234
- bitangent = Cartesian3_default.normalize(
235
- Cartesian3_default.cross(normal, tangent, bitangent),
236
- bitangent
237
- );
238
- bitangents[bitangentIndex++] = bitangent.x;
239
- bitangents[bitangentIndex++] = bitangent.y;
240
- bitangents[bitangentIndex++] = bitangent.z;
241
- bitangents[bitangentIndex++] = bitangent.x;
242
- bitangents[bitangentIndex++] = bitangent.y;
243
- bitangents[bitangentIndex++] = bitangent.z;
244
- }
245
- }
246
- }
247
- for (i = 0; i < slices; i++) {
248
- if (vertexFormat.normal) {
249
- normals[normalIndex++] = 0;
250
- normals[normalIndex++] = 0;
251
- normals[normalIndex++] = -1;
252
- }
253
- if (vertexFormat.tangent) {
254
- tangents[tangentIndex++] = 1;
255
- tangents[tangentIndex++] = 0;
256
- tangents[tangentIndex++] = 0;
257
- }
258
- if (vertexFormat.bitangent) {
259
- bitangents[bitangentIndex++] = 0;
260
- bitangents[bitangentIndex++] = -1;
261
- bitangents[bitangentIndex++] = 0;
262
- }
263
- }
264
- for (i = 0; i < slices; i++) {
265
- if (vertexFormat.normal) {
266
- normals[normalIndex++] = 0;
267
- normals[normalIndex++] = 0;
268
- normals[normalIndex++] = 1;
269
- }
270
- if (vertexFormat.tangent) {
271
- tangents[tangentIndex++] = 1;
272
- tangents[tangentIndex++] = 0;
273
- tangents[tangentIndex++] = 0;
274
- }
275
- if (vertexFormat.bitangent) {
276
- bitangents[bitangentIndex++] = 0;
277
- bitangents[bitangentIndex++] = 1;
278
- bitangents[bitangentIndex++] = 0;
279
- }
280
- }
281
- }
282
- const numIndices = 12 * slices - 12;
283
- const indices = IndexDatatype_default.createTypedArray(numVertices, numIndices);
284
- let index = 0;
285
- let j = 0;
286
- for (i = 0; i < slices - 1; i++) {
287
- indices[index++] = j;
288
- indices[index++] = j + 2;
289
- indices[index++] = j + 3;
290
- indices[index++] = j;
291
- indices[index++] = j + 3;
292
- indices[index++] = j + 1;
293
- j += 2;
294
- }
295
- indices[index++] = twoSlices - 2;
296
- indices[index++] = 0;
297
- indices[index++] = 1;
298
- indices[index++] = twoSlices - 2;
299
- indices[index++] = 1;
300
- indices[index++] = twoSlices - 1;
301
- for (i = 1; i < slices - 1; i++) {
302
- indices[index++] = twoSlices + i + 1;
303
- indices[index++] = twoSlices + i;
304
- indices[index++] = twoSlices;
305
- }
306
- for (i = 1; i < slices - 1; i++) {
307
- indices[index++] = threeSlices;
308
- indices[index++] = threeSlices + i;
309
- indices[index++] = threeSlices + i + 1;
310
- }
311
- let textureCoordIndex = 0;
312
- if (vertexFormat.st) {
313
- const rad = Math.max(topRadius, bottomRadius);
314
- for (i = 0; i < numVertices; i++) {
315
- const position = Cartesian3_default.fromArray(positions, i * 3, positionScratch);
316
- st[textureCoordIndex++] = (position.x + rad) / (2 * rad);
317
- st[textureCoordIndex++] = (position.y + rad) / (2 * rad);
318
- }
319
- }
320
- const attributes = new GeometryAttributes_default();
321
- if (vertexFormat.position) {
322
- attributes.position = new GeometryAttribute_default({
323
- componentDatatype: ComponentDatatype_default.DOUBLE,
324
- componentsPerAttribute: 3,
325
- values: positions
326
- });
327
- }
328
- if (vertexFormat.normal) {
329
- attributes.normal = new GeometryAttribute_default({
330
- componentDatatype: ComponentDatatype_default.FLOAT,
331
- componentsPerAttribute: 3,
332
- values: normals
333
- });
334
- }
335
- if (vertexFormat.tangent) {
336
- attributes.tangent = new GeometryAttribute_default({
337
- componentDatatype: ComponentDatatype_default.FLOAT,
338
- componentsPerAttribute: 3,
339
- values: tangents
340
- });
341
- }
342
- if (vertexFormat.bitangent) {
343
- attributes.bitangent = new GeometryAttribute_default({
344
- componentDatatype: ComponentDatatype_default.FLOAT,
345
- componentsPerAttribute: 3,
346
- values: bitangents
347
- });
348
- }
349
- if (vertexFormat.st) {
350
- attributes.st = new GeometryAttribute_default({
351
- componentDatatype: ComponentDatatype_default.FLOAT,
352
- componentsPerAttribute: 2,
353
- values: st
354
- });
355
- }
356
- radiusScratch.x = length * 0.5;
357
- radiusScratch.y = Math.max(bottomRadius, topRadius);
358
- const boundingSphere = new BoundingSphere_default(
359
- Cartesian3_default.ZERO,
360
- Cartesian2_default.magnitude(radiusScratch)
361
- );
362
- if (defined_default(cylinderGeometry._offsetAttribute)) {
363
- length = positions.length;
364
- const offsetValue = cylinderGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
365
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
366
- attributes.applyOffset = new GeometryAttribute_default({
367
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
368
- componentsPerAttribute: 1,
369
- values: applyOffset
370
- });
371
- }
372
- return new Geometry_default({
373
- attributes,
374
- indices,
375
- primitiveType: PrimitiveType_default.TRIANGLES,
376
- boundingSphere,
377
- offsetAttribute: cylinderGeometry._offsetAttribute
378
- });
379
- };
380
- var unitCylinderGeometry;
381
- CylinderGeometry.getUnitCylinder = function() {
382
- if (!defined_default(unitCylinderGeometry)) {
383
- unitCylinderGeometry = CylinderGeometry.createGeometry(
384
- new CylinderGeometry({
385
- topRadius: 1,
386
- bottomRadius: 1,
387
- length: 1,
388
- vertexFormat: VertexFormat_default.POSITION_ONLY
389
- })
390
- );
391
- }
392
- return unitCylinderGeometry;
393
- };
394
- var CylinderGeometry_default = CylinderGeometry;
395
-
396
- export {
397
- CylinderGeometry_default
398
- };