Skip to content

Commit 548554d

Browse files
committed
TS: Added MeshSurfaceSampler.d.ts.
1 parent 8f66ba9 commit 548554d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import {
2+
BufferGeometry,
3+
Mesh,
4+
Vector3
5+
} from '../../../src/Three';
6+
7+
export class MeshSurfaceSampler {
8+
9+
distribution: Float32Array | null;
10+
geometry: BufferGeometry;
11+
positionAttribute: Float32Array;
12+
weightAttribute: string | null;
13+
14+
constructor( mesh: Mesh );
15+
binarySearch( x: number ): number;
16+
build(): this;
17+
sample( targetPosition: Vector3, targetNormal: Vector3 ): this;
18+
sampleFace( faceIndex: number, targetPosition: Vector3, targetNormal: Vector3 ): this;
19+
setWeightAttribute( name: string | null ): this;
20+
21+
}

0 commit comments

Comments
 (0)