We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f66ba9 commit 548554dCopy full SHA for 548554d
examples/jsm/math/MeshSurfaceSampler.d.ts
@@ -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