Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions types/three/examples/jsm/loaders/PLYGaussianSplatLoader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { BufferGeometry, Loader, LoadingManager } from "three";

declare class PLYGaussianSplatLoader extends Loader<BufferGeometry> {
constructor(manager?: LoadingManager);

parse(data: ArrayBuffer | string): BufferGeometry;
}

export { PLYGaussianSplatLoader };
34 changes: 0 additions & 34 deletions types/three/examples/jsm/utils/GaussianSplatUtils.d.ts
Original file line number Diff line number Diff line change
@@ -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[];
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Loading