@babylonjs/core 8.49.6 → 8.49.7

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 (161) hide show
  1. package/Animations/animationGroup.d.ts +2 -3
  2. package/Animations/animationGroup.js +10 -15
  3. package/Animations/animationGroup.js.map +1 -1
  4. package/Bones/bone.d.ts +2 -0
  5. package/Bones/bone.js +2 -0
  6. package/Bones/bone.js.map +1 -1
  7. package/Bones/skeleton.js +7 -0
  8. package/Bones/skeleton.js.map +1 -1
  9. package/Cameras/Limits/geospatialLimits.d.ts +1 -1
  10. package/Cameras/Limits/geospatialLimits.js +1 -1
  11. package/Cameras/Limits/geospatialLimits.js.map +1 -1
  12. package/Culling/ray.core.js +2 -2
  13. package/Culling/ray.core.js.map +1 -1
  14. package/Engines/abstractEngine.js +2 -2
  15. package/Engines/abstractEngine.js.map +1 -1
  16. package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.d.ts +76 -0
  17. package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.js +209 -0
  18. package/FrameGraph/Node/Blocks/Layers/selectionOutlineLayerBlock.js.map +1 -0
  19. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.d.ts +5 -0
  20. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.js +34 -0
  21. package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.js.map +1 -1
  22. package/FrameGraph/Node/Blocks/PostProcesses/bloomPostProcessBlock.js +1 -1
  23. package/FrameGraph/Node/Blocks/PostProcesses/bloomPostProcessBlock.js.map +1 -1
  24. package/FrameGraph/Node/Blocks/index.d.ts +1 -0
  25. package/FrameGraph/Node/Blocks/index.js +1 -0
  26. package/FrameGraph/Node/Blocks/index.js.map +1 -1
  27. package/FrameGraph/Tasks/Layers/baseLayerTask.d.ts +20 -6
  28. package/FrameGraph/Tasks/Layers/baseLayerTask.js +108 -77
  29. package/FrameGraph/Tasks/Layers/baseLayerTask.js.map +1 -1
  30. package/FrameGraph/Tasks/Layers/glowLayerTask.js +1 -1
  31. package/FrameGraph/Tasks/Layers/glowLayerTask.js.map +1 -1
  32. package/FrameGraph/Tasks/Layers/highlightLayerTask.js +1 -1
  33. package/FrameGraph/Tasks/Layers/highlightLayerTask.js.map +1 -1
  34. package/FrameGraph/Tasks/Layers/selectionOutlineTask.d.ts +28 -0
  35. package/FrameGraph/Tasks/Layers/selectionOutlineTask.js +36 -0
  36. package/FrameGraph/Tasks/Layers/selectionOutlineTask.js.map +1 -0
  37. package/FrameGraph/Tasks/PostProcesses/bloomTask.d.ts +5 -0
  38. package/FrameGraph/Tasks/PostProcesses/bloomTask.js +12 -1
  39. package/FrameGraph/Tasks/PostProcesses/bloomTask.js.map +1 -1
  40. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.d.ts +5 -0
  41. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js +12 -1
  42. package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.js.map +1 -1
  43. package/FrameGraph/Tasks/PostProcesses/postProcessTask.d.ts +5 -0
  44. package/FrameGraph/Tasks/PostProcesses/postProcessTask.js +10 -1
  45. package/FrameGraph/Tasks/PostProcesses/postProcessTask.js.map +1 -1
  46. package/FrameGraph/Tasks/PostProcesses/ssao2RenderingPipelineTask.d.ts +5 -0
  47. package/FrameGraph/Tasks/PostProcesses/ssao2RenderingPipelineTask.js +12 -1
  48. package/FrameGraph/Tasks/PostProcesses/ssao2RenderingPipelineTask.js.map +1 -1
  49. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.d.ts +5 -0
  50. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.js +12 -1
  51. package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.js.map +1 -1
  52. package/FrameGraph/frameGraphRenderContext.d.ts +2 -1
  53. package/FrameGraph/frameGraphRenderContext.js +3 -1
  54. package/FrameGraph/frameGraphRenderContext.js.map +1 -1
  55. package/FrameGraph/index.d.ts +1 -0
  56. package/FrameGraph/index.js +1 -0
  57. package/FrameGraph/index.js.map +1 -1
  58. package/Layers/effectLayer.d.ts +4 -0
  59. package/Layers/effectLayer.js +2 -0
  60. package/Layers/effectLayer.js.map +1 -1
  61. package/Layers/highlightLayer.js +1 -0
  62. package/Layers/highlightLayer.js.map +1 -1
  63. package/Layers/index.d.ts +2 -0
  64. package/Layers/index.js +2 -0
  65. package/Layers/index.js.map +1 -1
  66. package/Layers/selectionOutlineLayer.d.ts +180 -0
  67. package/Layers/selectionOutlineLayer.js +319 -0
  68. package/Layers/selectionOutlineLayer.js.map +1 -0
  69. package/Layers/thinEffectLayer.d.ts +5 -1
  70. package/Layers/thinEffectLayer.js +21 -16
  71. package/Layers/thinEffectLayer.js.map +1 -1
  72. package/Layers/thinGlowLayer.js +1 -0
  73. package/Layers/thinGlowLayer.js.map +1 -1
  74. package/Layers/thinHighlightLayer.js +1 -0
  75. package/Layers/thinHighlightLayer.js.map +1 -1
  76. package/Layers/thinSelectionOutlineLayer.d.ts +148 -0
  77. package/Layers/thinSelectionOutlineLayer.js +579 -0
  78. package/Layers/thinSelectionOutlineLayer.js.map +1 -0
  79. package/Loading/Plugins/babylonFileLoader.js +136 -48
  80. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  81. package/Materials/Node/Blocks/Dual/textureBlock.d.ts +6 -0
  82. package/Materials/Node/Blocks/Dual/textureBlock.js +10 -0
  83. package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
  84. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +2 -2
  85. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
  86. package/Materials/Node/Blocks/Teleport/teleportOutBlock.js +9 -0
  87. package/Materials/Node/Blocks/Teleport/teleportOutBlock.js.map +1 -1
  88. package/Materials/Node/Blocks/index.d.ts +1 -0
  89. package/Materials/Node/Blocks/index.js +1 -0
  90. package/Materials/Node/Blocks/index.js.map +1 -1
  91. package/Materials/Node/Blocks/pannerBlock.d.ts +39 -0
  92. package/Materials/Node/Blocks/pannerBlock.js +88 -0
  93. package/Materials/Node/Blocks/pannerBlock.js.map +1 -0
  94. package/Materials/Node/nodeMaterialBuildStateSharedData.js +1 -1
  95. package/Materials/Node/nodeMaterialBuildStateSharedData.js.map +1 -1
  96. package/Maths/math.vector.functions.d.ts +11 -3
  97. package/Maths/math.vector.functions.js +10 -0
  98. package/Maths/math.vector.functions.js.map +1 -1
  99. package/Meshes/Compression/dracoCompressionWorker.d.ts +1 -1
  100. package/Meshes/Compression/dracoCompressionWorker.js +14 -9
  101. package/Meshes/Compression/dracoCompressionWorker.js.map +1 -1
  102. package/Meshes/Compression/dracoDecoder.js +1 -1
  103. package/Meshes/Compression/dracoDecoder.js.map +1 -1
  104. package/Meshes/Compression/dracoEncoder.d.ts +2 -2
  105. package/Meshes/Compression/dracoEncoder.js +11 -5
  106. package/Meshes/Compression/dracoEncoder.js.map +1 -1
  107. package/Meshes/Compression/dracoEncoder.types.d.ts +8 -5
  108. package/Meshes/Compression/dracoEncoder.types.js.map +1 -1
  109. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +18 -0
  110. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +122 -28
  111. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  112. package/Meshes/GaussianSplatting/gaussianSplattingPartProxyMesh.d.ts +74 -0
  113. package/Meshes/GaussianSplatting/gaussianSplattingPartProxyMesh.js +107 -0
  114. package/Meshes/GaussianSplatting/gaussianSplattingPartProxyMesh.js.map +1 -0
  115. package/Meshes/abstractMesh.d.ts +4 -0
  116. package/Meshes/abstractMesh.js +4 -0
  117. package/Meshes/abstractMesh.js.map +1 -1
  118. package/Meshes/csg2.js +9 -1
  119. package/Meshes/csg2.js.map +1 -1
  120. package/Meshes/instancedMesh.js +2 -2
  121. package/Meshes/instancedMesh.js.map +1 -1
  122. package/Meshes/mesh.js +6 -1
  123. package/Meshes/mesh.js.map +1 -1
  124. package/Misc/environmentTextureTools.js +1 -1
  125. package/Misc/environmentTextureTools.js.map +1 -1
  126. package/Misc/fileTools.js +1 -1
  127. package/Misc/fileTools.js.map +1 -1
  128. package/Misc/textureTools.d.ts +2 -1
  129. package/Misc/textureTools.js +5 -3
  130. package/Misc/textureTools.js.map +1 -1
  131. package/Morph/morphTarget.js +2 -1
  132. package/Morph/morphTarget.js.map +1 -1
  133. package/Particles/Node/Blocks/systemBlock.d.ts +27 -4
  134. package/Particles/Node/Blocks/systemBlock.js +36 -8
  135. package/Particles/Node/Blocks/systemBlock.js.map +1 -1
  136. package/Particles/Node/nodeParticleSystemSet.helper.js +42 -6
  137. package/Particles/Node/nodeParticleSystemSet.helper.js.map +1 -1
  138. package/Shaders/selection.fragment.d.ts +7 -0
  139. package/Shaders/selection.fragment.js +47 -0
  140. package/Shaders/selection.fragment.js.map +1 -0
  141. package/Shaders/selection.vertex.d.ts +17 -0
  142. package/Shaders/selection.vertex.js +95 -0
  143. package/Shaders/selection.vertex.js.map +1 -0
  144. package/Shaders/selectionOutline.fragment.d.ts +5 -0
  145. package/Shaders/selectionOutline.fragment.js +23 -0
  146. package/Shaders/selectionOutline.fragment.js.map +1 -0
  147. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js +1 -1
  148. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js.map +1 -1
  149. package/ShadersWGSL/selection.fragment.d.ts +7 -0
  150. package/ShadersWGSL/selection.fragment.js +47 -0
  151. package/ShadersWGSL/selection.fragment.js.map +1 -0
  152. package/ShadersWGSL/selection.vertex.d.ts +17 -0
  153. package/ShadersWGSL/selection.vertex.js +96 -0
  154. package/ShadersWGSL/selection.vertex.js.map +1 -0
  155. package/ShadersWGSL/selectionOutline.fragment.d.ts +5 -0
  156. package/ShadersWGSL/selectionOutline.fragment.js +24 -0
  157. package/ShadersWGSL/selectionOutline.fragment.js.map +1 -0
  158. package/package.json +1 -1
  159. package/scene.d.ts +2 -2
  160. package/scene.js +10 -2
  161. package/scene.js.map +1 -1
@@ -0,0 +1,74 @@
1
+ import type { Nullable } from "../../types.js";
2
+ import type { Scene } from "../../scene.js";
3
+ import { Mesh } from "../mesh.js";
4
+ import type { GaussianSplattingMesh } from "./gaussianSplattingMesh.js";
5
+ import type { Ray } from "../../Culling/ray.core.js";
6
+ import { PickingInfo } from "../../Collisions/pickingInfo.js";
7
+ /**
8
+ * Class used as a proxy mesh for a part of a compound Gaussian Splatting mesh
9
+ */
10
+ export declare class GaussianSplattingPartProxyMesh extends Mesh {
11
+ /**
12
+ * The Gaussian Splatting mesh that this proxy represents a part of
13
+ */
14
+ readonly proxiedMesh: GaussianSplattingMesh;
15
+ /**
16
+ * The index of the part in the compound mesh (internal storage)
17
+ */
18
+ private _partIndex;
19
+ /**
20
+ * Gets the index of the part in the compound mesh
21
+ */
22
+ get partIndex(): number;
23
+ /**
24
+ * The original Gaussian Splatting mesh that was merged into the compound
25
+ */
26
+ readonly compoundSplatMesh: GaussianSplattingMesh;
27
+ /**
28
+ * Creates a new Gaussian Splatting part proxy mesh
29
+ * @param name The name of the proxy mesh
30
+ * @param scene The scene the proxy mesh belongs to
31
+ * @param compoundSplatMesh The original Gaussian Splatting mesh that was merged into the compound
32
+ * @param proxiedMesh The Gaussian Splatting mesh that this proxy represents a part of
33
+ * @param partIndex The index of the part in the compound mesh
34
+ */
35
+ constructor(name: string, scene: Nullable<Scene>, compoundSplatMesh: GaussianSplattingMesh, proxiedMesh: GaussianSplattingMesh, partIndex: number);
36
+ /**
37
+ * Updates the bounding info of this proxy mesh from the proxied mesh
38
+ */
39
+ updateBoundingInfoFromProxiedMesh(): void;
40
+ /**
41
+ * Returns the class name
42
+ * @returns "GaussianSplattingPartProxyMesh"
43
+ */
44
+ getClassName(): string;
45
+ /**
46
+ * Updates the part index for this proxy mesh.
47
+ * This should only be called internally when parts are removed from the compound mesh.
48
+ * @param newPartIndex the new part index
49
+ * @internal
50
+ */
51
+ updatePartIndex(newPartIndex: number): void;
52
+ /**
53
+ * Gets whether the part is visible
54
+ */
55
+ get isVisible(): boolean;
56
+ /**
57
+ * Sets whether the part is visible
58
+ */
59
+ set isVisible(value: boolean);
60
+ /**
61
+ * Gets the visibility of the part (0.0 to 1.0)
62
+ */
63
+ get visibility(): number;
64
+ /**
65
+ * Sets the visibility of the part (0.0 to 1.0)
66
+ */
67
+ set visibility(value: number);
68
+ /**
69
+ * Checks if a ray intersects with this proxy mesh using only bounding info
70
+ * @param ray defines the ray to test
71
+ * @returns the picking info with this mesh set as pickedMesh if hit
72
+ */
73
+ intersects(ray: Ray): PickingInfo;
74
+ }
@@ -0,0 +1,107 @@
1
+ import { Mesh } from "../mesh.js";
2
+ import { BoundingInfo } from "../../Culling/boundingInfo.js";
3
+ import { PickingInfo } from "../../Collisions/pickingInfo.js";
4
+ import { Vector3 } from "../../Maths/math.vector.js";
5
+ /**
6
+ * Class used as a proxy mesh for a part of a compound Gaussian Splatting mesh
7
+ */
8
+ export class GaussianSplattingPartProxyMesh extends Mesh {
9
+ /**
10
+ * Gets the index of the part in the compound mesh
11
+ */
12
+ get partIndex() {
13
+ return this._partIndex;
14
+ }
15
+ /**
16
+ * Creates a new Gaussian Splatting part proxy mesh
17
+ * @param name The name of the proxy mesh
18
+ * @param scene The scene the proxy mesh belongs to
19
+ * @param compoundSplatMesh The original Gaussian Splatting mesh that was merged into the compound
20
+ * @param proxiedMesh The Gaussian Splatting mesh that this proxy represents a part of
21
+ * @param partIndex The index of the part in the compound mesh
22
+ */
23
+ constructor(name, scene, compoundSplatMesh, proxiedMesh, partIndex) {
24
+ super(name, scene);
25
+ this.proxiedMesh = proxiedMesh;
26
+ this._partIndex = partIndex;
27
+ this.compoundSplatMesh = compoundSplatMesh;
28
+ // Set bounding info based on the source mesh's bounds
29
+ this.updateBoundingInfoFromProxiedMesh();
30
+ this.compoundSplatMesh.setWorldMatrixForPart(this.partIndex, this.getWorldMatrix());
31
+ // Update the proxied mesh's part matrix when this proxy's world matrix changes
32
+ this.onAfterWorldMatrixUpdateObservable.add(() => {
33
+ this.compoundSplatMesh.setWorldMatrixForPart(this.partIndex, this.getWorldMatrix());
34
+ this.updateBoundingInfoFromProxiedMesh();
35
+ });
36
+ }
37
+ /**
38
+ * Updates the bounding info of this proxy mesh from the proxied mesh
39
+ */
40
+ updateBoundingInfoFromProxiedMesh() {
41
+ const boundingInfo = this.proxiedMesh.getBoundingInfo();
42
+ this.setBoundingInfo(new BoundingInfo(boundingInfo.minimum.clone(), boundingInfo.maximum.clone()));
43
+ }
44
+ /**
45
+ * Returns the class name
46
+ * @returns "GaussianSplattingPartProxyMesh"
47
+ */
48
+ getClassName() {
49
+ return "GaussianSplattingPartProxyMesh";
50
+ }
51
+ /**
52
+ * Updates the part index for this proxy mesh.
53
+ * This should only be called internally when parts are removed from the compound mesh.
54
+ * @param newPartIndex the new part index
55
+ * @internal
56
+ */
57
+ updatePartIndex(newPartIndex) {
58
+ this._partIndex = newPartIndex;
59
+ }
60
+ /**
61
+ * Gets whether the part is visible
62
+ */
63
+ get isVisible() {
64
+ return this.compoundSplatMesh.getPartVisibility(this.partIndex) > 0;
65
+ }
66
+ /**
67
+ * Sets whether the part is visible
68
+ */
69
+ set isVisible(value) {
70
+ this.compoundSplatMesh.setPartVisibility(this.partIndex, value ? 1.0 : 0.0);
71
+ }
72
+ /**
73
+ * Gets the visibility of the part (0.0 to 1.0)
74
+ */
75
+ get visibility() {
76
+ return this.compoundSplatMesh.getPartVisibility(this.partIndex);
77
+ }
78
+ /**
79
+ * Sets the visibility of the part (0.0 to 1.0)
80
+ */
81
+ set visibility(value) {
82
+ this.compoundSplatMesh.setPartVisibility(this.partIndex, value);
83
+ }
84
+ /**
85
+ * Checks if a ray intersects with this proxy mesh using only bounding info
86
+ * @param ray defines the ray to test
87
+ * @returns the picking info with this mesh set as pickedMesh if hit
88
+ */
89
+ intersects(ray) {
90
+ const pickingInfo = new PickingInfo();
91
+ const boundingInfo = this.getBoundingInfo();
92
+ if (!boundingInfo) {
93
+ return pickingInfo;
94
+ }
95
+ // Always check against bounding info for proxy meshes
96
+ if (!ray.intersectsSphere(boundingInfo.boundingSphere) || !ray.intersectsBox(boundingInfo.boundingBox)) {
97
+ return pickingInfo;
98
+ }
99
+ // If we hit the bounding volume, report this mesh as picked
100
+ pickingInfo.hit = true;
101
+ pickingInfo.pickedMesh = this;
102
+ pickingInfo.distance = Vector3.Distance(ray.origin, boundingInfo.boundingSphere.center);
103
+ pickingInfo.subMeshId = 0;
104
+ return pickingInfo;
105
+ }
106
+ }
107
+ //# sourceMappingURL=gaussianSplattingPartProxyMesh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gaussianSplattingPartProxyMesh.js","sourceRoot":"","sources":["../../../../../dev/core/src/Meshes/GaussianSplatting/gaussianSplattingPartProxyMesh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,8BAA+B,SAAQ,IAAI;IAWpD;;OAEG;IACH,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAOD;;;;;;;OAOG;IACH,YAAY,IAAY,EAAE,KAAsB,EAAE,iBAAwC,EAAE,WAAkC,EAAE,SAAiB;QAC7I,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAE3C,sDAAsD;QACtD,IAAI,CAAC,iCAAiC,EAAE,CAAC;QACzC,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;QAEpF,+EAA+E;QAC/E,IAAI,CAAC,kCAAkC,CAAC,GAAG,CAAC,GAAG,EAAE;YAC7C,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;YACpF,IAAI,CAAC,iCAAiC,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,iCAAiC;QACpC,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;QACxD,IAAI,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACa,YAAY;QACxB,OAAO,gCAAgC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,YAAoB;QACvC,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,IAAoB,SAAS;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,IAAoB,SAAS,CAAC,KAAc;QACxC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,IAAoB,UAAU;QAC1B,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,IAAoB,UAAU,CAAC,KAAa;QACxC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACa,UAAU,CAAC,GAAQ;QAC/B,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QACtC,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAE5C,IAAI,CAAC,YAAY,EAAE,CAAC;YAChB,OAAO,WAAW,CAAC;QACvB,CAAC;QAED,sDAAsD;QACtD,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC;YACrG,OAAO,WAAW,CAAC;QACvB,CAAC;QAED,4DAA4D;QAC5D,WAAW,CAAC,GAAG,GAAG,IAAI,CAAC;QACvB,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC;QAC9B,WAAW,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACxF,WAAW,CAAC,SAAS,GAAG,CAAC,CAAC;QAE1B,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ","sourcesContent":["import type { Nullable } from \"core/types\";\r\nimport type { Scene } from \"core/scene\";\r\nimport { Mesh } from \"../mesh\";\r\nimport { BoundingInfo } from \"../../Culling/boundingInfo\";\r\nimport type { GaussianSplattingMesh } from \"./gaussianSplattingMesh\";\r\nimport type { Ray } from \"../../Culling/ray.core\";\r\nimport { PickingInfo } from \"../../Collisions/pickingInfo\";\r\nimport { Vector3 } from \"../../Maths/math.vector\";\r\n\r\n/**\r\n * Class used as a proxy mesh for a part of a compound Gaussian Splatting mesh\r\n */\r\nexport class GaussianSplattingPartProxyMesh extends Mesh {\r\n /**\r\n * The Gaussian Splatting mesh that this proxy represents a part of\r\n */\r\n public readonly proxiedMesh: GaussianSplattingMesh;\r\n\r\n /**\r\n * The index of the part in the compound mesh (internal storage)\r\n */\r\n private _partIndex: number;\r\n\r\n /**\r\n * Gets the index of the part in the compound mesh\r\n */\r\n public get partIndex(): number {\r\n return this._partIndex;\r\n }\r\n\r\n /**\r\n * The original Gaussian Splatting mesh that was merged into the compound\r\n */\r\n public readonly compoundSplatMesh: GaussianSplattingMesh;\r\n\r\n /**\r\n * Creates a new Gaussian Splatting part proxy mesh\r\n * @param name The name of the proxy mesh\r\n * @param scene The scene the proxy mesh belongs to\r\n * @param compoundSplatMesh The original Gaussian Splatting mesh that was merged into the compound\r\n * @param proxiedMesh The Gaussian Splatting mesh that this proxy represents a part of\r\n * @param partIndex The index of the part in the compound mesh\r\n */\r\n constructor(name: string, scene: Nullable<Scene>, compoundSplatMesh: GaussianSplattingMesh, proxiedMesh: GaussianSplattingMesh, partIndex: number) {\r\n super(name, scene);\r\n this.proxiedMesh = proxiedMesh;\r\n this._partIndex = partIndex;\r\n this.compoundSplatMesh = compoundSplatMesh;\r\n\r\n // Set bounding info based on the source mesh's bounds\r\n this.updateBoundingInfoFromProxiedMesh();\r\n this.compoundSplatMesh.setWorldMatrixForPart(this.partIndex, this.getWorldMatrix());\r\n\r\n // Update the proxied mesh's part matrix when this proxy's world matrix changes\r\n this.onAfterWorldMatrixUpdateObservable.add(() => {\r\n this.compoundSplatMesh.setWorldMatrixForPart(this.partIndex, this.getWorldMatrix());\r\n this.updateBoundingInfoFromProxiedMesh();\r\n });\r\n }\r\n\r\n /**\r\n * Updates the bounding info of this proxy mesh from the proxied mesh\r\n */\r\n public updateBoundingInfoFromProxiedMesh(): void {\r\n const boundingInfo = this.proxiedMesh.getBoundingInfo();\r\n this.setBoundingInfo(new BoundingInfo(boundingInfo.minimum.clone(), boundingInfo.maximum.clone()));\r\n }\r\n\r\n /**\r\n * Returns the class name\r\n * @returns \"GaussianSplattingPartProxyMesh\"\r\n */\r\n public override getClassName(): string {\r\n return \"GaussianSplattingPartProxyMesh\";\r\n }\r\n\r\n /**\r\n * Updates the part index for this proxy mesh.\r\n * This should only be called internally when parts are removed from the compound mesh.\r\n * @param newPartIndex the new part index\r\n * @internal\r\n */\r\n public updatePartIndex(newPartIndex: number): void {\r\n this._partIndex = newPartIndex;\r\n }\r\n\r\n /**\r\n * Gets whether the part is visible\r\n */\r\n public override get isVisible(): boolean {\r\n return this.compoundSplatMesh.getPartVisibility(this.partIndex) > 0;\r\n }\r\n\r\n /**\r\n * Sets whether the part is visible\r\n */\r\n public override set isVisible(value: boolean) {\r\n this.compoundSplatMesh.setPartVisibility(this.partIndex, value ? 1.0 : 0.0);\r\n }\r\n\r\n /**\r\n * Gets the visibility of the part (0.0 to 1.0)\r\n */\r\n public override get visibility(): number {\r\n return this.compoundSplatMesh.getPartVisibility(this.partIndex);\r\n }\r\n\r\n /**\r\n * Sets the visibility of the part (0.0 to 1.0)\r\n */\r\n public override set visibility(value: number) {\r\n this.compoundSplatMesh.setPartVisibility(this.partIndex, value);\r\n }\r\n\r\n /**\r\n * Checks if a ray intersects with this proxy mesh using only bounding info\r\n * @param ray defines the ray to test\r\n * @returns the picking info with this mesh set as pickedMesh if hit\r\n */\r\n public override intersects(ray: Ray): PickingInfo {\r\n const pickingInfo = new PickingInfo();\r\n const boundingInfo = this.getBoundingInfo();\r\n\r\n if (!boundingInfo) {\r\n return pickingInfo;\r\n }\r\n\r\n // Always check against bounding info for proxy meshes\r\n if (!ray.intersectsSphere(boundingInfo.boundingSphere) || !ray.intersectsBox(boundingInfo.boundingBox)) {\r\n return pickingInfo;\r\n }\r\n\r\n // If we hit the bounding volume, report this mesh as picked\r\n pickingInfo.hit = true;\r\n pickingInfo.pickedMesh = this;\r\n pickingInfo.distance = Vector3.Distance(ray.origin, boundingInfo.boundingSphere.center);\r\n pickingInfo.subMeshId = 0;\r\n\r\n return pickingInfo;\r\n }\r\n}\r\n"]}
@@ -206,6 +206,10 @@ export declare abstract class AbstractMesh extends TransformNode implements IDis
206
206
  _waitingMaterialId: Nullable<string>;
207
207
  /** @internal */
208
208
  _waitingMorphTargetManagerId: Nullable<number>;
209
+ /** @internal */
210
+ _waitingSkeletonId: Nullable<string>;
211
+ /** @internal */
212
+ _waitingSkeletonUniqueId: Nullable<number>;
209
213
  /**
210
214
  * The culling strategy to use to check whether the mesh must be rendered or not.
211
215
  * This value can be changed at any time and will be used on the next render mesh selection.
@@ -599,6 +599,10 @@ export class AbstractMesh extends TransformNode {
599
599
  this._waitingMaterialId = null;
600
600
  /** @internal */
601
601
  this._waitingMorphTargetManagerId = null;
602
+ /** @internal */
603
+ this._waitingSkeletonId = null;
604
+ /** @internal */
605
+ this._waitingSkeletonUniqueId = null;
602
606
  /**
603
607
  * The culling strategy to use to check whether the mesh must be rendered or not.
604
608
  * This value can be changed at any time and will be used on the next render mesh selection.