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 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;