From 99bcb73c103f3b3f978de2cb23fac5340595e159 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Wed, 28 Apr 2021 19:54:46 +0200 Subject: [PATCH] improve geo --- src/geometries/Geometry.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geometries/Geometry.ts b/src/geometries/Geometry.ts index 00ecb74..26cb21d 100644 --- a/src/geometries/Geometry.ts +++ b/src/geometries/Geometry.ts @@ -63,6 +63,7 @@ const Geometry = defineComponent({ geometry.setAttribute(attribute.name, bufferAttribute) } }) + geometry.computeBoundingBox() this.geometry = geometry }, rotateGeometry() {