Add BIM section plane tool
This commit is contained in:
+40
-2
@@ -89,7 +89,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./dcViewer.css?v=17">
|
||||
<link rel="stylesheet" href="./dcViewer.css?v=18">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -107,6 +107,7 @@
|
||||
<section class="viewer-wrapper">
|
||||
<canvas id="viewerCanvas"></canvas>
|
||||
<canvas id="navCube"></canvas>
|
||||
<canvas id="sectionPlanesOverview" class="section-overview" width="150" height="150"></canvas>
|
||||
<div class="drop-hint" id="dropZone">
|
||||
<div class="drop-center">
|
||||
<div class="drop-plus">+</div>
|
||||
@@ -292,6 +293,14 @@
|
||||
<path d="m13 7 2 2"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="section" title="Разрез" aria-label="Разрез">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M4.5 7.25 12 3.5l7.5 3.75L12 11 4.5 7.25Z"></path>
|
||||
<path d="M4.5 16.75 12 20.5l7.5-3.75"></path>
|
||||
<path d="M12 11v9.5"></path>
|
||||
<path d="M6.25 4.5 17.75 19.5"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="tb-btn" data-action="projection" title="Перспектива / аксонометрия">A</button>
|
||||
<button class="tb-btn" data-action="share" title="Поделиться моделью" aria-label="Поделиться моделью">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
@@ -308,9 +317,38 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="sectionToolbar" class="section-toolbar hidden" aria-label="Управление разрезом">
|
||||
<button class="section-tool-btn" data-section-action="camera" type="button" title="По камере" aria-label="По камере">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M4.5 12s2.75-5 7.5-5 7.5 5 7.5 5-2.75 5-7.5 5-7.5-5-7.5-5Z"></path>
|
||||
<path d="M12 14.75A2.75 2.75 0 1 0 12 9.25a2.75 2.75 0 0 0 0 5.5Z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="section-tool-btn section-axis-btn" data-section-action="x" type="button" title="Ось X" aria-label="Ось X">X</button>
|
||||
<button class="section-tool-btn section-axis-btn" data-section-action="y" type="button" title="Ось Y" aria-label="Ось Y">Y</button>
|
||||
<button class="section-tool-btn section-axis-btn" data-section-action="z" type="button" title="Ось Z" aria-label="Ось Z">Z</button>
|
||||
<button class="section-tool-btn" data-section-action="flip" type="button" title="Инвертировать" aria-label="Инвертировать">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M7.5 7.5h8a3.5 3.5 0 0 1 0 7h-7"></path>
|
||||
<path d="m10.5 4.5-3 3 3 3"></path>
|
||||
<path d="m13.5 19.5 3-3-3-3"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="section-tool-btn" data-section-action="clear" type="button" title="Удалить разрез" aria-label="Удалить разрез">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M5 7h14"></path>
|
||||
<path d="M9 7V5h6v2"></path>
|
||||
<path d="M8 10v8"></path>
|
||||
<path d="M12 10v8"></path>
|
||||
<path d="M16 10v8"></path>
|
||||
<path d="M7 7l1 13h8l1-13"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input id="fileInput" class="hidden" type="file"
|
||||
accept=".xkt,.glb,.gltf,.bim,.las,.laz,.obj,.stl">
|
||||
|
||||
<script type="module" src="./dcViewer.js?v=22"></script>
|
||||
<script type="module" src="./dcViewer.js?v=23"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user