diff --git a/src/stores/useModelStore.ts b/src/stores/useModelStore.ts index ba96846..914b38a 100644 --- a/src/stores/useModelStore.ts +++ b/src/stores/useModelStore.ts @@ -261,6 +261,21 @@ interface ModelStore { gridCalibMode: boolean; setGridCalibMode: (b: boolean) => void; + /** Section/clipping cut tool (X/Y/Z axis-aligned planes in world space). */ + sectionEnabled: { x: boolean; y: boolean; z: boolean }; + sectionInvert: { x: boolean; y: boolean; z: boolean }; + /** Cut level in meters (world coordinates) per axis. */ + sectionLevel: { x: number; y: number; z: number }; + sectionPanelOpen: boolean; + /** Opacity of the floating section panel (0.2 – 1). */ + sectionPanelOpacity: number; + setSectionEnabled: (axis: 'x' | 'y' | 'z', on: boolean) => void; + setSectionInvert: (axis: 'x' | 'y' | 'z', on: boolean) => void; + setSectionLevel: (axis: 'x' | 'y' | 'z', v: number) => void; + setSectionPanelOpen: (open: boolean) => void; + setSectionPanelOpacity: (o: number) => void; + resetSection: () => void; + wireframeColor: string; setWireframeColor: (color: string) => void;