2026-05-24-22-40-13 新增自动微调匹配工作区

This commit is contained in:
2026-05-24 23:13:34 +08:00
parent 3d732ec898
commit bca3619b9b
12 changed files with 1286 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { DicomFusionVolume, DicomInfo, DicomPreview, ModelPose, ModuleStyle, OverviewSummary, Project, SavedModelPose, SegmentationDicomOpacityLevel, SegmentationDisplayLevel, SegmentationExportScope, SessionState, UserRecord } from '../types';
import { AutoMatchRequest, AutoMatchResult, DicomFusionVolume, DicomInfo, DicomPreview, ModelPose, ModuleStyle, OverviewSummary, Project, SavedModelPose, SegmentationDicomOpacityLevel, SegmentationDisplayLevel, SegmentationExportScope, SessionState, UserRecord } from '../types';
export type ProjectExportTarget = 'dicom' | 'segmentation' | 'pose' | 'stl';
export type SegmentationExportMode = 'combined' | 'separate';
@@ -129,6 +129,16 @@ export const api = {
method: 'PATCH',
body: JSON.stringify({ modelPoses }),
}),
runAutoMatch: (projectId: string, payload: AutoMatchRequest) =>
request<AutoMatchResult>(`/api/projects/${projectId}/auto-match`, {
method: 'POST',
body: JSON.stringify(payload),
}),
applyProjectModelPose: (projectId: string, pose: ModelPose) =>
request<Project>(`/api/projects/${projectId}/model-pose`, {
method: 'PATCH',
body: JSON.stringify({ pose }),
}),
importProjectAssets: (
projectId: string,
kind: ProjectAssetImportKind,