Initial project import
This commit is contained in:
19
node_modules/@react-three/drei/core/Bvh.d.ts
generated
vendored
Normal file
19
node_modules/@react-three/drei/core/Bvh.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ThreeElements } from '@react-three/fiber';
|
||||
import * as React from 'react';
|
||||
import { Mesh, Group } from 'three';
|
||||
import { SplitStrategy } from 'three-mesh-bvh';
|
||||
import { ForwardRefComponent } from '../helpers/ts-utils';
|
||||
export interface BVHOptions {
|
||||
strategy?: SplitStrategy;
|
||||
verbose?: boolean;
|
||||
setBoundingBox?: boolean;
|
||||
maxDepth?: number;
|
||||
maxLeafTris?: number;
|
||||
indirect?: boolean;
|
||||
}
|
||||
export type BvhProps = BVHOptions & ThreeElements['group'] & {
|
||||
enabled?: boolean;
|
||||
firstHitOnly?: boolean;
|
||||
};
|
||||
export declare function useBVH(mesh: React.RefObject<Mesh | undefined>, options?: BVHOptions): void;
|
||||
export declare const Bvh: ForwardRefComponent<BvhProps, Group>;
|
||||
Reference in New Issue
Block a user