1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00
Oinktube/node_modules/three/examples/jsm/math/MeshSurfaceSampler.d.ts
2023-12-11 11:59:56 -03:00

22 lines
576 B
TypeScript

import {
BufferGeometry,
Color,
Mesh,
Vector3
} from '../../../src/Three';
export class MeshSurfaceSampler {
distribution: Float32Array | null;
geometry: BufferGeometry;
positionAttribute: Float32Array;
weightAttribute: string | null;
constructor( mesh: Mesh );
binarySearch( x: number ): number;
build(): this;
sample( targetPosition: Vector3, targetNormal?: Vector3, targetColor?: Color ): this;
sampleFace( faceIndex: number, targetPosition: Vector3, targetNormal?: Vector3, targetColor?: Color ): this;
setWeightAttribute( name: string | null ): this;
}