Skip to content

Commit

Permalink
Octree: Add clear(). (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Nov 18, 2023
1 parent bdef026 commit a34d40a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions types/three/examples/jsm/math/Octree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import { Triangle, Box3, Ray, Sphere, Object3D } from '../../../src/Three.js';
import { Capsule } from './Capsule.js';

export class Octree {
constructor(box?: Box3);
triangles: Triangle[];
box: Box3;
bounds: Box3;

subTrees: Octree[];
triangles: Triangle[];

constructor(box?: Box3);

addTriangle(triangle: Triangle): this;
calcBox(): this;
Expand All @@ -21,4 +24,5 @@ export class Octree {
capsuleIntersect(capsule: Capsule): any;
rayIntersect(ray: Ray): any;
fromGraphNode(group: Object3D): this;
clear(): this;
}

0 comments on commit a34d40a

Please sign in to comment.