Archived
189 lines
9.9 KiB
HTML
189 lines
9.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>MeshedGeomFile Editor | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="MeshedGeomFile Editor | HiAPI-C# 2025 ">
|
|
|
|
|
|
<link rel="icon" href="../../img/HiAPI.favicon.ico">
|
|
<link rel="stylesheet" href="../../public/docfx.min.css">
|
|
<link rel="stylesheet" href="../../public/main.css">
|
|
<meta name="docfx:navrel" content="../../toc.html">
|
|
<meta name="docfx:tocrel" content="toc.html">
|
|
|
|
<meta name="docfx:rel" content="../../">
|
|
|
|
|
|
|
|
<meta name="loc:inThisArticle" content="In this article">
|
|
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<meta name="loc:tocFilter" content="Filter by title">
|
|
<meta name="loc:nextArticle" content="Next">
|
|
<meta name="loc:prevArticle" content="Previous">
|
|
<meta name="loc:themeLight" content="Light">
|
|
<meta name="loc:themeDark" content="Dark">
|
|
<meta name="loc:themeAuto" content="Auto">
|
|
<meta name="loc:changeTheme" content="Change theme">
|
|
<meta name="loc:copy" content="Copy">
|
|
<meta name="loc:downloadPdf" content="Download PDF">
|
|
|
|
<script type="module" src="./../../public/docfx.min.js"></script>
|
|
|
|
<script>
|
|
const theme = localStorage.getItem('theme') || 'auto'
|
|
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
|
|
<header class="bg-body border-bottom">
|
|
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
|
<div class="container-xxl flex-nowrap">
|
|
<a class="navbar-brand" href="../../index.html">
|
|
<img id="logo" class="svg" src="../../img/HiAPI.logo.png" alt="">
|
|
|
|
</a>
|
|
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
|
<i class="bi bi-three-dots"></i>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navpanel">
|
|
<div id="navbar">
|
|
<form class="search" role="search" id="search">
|
|
<i class="bi bi-search"></i>
|
|
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-xxl">
|
|
<div class="toc-offcanvas">
|
|
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
|
<div class="offcanvas-header">
|
|
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
|
</div>
|
|
<div class="offcanvas-body">
|
|
<nav class="toc" id="toc"></nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="actionbar">
|
|
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<nav id="breadcrumb"></nav>
|
|
</div>
|
|
|
|
<article data-uid="Anatomy-MeshedGeomPanel">
|
|
<h1 id="meshedgeomfile-editor">MeshedGeomFile Editor</h1>
|
|
|
|
<p>The meshed-geometry editor points a geometry at a pre-computed voxel cube tree in a <code>.wct</code> file. Its
|
|
model is <a class="xref" href="../../api/Hi.Cbtr.CubeTreeFile.html">CubeTreeFile</a>, a <em>reference</em> to that file: neither the editor nor the
|
|
controller loads the voxel data, which stays deferred until something actually needs the mesh.</p>
|
|
<div class="IMPORTANT">
|
|
<h5>Important</h5>
|
|
<p><strong>The kind is <code>CubeTreeFile</code>; the label is <code>MeshedGeomFile</code>.</strong> The rename is display-only and lives
|
|
in exactly two registries — the kind picker's option label and the Control-Tree node label — while
|
|
the value sent to the backend stays the type name. The domain type carries the matching display
|
|
name of its own. Any page describing a mesh source has to keep the two apart.</p>
|
|
</div>
|
|
<h2 id="layout">Layout</h2>
|
|
<ul>
|
|
<li>A caption naming what the field takes, <code>.wct</code>.</li>
|
|
<li><strong>The file selector</strong> — the shared file-path widget, filtered to <code>.wct</code>, with an empty-state hint
|
|
when nothing is chosen.</li>
|
|
<li>A standing description: the geometry is a pre-computed voxel cube tree, and loading it is deferred
|
|
until it is needed.</li>
|
|
</ul>
|
|
<h2 id="reach">Reach</h2>
|
|
<p><strong>One slot offers this kind: the workpiece's Raw Geometry.</strong> The fixture's geometry and the
|
|
workpiece's target geometry both exclude it, and it is not among the container kinds, so it can be
|
|
neither a transformation geometry's inner geometry nor a combination child. The Control-Tree node
|
|
carries the chosen file in its label, as <code>MeshedGeomFile [<path>]</code>.</p>
|
|
<p>There is no separate geometry-source toggle: picking the <code>MeshedGeomFile</code> kind <em>is</em> choosing the
|
|
meshed source. The classification survives on the server, which still reports a raw geometry of this
|
|
type as a meshed one.</p>
|
|
<h2 id="key-model">Key Model</h2>
|
|
<p><a class="xref" href="../../api/Hi.Cbtr.CubeTreeFile.html">CubeTreeFile</a> is the file reference; <a class="xref" href="../../api/Hi.Cbtr.CubeTree.html">CubeTree</a> is the voxel tree itself.
|
|
The reader resolves the stored relative path and opens it with no extension test of its own — <code>.wct</code>
|
|
is what the app writes and what every user-facing string names, not something the loader enforces.</p>
|
|
<p>The consumer that reads the data is the equipment-setup scene: it recognises a workpiece whose
|
|
initial geometry is a cube-tree file and builds the meshed geometry for the canvas, behind the
|
|
canvas's own Meshed Geometry display toggle.</p>
|
|
<h2 id="source-code-path">Source Code Path</h2>
|
|
<p>See <a class="xref" href="../index.html">HiNC App Anatomy</a> for git repository links.</p>
|
|
<p>HiNC-2025-webservice (Quasar CLI SPA):</p>
|
|
<ul>
|
|
<li><code>wwwroot-src/src/components/geom/CubeTreeFileEditor.vue</code> — the editor: the caption, the <code>.wct</code>
|
|
file selector and the deferred-loading description.</li>
|
|
<li><code>wwwroot-src/src/components/widgets/FilePathInput.vue</code> and
|
|
<code>wwwroot-src/src/components/widgets/FileExplorerDialog.vue</code> — the picker and the in-app browser it
|
|
opens.</li>
|
|
<li><code>wwwroot-src/src/components/geom/geometryEditors.ts</code> — maps the <code>CubeTreeFile</code> kind to this
|
|
editor.</li>
|
|
<li><code>wwwroot-src/src/components/geom/GeometryEditor.vue</code> — the kind picker, and the display-only
|
|
rename applied to its option label.</li>
|
|
<li><code>wwwroot-src/src/components/controlTree/itemTypes.ts</code> — registers the kind against the sole-editor
|
|
panel, holds the other half of the rename, builds the node label that carries the file, and is
|
|
where the kind's absence from the container kinds is declared.</li>
|
|
<li><code>wwwroot-src/src/components/controlTree/SoleEditorPanel.vue</code> and
|
|
<code>wwwroot-src/src/components/controlTree/GeometrySlotPanel.vue</code> — the kind node's panel and the
|
|
parent slot's picker.</li>
|
|
<li><code>wwwroot-src/src/components/controlTree/useControlTreeHost.ts</code> — the workpiece raw-geometry slot,
|
|
the only slot whose allowed kinds admit it, and the node-label refresh when the file changes.</li>
|
|
<li><code>wwwroot-src/src/api/geometry.ts</code> — <code>getCubeTreeFile</code>, <code>setCubeTreeFileSourceFile</code> and the create
|
|
entry.</li>
|
|
<li><code>wwwroot-src/src/i18n/en/geom.ts</code> — the <code>meshedFile.*</code> strings, and
|
|
<code>wwwroot-src/src/i18n/en/tree.ts</code> — the Raw Geometry slot label.</li>
|
|
<li><code>Geom/CubeTreeFileController.cs</code> — REST endpoints at <code>/api/CubeTreeFile/*</code>: <code>New</code>, <code>Get</code> and
|
|
<code>SetSourceFile</code>, and nothing else. None of them loads the voxel data.</li>
|
|
<li><code>Mech/WorkpieceController.cs</code> — the raw-geometry create path, and the classification that still
|
|
reports this type as a meshed geometry.</li>
|
|
<li><code>Common/IndexService.cs</code> — the keyed object store every cube-tree-file key resolves against.</li>
|
|
<li><code>Disp/EquipmentSetupDisplayee.cs</code> and <code>Mech/EquipmentSetupDisplayController.cs</code> — the scene that
|
|
builds the meshed geometry for the canvas, and the display toggle that shows it.</li>
|
|
</ul>
|
|
<h2 id="see-also">See Also</h2>
|
|
<ul>
|
|
<li><a href="geometry-editor.html">Geometry Editor</a> — the switchboard that offers this kind and
|
|
hosts this editor</li>
|
|
<li><a href="stlfile-editor.html">StlFile Editor</a> — the other file-backed kind, and the one this slot offers
|
|
beside it</li>
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
<div class="next-article d-print-none border-top" id="nextArticle"></div>
|
|
|
|
</div>
|
|
|
|
<div class="affix">
|
|
<nav id="affix"></nav>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="container-xxl search-results" id="search-results"></div>
|
|
|
|
<footer class="border-top text-secondary">
|
|
<div class="container-xxl">
|
|
<div class="flex-fill">
|
|
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|