123456789101112131415161718192021 |
- import {
- BufferGeometry,
- 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 ): this;
- sampleFace( faceIndex: number, targetPosition: Vector3, targetNormal: Vector3 ): this;
- setWeightAttribute( name: string | null ): this;
- }
|