@manycore/aholo-splat-transform 1.2.8 → 1.2.9
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.
- package/CHANGELOG.md +120 -113
- package/README.md +39 -39
- package/THIRD_PARTY_LICENSES.txt +1373 -1373
- package/bin/cli.js +125 -118
- package/dist/SplatData.d.ts +67 -67
- package/dist/SplatData.js +167 -150
- package/dist/constant.d.ts +3 -3
- package/dist/constant.js +13 -13
- package/dist/file/IFile.d.ts +5 -5
- package/dist/file/IFile.js +1 -1
- package/dist/file/esz.d.ts +11 -11
- package/dist/file/esz.js +337 -322
- package/dist/file/index.d.ts +8 -8
- package/dist/file/index.js +7 -7
- package/dist/file/ksplat.d.ts +12 -12
- package/dist/file/ksplat.js +293 -231
- package/dist/file/lcc.d.ts +11 -11
- package/dist/file/lcc.js +161 -158
- package/dist/file/ply.d.ts +13 -13
- package/dist/file/ply.js +439 -390
- package/dist/file/sog.d.ts +80 -80
- package/dist/file/sog.js +525 -494
- package/dist/file/splat.d.ts +6 -6
- package/dist/file/splat.js +119 -99
- package/dist/file/spz.d.ts +11 -11
- package/dist/file/spz.js +597 -583
- package/dist/file/voxel.d.ts +43 -37
- package/dist/file/voxel.js +411 -280
- package/dist/index.d.ts +33 -33
- package/dist/index.js +54 -54
- package/dist/native/index.d.ts +54 -54
- package/dist/native/index.js +122 -129
- package/dist/native/utils.d.ts +1 -0
- package/dist/native/utils.js +54 -0
- package/dist/tasks/AutoChunkLodTask.d.ts +13 -13
- package/dist/tasks/AutoChunkLodTask.js +117 -117
- package/dist/tasks/AutoLodTask.d.ts +10 -10
- package/dist/tasks/AutoLodTask.js +20 -20
- package/dist/tasks/BaseTask.d.ts +15 -15
- package/dist/tasks/BaseTask.js +5 -5
- package/dist/tasks/FlexLodTask.d.ts +12 -12
- package/dist/tasks/FlexLodTask.js +54 -44
- package/dist/tasks/ModifyTask.d.ts +9 -9
- package/dist/tasks/ModifyTask.js +166 -156
- package/dist/tasks/ReadTask.d.ts +9 -9
- package/dist/tasks/ReadTask.js +29 -29
- package/dist/tasks/SkeletonLodTask.d.ts +10 -10
- package/dist/tasks/SkeletonLodTask.js +176 -156
- package/dist/tasks/VoxelTask.d.ts +35 -30
- package/dist/tasks/VoxelTask.js +40 -37
- package/dist/tasks/WriteTask.d.ts +12 -12
- package/dist/tasks/WriteTask.js +70 -70
- package/dist/utils/BufferReader.d.ts +12 -12
- package/dist/utils/BufferReader.js +45 -45
- package/dist/utils/Logger.d.ts +11 -11
- package/dist/utils/Logger.js +40 -40
- package/dist/utils/StreamChunkDecoder.d.ts +16 -16
- package/dist/utils/StreamChunkDecoder.js +31 -31
- package/dist/utils/index.d.ts +27 -27
- package/dist/utils/index.js +101 -101
- package/dist/utils/k-means.d.ts +4 -4
- package/dist/utils/k-means.js +340 -341
- package/dist/utils/math.d.ts +46 -46
- package/dist/utils/math.js +350 -346
- package/dist/utils/quantize-1d.d.ts +4 -4
- package/dist/utils/quantize-1d.js +164 -164
- package/dist/utils/sh-rotate.d.ts +2 -2
- package/dist/utils/sh-rotate.js +236 -175
- package/dist/utils/splat.d.ts +21 -21
- package/dist/utils/splat.js +397 -387
- package/dist/utils/voxel/binary.d.ts +8 -0
- package/dist/utils/voxel/binary.js +176 -0
- package/dist/utils/voxel/common.d.ts +178 -162
- package/dist/utils/voxel/common.js +1752 -1682
- package/dist/utils/voxel/coplanar-merge.d.ts +63 -63
- package/dist/utils/voxel/coplanar-merge.js +818 -819
- package/dist/utils/voxel/filter-cluster.d.ts +20 -0
- package/dist/utils/voxel/filter-cluster.js +628 -0
- package/dist/utils/voxel/gpu-dilation.d.ts +2 -2
- package/dist/utils/voxel/gpu-dilation.js +677 -656
- package/dist/utils/voxel/marching-cubes.d.ts +42 -42
- package/dist/utils/voxel/marching-cubes.js +1645 -1657
- package/dist/utils/voxel/mesh.d.ts +3 -3
- package/dist/utils/voxel/mesh.js +130 -130
- package/dist/utils/voxel/nav.d.ts +29 -29
- package/dist/utils/voxel/nav.js +1068 -1043
- package/dist/utils/voxel/postprocess.d.ts +23 -23
- package/dist/utils/voxel/postprocess.js +408 -375
- package/dist/utils/voxel/voxel-faces.d.ts +18 -18
- package/dist/utils/voxel/voxel-faces.js +662 -663
- package/dist/utils/voxel/voxelize.d.ts +34 -33
- package/dist/utils/voxel/voxelize.js +1208 -1193
- package/dist/utils/webgpu.d.ts +8 -8
- package/dist/utils/webgpu.js +122 -122
- package/package.json +37 -39
- package/dist/native/cpp/bin/linux/binding.node +0 -0
- package/dist/native/cpp/bin/windows/binding.node +0 -0
package/dist/utils/math.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export declare class Quaternion {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
z: number;
|
|
5
|
-
w: number;
|
|
6
|
-
static ONE: Quaternion;
|
|
7
|
-
constructor(x: number, y: number, z: number, w: number);
|
|
8
|
-
set(x: number, y: number, z: number, w: number): this;
|
|
9
|
-
equals(q: Quaternion): boolean;
|
|
10
|
-
normalize(): this;
|
|
11
|
-
multiply(q: Quaternion): Quaternion;
|
|
12
|
-
premultiply(q: Quaternion): Quaternion;
|
|
13
|
-
multiplyQuaternions(a: Quaternion, b: Quaternion): this;
|
|
14
|
-
setRotationMatrix(m: Matrix4): this;
|
|
15
|
-
}
|
|
16
|
-
export declare class Vector3 {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
z: number;
|
|
20
|
-
static ONE: Vector3;
|
|
21
|
-
constructor(x: number, y: number, z: number);
|
|
22
|
-
set(x: number, y: number, z: number): this;
|
|
23
|
-
length(): number;
|
|
24
|
-
equals(v: Vector3): boolean;
|
|
25
|
-
mul(v: Vector3): this;
|
|
26
|
-
applyMatrix4(m: Matrix4): this;
|
|
27
|
-
clone(): Vector3;
|
|
28
|
-
}
|
|
29
|
-
export declare class Matrix4 {
|
|
30
|
-
static ONE: Matrix4;
|
|
31
|
-
elements: Float32Array<ArrayBuffer>;
|
|
32
|
-
constructor(elements?: number[], isRow?: boolean);
|
|
33
|
-
set(elements: number[] | Float32Array): this;
|
|
34
|
-
equals(matrix: Matrix4): boolean;
|
|
35
|
-
determinant(): number;
|
|
36
|
-
multiply(m: Matrix4): Matrix4;
|
|
37
|
-
multiplyMatrices(a: Matrix4, b: Matrix4): Matrix4;
|
|
38
|
-
compose(position: Vector3, quaternion: Quaternion, scale: Vector3): Matrix4;
|
|
39
|
-
decompose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
40
|
-
transpose(): this;
|
|
41
|
-
}
|
|
42
|
-
export declare class Matrix3 {
|
|
43
|
-
elements: Float32Array<ArrayBuffer>;
|
|
44
|
-
set(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number): this;
|
|
45
|
-
setFromMatrix4(m: Matrix4): this;
|
|
46
|
-
}
|
|
1
|
+
export declare class Quaternion {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
w: number;
|
|
6
|
+
static ONE: Quaternion;
|
|
7
|
+
constructor(x: number, y: number, z: number, w: number);
|
|
8
|
+
set(x: number, y: number, z: number, w: number): this;
|
|
9
|
+
equals(q: Quaternion): boolean;
|
|
10
|
+
normalize(): this;
|
|
11
|
+
multiply(q: Quaternion): Quaternion;
|
|
12
|
+
premultiply(q: Quaternion): Quaternion;
|
|
13
|
+
multiplyQuaternions(a: Quaternion, b: Quaternion): this;
|
|
14
|
+
setRotationMatrix(m: Matrix4): this;
|
|
15
|
+
}
|
|
16
|
+
export declare class Vector3 {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
z: number;
|
|
20
|
+
static ONE: Vector3;
|
|
21
|
+
constructor(x: number, y: number, z: number);
|
|
22
|
+
set(x: number, y: number, z: number): this;
|
|
23
|
+
length(): number;
|
|
24
|
+
equals(v: Vector3): boolean;
|
|
25
|
+
mul(v: Vector3): this;
|
|
26
|
+
applyMatrix4(m: Matrix4): this;
|
|
27
|
+
clone(): Vector3;
|
|
28
|
+
}
|
|
29
|
+
export declare class Matrix4 {
|
|
30
|
+
static ONE: Matrix4;
|
|
31
|
+
elements: Float32Array<ArrayBuffer>;
|
|
32
|
+
constructor(elements?: number[], isRow?: boolean);
|
|
33
|
+
set(elements: number[] | Float32Array): this;
|
|
34
|
+
equals(matrix: Matrix4): boolean;
|
|
35
|
+
determinant(): number;
|
|
36
|
+
multiply(m: Matrix4): Matrix4;
|
|
37
|
+
multiplyMatrices(a: Matrix4, b: Matrix4): Matrix4;
|
|
38
|
+
compose(position: Vector3, quaternion: Quaternion, scale: Vector3): Matrix4;
|
|
39
|
+
decompose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
40
|
+
transpose(): this;
|
|
41
|
+
}
|
|
42
|
+
export declare class Matrix3 {
|
|
43
|
+
elements: Float32Array<ArrayBuffer>;
|
|
44
|
+
set(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number): this;
|
|
45
|
+
setFromMatrix4(m: Matrix4): this;
|
|
46
|
+
}
|