2026-05-24-19-17-13 补齐位姿精度并隐藏自动拉伸成功提示
This commit is contained in:
@@ -3027,15 +3027,10 @@ export default function ReverseWorkspace({
|
||||
dicomSize.y / (Math.max(rotatedSize.y, 1e-6) * baseScale),
|
||||
dicomSize.z / (Math.max(rotatedSize.z, 1e-6) * baseScale),
|
||||
);
|
||||
const limitedByVolume = axisFitScale > containmentScale + 1e-6;
|
||||
const nextScale = clampPoseValue('scale', Math.min(axisFitScale, containmentScale));
|
||||
const nextPose = { ...modelPose, scale: nextScale };
|
||||
updateModelPose({ scale: nextScale }, { markCustom: !options.silentInitial, keepStatus: true });
|
||||
setPoseImportStatus(
|
||||
limitedByVolume
|
||||
? `已按 ${axis.toUpperCase()} 方向拉伸,并限制在 DICOM 体范围内`
|
||||
: `已按 ${axis.toUpperCase()} 方向进行三维等比例拉伸`,
|
||||
);
|
||||
setPoseImportStatus('');
|
||||
if (options.silentInitial) {
|
||||
savedWorkspaceSnapshotRef.current = createWorkspaceSnapshot({
|
||||
modelPose: nextPose,
|
||||
|
||||
Reference in New Issue
Block a user