Skip to content

Commit

Permalink
feat(TileGeometry): add OBB type
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloTheDrunk committed Oct 23, 2024
1 parent 9d9b3c8 commit de74645
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/Core/TileGeometry.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import * as THREE from 'three';

import { computeBuffers, getBufferIndexSize }
from 'Core/Prefab/computeBufferTileGeometry';
import { GpuBufferAttributes, Projected, TileBuilder, TileBuilderParams }
from './Prefab/TileBuilder';
import Extent from './Geographic/Extent';
import Cache from './Scheduler/Cache';
from 'Core/Prefab/TileBuilder';
import Extent from 'Core/Geographic/Extent';
import Cache from 'Core/Scheduler/Cache';

import OBB from 'Renderer/OBB';

type PartialTileBuilderParams =
Pick<TileBuilderParams, 'extent' | 'level' | 'zoom'>
Expand Down Expand Up @@ -46,7 +49,7 @@ function defaultBuffers(
}

export class TileGeometry extends THREE.BufferGeometry {
public OBB: unknown;
public OBB: OBB | null;
public extent: Extent;
public segments: number;
public tileCenter: THREE.Vector3;
Expand Down Expand Up @@ -75,7 +78,7 @@ export class TileGeometry extends THREE.BufferGeometry {
}

this.computeBoundingBox();
this.OBB = {};
this.OBB = null;
if (params.hideSkirt) {
this.hideSkirt = params.hideSkirt;
}
Expand Down

0 comments on commit de74645

Please sign in to comment.