@woosh/meep-engine 2.117.25 → 2.117.26
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.
- package/package.json +1 -1
- package/src/core/geom/3d/sphere/sphere_fibonacci_point.d.ts +1 -1
- package/src/core/geom/3d/sphere/sphere_fibonacci_point.js +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +7 -0
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +11 -0
- package/src/engine/graphics/sh3/prototypeSH3Probe.js +2 -2
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* }
|
|
10
10
|
*
|
|
11
11
|
* The points go from z = +1 down to z = -1 in a spiral. To generate samples on the +z hemisphere, just stop before i > N/2.
|
|
12
|
-
* @param {number[]|Float32Array} output
|
|
12
|
+
* @param {number[]|Float32Array} output 3d point
|
|
13
13
|
* @param {number} output_offset
|
|
14
14
|
* @param {number} i index of a point, from 0 to n-1
|
|
15
15
|
* @param {number} n total number of points
|
|
@@ -25,7 +25,7 @@ const PHI = Math.sqrt(5) * 0.5 + 0.5;
|
|
|
25
25
|
* }
|
|
26
26
|
*
|
|
27
27
|
* The points go from z = +1 down to z = -1 in a spiral. To generate samples on the +z hemisphere, just stop before i > N/2.
|
|
28
|
-
* @param {number[]|Float32Array} output
|
|
28
|
+
* @param {number[]|Float32Array} output 3d point
|
|
29
29
|
* @param {number} output_offset
|
|
30
30
|
* @param {number} i index of a point, from 0 to n-1
|
|
31
31
|
* @param {number} n total number of points
|
|
@@ -86,6 +86,13 @@ export class TetrahedralMesh {
|
|
|
86
86
|
* @private
|
|
87
87
|
*/
|
|
88
88
|
private __free_pointer;
|
|
89
|
+
/**
|
|
90
|
+
* Access raw data
|
|
91
|
+
* Useful for serialization
|
|
92
|
+
* If you intend to modify the data directly - make sure you fully understand the implications of doing so
|
|
93
|
+
* @returns {ArrayBuffer}
|
|
94
|
+
*/
|
|
95
|
+
get data_buffer(): ArrayBuffer;
|
|
89
96
|
/**
|
|
90
97
|
* Exposes internal state, when this is false there are hole in the allocated memory
|
|
91
98
|
* Useful mainly for serialization and debugging.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TetrahedralMesh.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/tetrahedra/TetrahedralMesh.js"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,qCAFU,MAAM,CAEkD;AAElE;;;GAGG;AACH,gCAFU,MAAM,CAE4B;AAE5C;;;GAGG;AACH,4BAFU,MAAM,CAEwB;AAoBxC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACI;;;OAGG;IACH,2BAFW,MAAM,EAqDhB;IAhDG;;;;OAIG;IACH,iBAAsE;IAEtE;;;;OAIG;IACH,sBAAmD;IAEnD;;;;OAIG;IACH,eAAyC;IAEzC;;;;OAIG;IACH,mBAA8B;IAE9B;;;;OAIG;IACH,mBAAmB;IAEnB;;;;OAIG;IACH,eAAgB;IAEhB;;;;OAIG;IACH,uBAAuB;
|
|
1
|
+
{"version":3,"file":"TetrahedralMesh.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/tetrahedra/TetrahedralMesh.js"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,qCAFU,MAAM,CAEkD;AAElE;;;GAGG;AACH,gCAFU,MAAM,CAE4B;AAE5C;;;GAGG;AACH,4BAFU,MAAM,CAEwB;AAoBxC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACI;;;OAGG;IACH,2BAFW,MAAM,EAqDhB;IAhDG;;;;OAIG;IACH,iBAAsE;IAEtE;;;;OAIG;IACH,sBAAmD;IAEnD;;;;OAIG;IACH,eAAyC;IAEzC;;;;OAIG;IACH,mBAA8B;IAE9B;;;;OAIG;IACH,mBAAmB;IAEnB;;;;OAIG;IACH,eAAgB;IAEhB;;;;OAIG;IAC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A2ClB;IAED;;;OAGG;IACH,kBAFW,YAAY,QAUtB;IAED;;;OAGG;IACH,oBAFW,YAAY,QAiBtB;IAED;;;OAGG;IACH,oBAFY,MAAM,CAYjB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAUhB;IAGL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;CAN1C;6BA1xB4B,iCAAiC"}
|
|
@@ -134,6 +134,17 @@ export class TetrahedralMesh {
|
|
|
134
134
|
this.__free_pointer = 0;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Access raw data
|
|
140
|
+
* Useful for serialization
|
|
141
|
+
* If you intend to modify the data directly - make sure you fully understand the implications of doing so
|
|
142
|
+
* @returns {ArrayBuffer}
|
|
143
|
+
*/
|
|
144
|
+
get data_buffer(){
|
|
145
|
+
return this.__buffer;
|
|
146
|
+
}
|
|
147
|
+
|
|
137
148
|
/**
|
|
138
149
|
* Exposes internal state, when this is false there are hole in the allocated memory
|
|
139
150
|
* Useful mainly for serialization and debugging.
|
|
@@ -382,7 +382,7 @@ async function main(engine) {
|
|
|
382
382
|
// const path = 'data/models/samples/cyberpunk_bike/scene.gltf';
|
|
383
383
|
// const path = 'data/models/LowPolyTownshipSet/Town_Hall/model.gltf';
|
|
384
384
|
// const path = 'data/models/sibenik/3-window-less/model.gltf';
|
|
385
|
-
|
|
385
|
+
const path = 'data/models/sponza-pbr/gltf/sponza.glb';
|
|
386
386
|
// const path = 'data/models/samples/susanne.glb';
|
|
387
387
|
// const path = 'data/models/samples/teapot.gltf';
|
|
388
388
|
// const path = 'data/models/samples/salle_de_bain/model.glb';
|
|
@@ -390,7 +390,7 @@ async function main(engine) {
|
|
|
390
390
|
// const path = 'data/models/pica_pica/pica_pica.gltf';
|
|
391
391
|
// const path = 'data/models/samples/gi_box_01/model.glb';
|
|
392
392
|
// const path = 'data/models/samples/low_poly_classroom/no-glass/model.gltf';
|
|
393
|
-
const path = 'customer_data/halon_scene.glb';
|
|
393
|
+
// const path = 'customer_data/halon_scene.glb';
|
|
394
394
|
|
|
395
395
|
const mesh_asset = await engine.assetManager.promise(path, 'model/gltf+json');
|
|
396
396
|
const gltf = mesh_asset.gltf;
|