Skip to content

Commit e21f4a6

Browse files
inline docs
added rotation and scale comparisons
1 parent 4e2fe08 commit e21f4a6

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

packages/engine/Source/Scene/GaussianSplat3DTileContent.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,18 +381,32 @@ Object.defineProperties(GaussianSplat3DTileContent.prototype, {
381381
},
382382
},
383383

384+
/**
385+
* Get the transformed positions of this tile's Gaussian splats.
386+
* @type {undefined|Float32Array}
387+
* @private
388+
*/
384389
positions: {
385390
get: function () {
386391
return this._positions;
387392
},
388393
},
389-
394+
/**
395+
* Get the transformed rotations of this tile's Gaussian splats.
396+
* @type {undefined|Float32Array}
397+
* @private
398+
*/
390399
rotations: {
391400
get: function () {
392401
return this._rotations;
393402
},
394403
},
395404

405+
/**
406+
* Get the transformed scales of this tile's Gaussian splats.
407+
* @type {undefined|Float32Array}
408+
* @private
409+
*/
396410
scales: {
397411
get: function () {
398412
return this._scales;

packages/engine/Specs/Scene/GaussianSplat3DTileContentSpec.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe(
119119
expect(tile.content).toBeUndefined();
120120
});
121121

122-
it("Load multiple instances of Gaussian splat tileset and validate positions", async function () {
122+
it("Load multiple instances of Gaussian splat tileset and validate transformed attributes", async function () {
123123
const tileset = await Cesium3DTilesTester.loadTileset(
124124
scene,
125125
tilesetUrl,
@@ -170,6 +170,16 @@ describe(
170170
const positions2 = tile2.content._positions;
171171

172172
expect(positions1.every((p, i) => p === positions2[i])).toBe(true);
173+
174+
const rotations1 = tile.content._rotations;
175+
const rotations2 = tile2.content._rotations;
176+
177+
expect(rotations1.every((r, i) => r === rotations2[i])).toBe(true);
178+
179+
const scales1 = tile.content._scales;
180+
const scales2 = tile2.content._scales;
181+
182+
expect(scales1.every((s, i) => s === scales2[i])).toBe(true);
173183
});
174184
},
175185
"WebGL",

0 commit comments

Comments
 (0)