formatting

This commit is contained in:
Neil Mathew 2024-01-10 15:06:47 -05:00
parent fc89e9daf9
commit ff58cc16ff
2 changed files with 7682 additions and 15 deletions

View File

@ -60,12 +60,10 @@ function Model({ gltfModel, ...props }) {
const maxSize = Math.max(sizeModel.x, sizeModel.y, sizeModel.z);
const scale = Math.min(size.width, size.height) / maxSize;
console.log("scaling factor is ", scale)
// Apply the scaling factor to the model
modelRef.current.scale.set(scale, scale, scale);
const boxAfterScaling = new Box3().setFromObject(modelRef.current);
const sizeModelAfterScaling = new Vector3();
boxAfterScaling.getSize(sizeModelAfterScaling);

7669
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff