Skip to content

Commit

Permalink
Adjust import
Browse files Browse the repository at this point in the history
  • Loading branch information
StuckiSimon committed Aug 25, 2024
1 parent e9406ef commit ca86a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strahl-lib/src/prepare-geometry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MeshBVH, getBVHExtremes } from "three-mesh-bvh";
import { logGroup } from "./benchmark/cpu-performance-logger";
import { startMeasurementGroup } from "./benchmark/performance-measurement-group.ts";
import { consolidateMesh } from "./consolidate-mesh";
import { GeometryGroup, Group } from "three";
import { assertMeshBVHInternalStructure, bvhToTextures } from "./bvh-util";
Expand All @@ -25,7 +25,7 @@ function assertMaterializedGeometryGroup(

export function prepareGeometry(model: { scene: Group }) {
const reducedModel = consolidateMesh([model.scene]);
const cpuLogGroup = logGroup();
const cpuLogGroup = startMeasurementGroup();
const boundsTree = new MeshBVH(reducedModel.geometry, {
// @ts-expect-error This property is not officially supported by three-mesh-bvh just yet
indirect: true,
Expand Down

0 comments on commit ca86a81

Please sign in to comment.