auto: 2026-09-01 16:56 (ESD_LAPTOP)
This commit is contained in:
@@ -191,6 +191,30 @@ export async function analyzeSurface(
|
||||
);
|
||||
}
|
||||
|
||||
/** 도엽 보간 방식 목록 — `built`가 false면 아직 만들지 않은 방식이다. */
|
||||
export interface SheetMethodListResponse {
|
||||
status: string;
|
||||
methods: Array<{ key: string; label: string; built: boolean }>;
|
||||
}
|
||||
|
||||
export async function listSheetMethods(projectId: string): Promise<SheetMethodListResponse> {
|
||||
return requestJson<SheetMethodListResponse>(`/projects/${projectId}/surface/sheet-methods`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
/** 도엽 서피스 한 방식을 만들어 등록한다. 조합 생성이라 타임아웃을 길게 준다. */
|
||||
export async function buildSheetSurface(
|
||||
projectId: string,
|
||||
method: string,
|
||||
): Promise<{ status: string; method: string; surface_model_ids: number[] }> {
|
||||
return requestJson(
|
||||
`/projects/${projectId}/surface/sheet-surface`,
|
||||
{ method: "POST", body: JSON.stringify({ method }) },
|
||||
API_SURFACE_BUILD_TIMEOUT_MS,
|
||||
);
|
||||
}
|
||||
|
||||
/** 프로젝트의 지표면 모델 목록을 조회한다. */
|
||||
export async function listSurfaceModels(projectId: string): Promise<SurfaceModelListResponse> {
|
||||
return requestJson<SurfaceModelListResponse>(`/projects/${projectId}/surface/models`, {
|
||||
|
||||
Reference in New Issue
Block a user