Добавить PLY-загрузку и Docker Web UI с PCL-пайплайном.

PLY читается в FilePointCloudSource, CLI отдаёт геометрию в output JSON,
а Docker/FastAPI/Three.js дают веб-запуск пайплайна без конфликта libpq на хосте.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-18 10:39:34 +03:00
co-authored by Cursor
parent 98afe5af5a
commit 45b2ed6e22
17 changed files with 1332 additions and 36 deletions
+61
View File
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DotsToSirface Web</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<header class="header">
<div>
<h1>DotsToSirface Web</h1>
<p>PLY upload, PCL pipeline in Docker, 3D preview in browser</p>
</div>
<div id="health" class="health">Checking API...</div>
</header>
<main class="layout">
<section class="panel controls">
<h2>Pipeline</h2>
<label class="field">
<span>Point cloud (.ply)</span>
<input id="fileInput" type="file" accept=".ply,.txt,.csv,.xyz,.bin">
</label>
<label class="field">
<span>Preset</span>
<select id="presetSelect"></select>
</label>
<button id="runButton" type="button">Run pipeline</button>
<p id="status" class="status">Upload a PLY file and click Run.</p>
<div id="metrics" class="metrics hidden">
<div><strong>Input:</strong> <span id="metricInput">-</span></div>
<div><strong>After preprocess:</strong> <span id="metricAfter">-</span></div>
<div><strong>Triangles:</strong> <span id="metricTriangles">-</span></div>
<div><strong>Reconstruction:</strong> <span id="metricReconstruction">-</span></div>
<div><strong>Time:</strong> <span id="metricTime">-</span> ms</div>
</div>
</section>
<section class="panel viewer">
<h2>3D Viewer</h2>
<div id="viewport"></div>
<p class="hint">Drag to rotate, wheel to zoom. Points and mesh are shown after pipeline run.</p>
</section>
</main>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
}
}
</script>
<script type="module" src="/static/app.js"></script>
</body>
</html>