This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
HiNC-2025-win-desktop-Deploy/App/wwwroot/HiAPI-docsite/anatomy/geom/extended-cylinder-panel.html
T
2026-09-09 18:06:21 +08:00

208 lines
12 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Extended Cylinder Panel | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Extended Cylinder Panel | 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 &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<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-ExtendedCylinderPanel">
<h1 id="extended-cylinder-panel">Extended Cylinder Panel</h1>
<p>The Extended Cylinder editor edits one number on an <a class="xref" href="../../api/Hi.Geom.ExtendedCylinder.html">ExtendedCylinder</a>: its full
length, measured from <code>Z=0</code> and <strong>including the span below the start section</strong>. Its only home on
it is the Tool House cutter's Upper Beam, where the start section is the flute top.</p>
<h2 id="layout">Layout</h2>
<ul>
<li>An explanatory block stating what the type is and, in bold, how the length is measured.</li>
<li><strong>Full Length</strong> — a single numeric field in millimetres, with a hint under it.</li>
</ul>
<h2 id="behavior">Behavior</h2>
<ul>
<li><strong>The hint states a lower bound only when that bound is positive.</strong> The bound is the Z of the
start section, served with the value as <code>minFullLength</code>; above zero the hint reads &ldquo;must exceed
the start-section Z&rdquo;, and at zero it degrades to a plain &ldquo;full length from Z=0&rdquo;. The test is the
number, not the wiring — a geometry with no start-section source and one whose source sits at
<code>Z=0</code> read identically here, because the controller answers <code>0</code> for both. There is no upper bound
anywhere — not in the editor and not in the controller.</li>
<li><strong>A live bound belongs to the cutter alone.</strong> The bare create endpoint installs a constant start
pair at <code>Z=0</code>, and the container-aware create switches install no source at all; both answer a
bound of zero. Only the cutter upper beam wires a real one — setting the beam links it to the
flute top — so only there does a bound appear.</li>
<li><strong>The guard is two layers, and they differ by one.</strong> The numeric field rejects a value <em>below</em> the
minimum — its minimum is inclusive — so a value exactly equal to the bound passes the field and is
caught one layer up by the editor, which raises an error to its host as a banner rather than an
inline field message. The controller then rejects non-finite, non-positive, and at-or-below-bound
values with a 400.</li>
<li><strong>The field commits on blur or Enter</strong>, and the range guard runs on both the field and the backend.</li>
<li><strong>Creating one through the cutter is not the same as creating one bare.</strong> The Upper Beam creates
through the cutter's own endpoint so the backend seeds a valid full length and can return
geometry-issue warnings — which the Upper Beam panel renders as persistent banners. The bare
create endpoint seeds a length of 100 and a single start pair.</li>
</ul>
<h2 id="reach">Reach</h2>
<p>This kind is restricted to the cutter's upper beam, and the mechanism is absence rather than a flag:
<strong>no Geometry slot offers it at all</strong>. it is absent from the container kinds, so it can be neither a transformation geometry's inner
geometry nor a combination child, and it was taken out of the workpiece's raw geometry once a saved
project was found to reload one degenerate. The single surface that offers it is the cutter's Upper
Beam, which mounts the switchboard itself over its own six-kind list rather than being a Geometry
slot.</p>
<div class="NOTE">
<h5>Note</h5>
<p><strong>A project saved earlier can still carry one on a workpiece, and the two halves of the tree
disagree about it.</strong> The kind is serialized; only the start-section hookup is not. Such a project
reloads with the raw geometry in place, and the Geometry slot's child builder tests the type
against the whole kind map rather than against the slot's whitelist, so the <code>ExtendedCylinder</code>
kind node and this editor still appear beneath it. The slot's own picker tests the whitelist,
finds the type outside it and blanks — leaving an empty type dropdown above a child node that
edits an Extended Cylinder. The bound reads zero there, because nothing is wiring a start
section.</p>
</div>
<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/ExtendedCylinderEditor.vue</code> — the description block and the Full
Length field, its hint, and the at-or-below-bound check that raises an error to the host.</li>
<li><code>wwwroot-src/src/components/widgets/NumericInput.vue</code> — the shared numeric field: an inclusive
minimum rejected on blur, and the hint slot under it.</li>
<li><code>wwwroot-src/src/components/toolhouse/UpperBeamDiv.vue</code> — the component's real home: the cutter's
Upper Beam, which creates through the container-aware cutter endpoint and renders the returned
geometry-issue warnings.</li>
<li><code>wwwroot-src/src/components/controlTree/toolhouse/CutterSectionPanel.vue</code> — mounts that panel for
the cutter's Upper Beam node, and deliberately skips its own fetch there.</li>
<li><code>wwwroot-src/src/components/controlTree/toolHouseItemTypes.ts</code> — builds the Upper Beam child of
the Cutter node.</li>
<li><code>wwwroot-src/src/components/geom/geometryEditors.ts</code> — maps the <code>ExtendedCylinder</code> kind to this
editor.</li>
<li><code>wwwroot-src/src/components/geom/GeometryEditor.vue</code> — the kind picker.</li>
<li><code>wwwroot-src/src/components/controlTree/itemTypes.ts</code> — registers <code>ExtendedCylinder</code> against the
sole-editor panel, is where its absence from the container kinds is declared, and holds the
Geometry slot's child builder — the half that tests the whole kind map rather than the whitelist.</li>
<li><code>wwwroot-src/src/components/controlTree/useControlTreeHost.ts</code> — the workpiece raw-geometry
whitelist, and the comment recording why the kind is no longer in it.</li>
<li><code>wwwroot-src/src/api/geometry.ts</code> — <code>getExtendedCylinder</code>,
<code>updateExtendedCylinderFullLength</code> and the create entry.</li>
<li><code>wwwroot-src/src/api/toolHouse.ts</code> — the upper-beam get, create and resync wrappers, and the
warnings contract.</li>
<li><code>wwwroot-src/src/i18n/en/geom.ts</code> — the <code>extCylinder.*</code> strings: the label, the description and
measure rule, both hints, and the below-minimum error.</li>
<li><code>Geom/ExtendedCylinderController.cs</code> — REST endpoints at <code>/api/ExtendedCylinder/*</code>: <code>New</code>, <code>Get</code>,
<code>UpdateFullLength</code> and <code>GetFullLength</code>. <code>Get</code> carries <code>minFullLength</code> alongside the value.</li>
<li><code>Mech/CutterController.cs</code> — the upper-beam routes the Tool House host actually goes through, and
the geometry-issue warnings it surfaces.</li>
<li><code>Mech/WorkpieceController.cs</code> — the raw-geometry create switch, which still carries an
<code>ExtendedCylinder</code> arm that no picker can now reach.</li>
</ul>
<h2 id="see-also">See Also</h2>
<ul>
<li><a href="geom-manage-control.html">Geometry Management Panel</a> — the switchboard that offers this kind and
hosts this editor</li>
<li><a class="xref" href="../tool-house/cutter/milling-cutter-panel.html">Milling Cutter Panel</a> — the cutter whose Upper Beam is this
editor's real home, and the one surface that supplies a start section</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>