From ff66952657e2ff8d3e2a2d8b70b620a10c7b2ac6 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 20 Aug 2026 23:03:55 -0400 Subject: [PATCH 1/2] Update three.js --- three.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/three.js b/three.js index f31d6eb33..cf613a306 160000 --- a/three.js +++ b/three.js @@ -1 +1 @@ -Subproject commit f31d6eb3348ccd0a883a2e3402519d2c85e43ce3 +Subproject commit cf613a306f421c286b740c493f306bf962c49502 From 9274072ce02096e9f531a702b8e6953b2da0932b Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 20 Aug 2026 23:05:11 -0400 Subject: [PATCH 2/2] Update declarations Co-Authored-By: Claude Opus 5 (1M context) --- .../jsm/loaders/PLYGaussianSplatLoader.d.ts | 9 +++++ .../jsm/utils/GaussianSplatUtils.d.ts | 34 ------------------- 2 files changed, 9 insertions(+), 34 deletions(-) create mode 100644 types/three/examples/jsm/loaders/PLYGaussianSplatLoader.d.ts diff --git a/types/three/examples/jsm/loaders/PLYGaussianSplatLoader.d.ts b/types/three/examples/jsm/loaders/PLYGaussianSplatLoader.d.ts new file mode 100644 index 000000000..b3acd95ea --- /dev/null +++ b/types/three/examples/jsm/loaders/PLYGaussianSplatLoader.d.ts @@ -0,0 +1,9 @@ +import { BufferGeometry, Loader, LoadingManager } from "three"; + +declare class PLYGaussianSplatLoader extends Loader { + constructor(manager?: LoadingManager); + + parse(data: ArrayBuffer | string): BufferGeometry; +} + +export { PLYGaussianSplatLoader }; diff --git a/types/three/examples/jsm/utils/GaussianSplatUtils.d.ts b/types/three/examples/jsm/utils/GaussianSplatUtils.d.ts index 1263b111c..de2e74f0e 100644 --- a/types/three/examples/jsm/utils/GaussianSplatUtils.d.ts +++ b/types/three/examples/jsm/utils/GaussianSplatUtils.d.ts @@ -1,16 +1,7 @@ import { BufferGeometry } from "three"; -export const GAUSSIAN_SPLAT_PLY_PROPERTY_MAPPING: { - scale: string[]; - rotation: string[]; - f_dc: string[]; - opacity: string[]; -}; - export const SH_C0: number; -export const SH_DEGREE_TO_COMPONENTS: number[]; - export const SH_BAND_COMPONENTS: number[]; export const SH_BAND_WORDS: number[]; @@ -51,18 +42,6 @@ export function writeCovariance( qw: number, ): void; -export interface GaussianSplatPLYPropertyMapping { - scale: string[]; - rotation: string[]; - f_dc: string[]; - opacity: string[]; - f_rest?: string[] | undefined; -} - -export function getGaussianSplatPLYPropertyMapping( - sphericalHarmonicsDegree?: number, -): GaussianSplatPLYPropertyMapping; - export interface PackedSphericalHarmonicsBand { packed: Uint32Array; bytes: Uint8ClampedArray; @@ -87,16 +66,3 @@ export function createGaussianSplatGeometry( colors: Uint8Array | Uint8ClampedArray, sphericalHarmonics?: GaussianSplatSphericalHarmonics, ): BufferGeometry; - -export interface CreateGaussianSplatGeometryFromPLYGeometryOptions { - scaleAttribute?: string | undefined; - rotationAttribute?: string | undefined; - sh0Attribute?: string | undefined; - shRestAttribute?: string | undefined; - opacityAttribute?: string | undefined; -} - -export function createGaussianSplatGeometryFromPLYGeometry( - geometry: BufferGeometry, - options?: CreateGaussianSplatGeometryFromPLYGeometryOptions, -): BufferGeometry;