From 3e78657aef7791042a557fd422f68d09ffd4106f Mon Sep 17 00:00:00 2001 From: Thomas Fuhrmann Date: Mon, 24 Mar 2025 15:00:38 +0100 Subject: [PATCH] Finish explode tool --- app/components/Form.tsx | 55 ++++++++++---- app/three/SceneView.ts | 93 ++++++++++++++++++++---- app/three/utils/build-clipping-planes.ts | 36 ++++++--- app/three/utils/build-meshes.ts | 6 +- app/three/utils/build-scene.ts | 10 +-- 5 files changed, 149 insertions(+), 51 deletions(-) diff --git a/app/components/Form.tsx b/app/components/Form.tsx index 217e1ff..19f887c 100644 --- a/app/components/Form.tsx +++ b/app/components/Form.tsx @@ -22,24 +22,29 @@ function Toggle({ title, onChange, defaultChecked, + disabled = false, }: { title: string; onChange: (e: ChangeEvent) => void; defaultChecked?: boolean; + disabled?: boolean; }) { return ( -