deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.

This commit is contained in:
2026-08-27 14:51:37 +08:00
parent 1fc510af5e
commit 2a98ae7556
1468 changed files with 182837 additions and 18888 deletions
@@ -192,7 +192,7 @@ Class WorkpieceService
<h2 id="Hi_NcMech_Workpieces_WorkpieceService_remarks">Remarks</h2>
<div class="markdown level0 remarks"><p><a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html">WorkpieceService</a> handles runtime geometry, caching, diff calculation,
<div class="markdown level0 remarks"><p><a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html">WorkpieceService</a> handles meshed geometry, caching, diff calculation,
defect scanning, display and collision — state that does not require configuration IO.
Compare to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_Workpiece">Workpiece</a>, which holds the persistent/serializable configuration.</p>
</div>
@@ -204,8 +204,8 @@ Compare to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_N
<a id="Hi_NcMech_Workpieces_WorkpieceService__ctor_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.#ctor*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService__ctor_System_Func_Hi_NcMech_Workpieces_Workpiece__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.#ctor(System.Func{Hi.NcMech.Workpieces.Workpiece})">
WorkpieceService(Func&lt;Workpiece&gt;)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService__ctor_System_Func_Hi_NcMech_Workpieces_Workpiece__System_Func_System_String__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.#ctor(System.Func{Hi.NcMech.Workpieces.Workpiece},System.Func{System.String})">
WorkpieceService(Func&lt;Workpiece&gt;, Func&lt;string&gt;)
</h3>
@@ -214,13 +214,15 @@ Compare to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_N
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public WorkpieceService(Func&lt;Workpiece&gt; workpieceGetter)</code></pre>
<pre><code class="lang-csharp hljs">public WorkpieceService(Func&lt;Workpiece&gt; workpieceGetter, Func&lt;string&gt; baseDirectoryGetter = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>workpieceGetter</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html">Workpiece</a>&gt;</dt>
<dd></dd>
<dt><code>baseDirectoryGetter</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd></dd>
</dl>
@@ -238,6 +240,39 @@ Compare to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_N
</h2>
<a id="Hi_NcMech_Workpieces_WorkpieceService_BaseDirectoryGetter_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.BaseDirectoryGetter*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_BaseDirectoryGetter" data-uid="Hi.NcMech.Workpieces.WorkpieceService.BaseDirectoryGetter">
BaseDirectoryGetter
</h3>
<div class="markdown level1 summary"><p>Provides the base directory that relative file paths in this service resolve against
(injected by the owning project service); when null, paths are used as-is.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Func&lt;string&gt; BaseDirectoryGetter { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_NcMech_Workpieces_WorkpieceService_BottomResolution_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.BottomResolution*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_BottomResolution" data-uid="Hi.NcMech.Workpieces.WorkpieceService.BottomResolution">
@@ -366,6 +401,41 @@ Compare to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_N
<a id="Hi_NcMech_Workpieces_WorkpieceService_DetectionRadius_mm_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.DetectionRadius_mm*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_DetectionRadius_mm" data-uid="Hi.NcMech.Workpieces.WorkpieceService.DetectionRadius_mm">
DetectionRadius_mm
</h3>
<div class="markdown level1 summary"><p>Detection radius in millimeters last used by <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_Diff_System_Double_System_Threading_CancellationToken_System_IProgress_Hi_Common_Messages_IMessage__">Diff(double, CancellationToken, IProgress&lt;IMessage&gt;)</a>.
It is set by that runtime call (e.g. from a session / mission command), not by display callers,
and saved on the service so consumers (e.g. the web UI) can bound <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_DiffVisualRadius_mm">DiffVisualRadius_mm</a>
to it — the visual radius is meaningful only up to the detection radius.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double DetectionRadius_mm { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcMech_Workpieces_WorkpieceService_DiffAttachmentBag_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.DiffAttachmentBag*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_DiffAttachmentBag" data-uid="Hi.NcMech.Workpieces.WorkpieceService.DiffAttachmentBag">
@@ -379,7 +449,7 @@ For Internal Use.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ConcurrentBag&lt;DiffAttachment&gt; DiffAttachmentBag { get; set; }</code></pre>
<pre><code class="lang-csharp hljs">public ConcurrentBag&lt;DiffAttachment&gt; DiffAttachmentBag { get; }</code></pre>
</div>
@@ -624,19 +694,19 @@ The derived solid from <a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html
<a id="Hi_NcMech_Workpieces_WorkpieceService_IsRuntimeGeomInit_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.IsRuntimeGeomInit*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_IsMeshedGeomInit_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.IsMeshedGeomInit*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_IsRuntimeGeomInit" data-uid="Hi.NcMech.Workpieces.WorkpieceService.IsRuntimeGeomInit">
IsRuntimeGeomInit
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_IsMeshedGeomInit" data-uid="Hi.NcMech.Workpieces.WorkpieceService.IsMeshedGeomInit">
IsMeshedGeomInit
</h3>
<div class="markdown level1 summary"><p>Indicates whether the runtime geometry is initialized.</p>
<div class="markdown level1 summary"><p>Indicates whether the meshed geometry is initialized.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool IsRuntimeGeomInit { get; }</code></pre>
<pre><code class="lang-csharp hljs">public bool IsMeshedGeomInit { get; }</code></pre>
</div>
@@ -731,7 +801,7 @@ The derived solid from <a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html
</h3>
<div class="markdown level1 summary"><p>Drops runtime geometry and defect display caches so the next access rebuilds from the current <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_Workpiece">Workpiece</a>.</p>
<div class="markdown level1 summary"><p>Drops the raw / ideal solid and defect display caches so the next access rebuilds from the current <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_Workpiece">Workpiece</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -834,8 +904,8 @@ The derived solid from <a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html
<a id="Hi_NcMech_Workpieces_WorkpieceService_Diff_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.Diff*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_Diff_System_Double_System_Threading_CancellationToken_System_IProgress_System_Object__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.Diff(System.Double,System.Threading.CancellationToken,System.IProgress{System.Object})">
Diff(double, CancellationToken, IProgress&lt;object&gt;)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_Diff_System_Double_System_Threading_CancellationToken_System_IProgress_Hi_Common_Messages_IMessage__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.Diff(System.Double,System.Threading.CancellationToken,System.IProgress{Hi.Common.Messages.IMessage})">
Diff(double, CancellationToken, IProgress&lt;IMessage&gt;)
</h3>
@@ -844,18 +914,18 @@ The derived solid from <a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Diff(double detectionRadius, CancellationToken token, IProgress&lt;object&gt; progress = null)</code></pre>
<pre><code class="lang-csharp hljs">public void Diff(double detectionRadius, CancellationToken token, IProgress&lt;IMessage&gt; messageProgress = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>detectionRadius</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
<dd><p>Detection radius.</p>
<dd><p>Detection radius; also saved to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_DetectionRadius_mm">DetectionRadius_mm</a>.</p>
</dd>
<dt><code>token</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Cancellation token.</p>
</dd>
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</dt>
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd><p>Progress reporting interface.</p>
</dd>
</dl>
@@ -1128,35 +1198,38 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_GetRuntimeGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.GetRuntimeGeom*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_GetOrBuildMeshedGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.GetOrBuildMeshedGeom*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_GetRuntimeGeom_System_Threading_CancellationToken_System_IProgress_System_Object__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.GetRuntimeGeom(System.Threading.CancellationToken,System.IProgress{System.Object})">
GetRuntimeGeom(CancellationToken, IProgress&lt;object&gt;)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_GetOrBuildMeshedGeom_System_Threading_CancellationToken_System_IProgress_Hi_Common_Messages_IMessage__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.GetOrBuildMeshedGeom(System.Threading.CancellationToken,System.IProgress{Hi.Common.Messages.IMessage})">
GetOrBuildMeshedGeom(CancellationToken, IProgress&lt;IMessage&gt;)
</h3>
<div class="markdown level1 summary"><p>Gets the runtime geometry.</p>
<div class="markdown level1 summary"><p>Returns the current meshed geometry, lazily building it from the workpiece's
<a class="xref" href="Hi.NcMech.Workpieces.Workpiece.html#Hi_NcMech_Workpieces_Workpiece_InitGeom">InitGeom</a> (voxelize via <a class="xref" href="Hi.Cbtr.CubeTree.html#Hi_Cbtr_CubeTree_NewWithDefectInfos_Hi_Geom_Stl_System_Double_System_Threading_CancellationToken_System_IProgress_Hi_Common_Messages_IMessage__">NewWithDefectInfos(Stl, double, CancellationToken, IProgress&lt;IMessage&gt;)</a>, or load a
<a class="xref" href="Hi.Cbtr.CubeTreeFile.html">CubeTreeFile</a>) when not yet present. The first build can be slow — hence the
cancellation token + progress sinks; once built, the tree is returned cheaply.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public CubeTree GetRuntimeGeom(CancellationToken token, IProgress&lt;object&gt; progress = null)</code></pre>
<pre><code class="lang-csharp hljs">public CubeTree GetOrBuildMeshedGeom(CancellationToken token, IProgress&lt;IMessage&gt; messageProgress = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>token</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Cancellation token.</p>
<dd><p>Cancels an in-progress build (leaves the geometry unbuilt / null).</p>
</dd>
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</dt>
<dd><p>Progress reporting interface.</p>
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd><p>IMessage-channel sink (null = silent).</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Cbtr.CubeTree.html">CubeTree</a></dt>
<dd><p>Cube tree representing the runtime geometry.</p>
<dd><p>The meshed cube tree; null when there is no workpiece / InitGeom, or the build was cancelled.</p>
</dd>
</dl>
@@ -1170,25 +1243,35 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ReadRuntimeGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ReadRuntimeGeom*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ReadMeshedGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ReadMeshedGeom*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ReadRuntimeGeom_System_String_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ReadRuntimeGeom(System.String)">
ReadRuntimeGeom(string)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ReadMeshedGeom_System_String_System_IProgress_Hi_Common_Messages_IMessage__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ReadMeshedGeom(System.String,System.IProgress{Hi.Common.Messages.IMessage})">
ReadMeshedGeom(string, IProgress&lt;IMessage&gt;)
</h3>
<div class="markdown level1 summary"><p>Reads the runtime geometry from a file.</p>
<div class="markdown level1 summary"><p>Reads the meshed geometry from a file, relative to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_BaseDirectoryGetter">BaseDirectoryGetter</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ReadRuntimeGeom(string file)</code></pre>
<pre><code class="lang-csharp hljs">public bool ReadMeshedGeom(string relFile, IProgress&lt;IMessage&gt; messageProgress = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>file</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Source file path.</p>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Source file path, relative to the injected base directory.</p>
</dd>
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd><p>IMessage-channel sink injected by the caller (null = silent).</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>True if the file existed and was read; false if it was not found.</p>
</dd>
</dl>
@@ -1202,27 +1285,55 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ResetMeshedGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ResetMeshedGeom*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ResetRuntimeGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ResetRuntimeGeom*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ResetRuntimeGeom_Hi_CutterLocations_ClStrips_ClStrip_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ResetRuntimeGeom(Hi.CutterLocations.ClStrips.ClStrip)">
ResetRuntimeGeom(ClStrip)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ResetMeshedGeom" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ResetMeshedGeom">
ResetMeshedGeom()
</h3>
<div class="markdown level1 summary"><p>Resets the runtime geometry.</p>
<div class="markdown level1 summary"><p>Resets the meshed geometry.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ResetRuntimeGeom(ClStrip clStrip)</code></pre>
<pre><code class="lang-csharp hljs">public void ResetMeshedGeom()</code></pre>
</div>
<a id="Hi_NcMech_Workpieces_WorkpieceService_RetireAttachments_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.RetireAttachments*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_RetireAttachments_System_Collections_Generic_IReadOnlyCollection_Hi_Cbtr_CbtrPickable__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.RetireAttachments(System.Collections.Generic.IReadOnlyCollection{Hi.Cbtr.CbtrPickable})">
RetireAttachments(IReadOnlyCollection&lt;CbtrPickable&gt;)
</h3>
<div class="markdown level1 summary"><p>Retires attachments OWNED BY A CALLER (e.g. ClStrip's ClStripPos) that are attached to the
current meshed tree. If a tree is current it detaches them under its write-gate render
barrier first; otherwise (tree already retired) it just frees them on the background chain.
Targeted — never touches the base attachment or diff attachments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RetireAttachments(IReadOnlyCollection&lt;CbtrPickable&gt; attachments)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>clStrip</code> <a class="xref" href="Hi.CutterLocations.ClStrips.ClStrip.html">ClStrip</a></dt>
<dd><p>Cutter location strip.</p>
</dd>
<dt><code>attachments</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="Hi.Cbtr.CbtrPickable.html">CbtrPickable</a>&gt;</dt>
<dd></dd>
</dl>
@@ -1236,24 +1347,24 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ScanRuntimeGeomInfDefect_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ScanRuntimeGeomInfDefect*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_ScanMeshedGeomInfDefect_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ScanMeshedGeomInfDefect*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ScanRuntimeGeomInfDefect_System_IProgress_System_Object__System_Threading_CancellationToken_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ScanRuntimeGeomInfDefect(System.IProgress{System.Object},System.Threading.CancellationToken)">
ScanRuntimeGeomInfDefect(IProgress&lt;object&gt;, CancellationToken)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_ScanMeshedGeomInfDefect_System_IProgress_Hi_Common_Messages_IMessage__System_Threading_CancellationToken_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.ScanMeshedGeomInfDefect(System.IProgress{Hi.Common.Messages.IMessage},System.Threading.CancellationToken)">
ScanMeshedGeomInfDefect(IProgress&lt;IMessage&gt;, CancellationToken)
</h3>
<div class="markdown level1 summary"><p>Scans the runtime geometry for inf defects.</p>
<div class="markdown level1 summary"><p>Scans the meshed geometry for inf defects.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool? ScanRuntimeGeomInfDefect(IProgress&lt;object&gt; messageHost, CancellationToken cancellationToken)</code></pre>
<pre><code class="lang-csharp hljs">public bool? ScanMeshedGeomInfDefect(IProgress&lt;IMessage&gt; messageProgress, CancellationToken cancellationToken)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>messageHost</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</dt>
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
@@ -1275,25 +1386,25 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_SetRuntimeGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.SetRuntimeGeom*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_SetMeshedGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.SetMeshedGeom*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_SetRuntimeGeom_Hi_Cbtr_CubeTree_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.SetRuntimeGeom(Hi.Cbtr.CubeTree)">
SetRuntimeGeom(CubeTree)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_SetMeshedGeom_Hi_Cbtr_CubeTree_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.SetMeshedGeom(Hi.Cbtr.CubeTree)">
SetMeshedGeom(CubeTree)
</h3>
<div class="markdown level1 summary"><p>Sets the runtime geometry instance and rebuilds its attachments.</p>
<div class="markdown level1 summary"><p>Sets the meshed geometry instance and rebuilds its attachments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void SetRuntimeGeom(CubeTree runtimeGeom_)</code></pre>
<pre><code class="lang-csharp hljs">public void SetMeshedGeom(CubeTree meshedGeom_)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>runtimeGeom_</code> <a class="xref" href="Hi.Cbtr.CubeTree.html">CubeTree</a></dt>
<dd><p>The runtime cube tree geometry.</p>
<dt><code>meshedGeom_</code> <a class="xref" href="Hi.Cbtr.CubeTree.html">CubeTree</a></dt>
<dd><p>The meshed cube tree geometry.</p>
</dd>
</dl>
@@ -1308,31 +1419,31 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Workpieces_WorkpieceService_WriteRuntimeGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.WriteRuntimeGeom*"></a>
<a id="Hi_NcMech_Workpieces_WorkpieceService_WriteMeshedGeom_" data-uid="Hi.NcMech.Workpieces.WorkpieceService.WriteMeshedGeom*"></a>
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_WriteRuntimeGeom_System_String_System_Threading_CancellationToken_System_IProgress_System_Object__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.WriteRuntimeGeom(System.String,System.Threading.CancellationToken,System.IProgress{System.Object})">
WriteRuntimeGeom(string, CancellationToken, IProgress&lt;object&gt;)
<h3 id="Hi_NcMech_Workpieces_WorkpieceService_WriteMeshedGeom_System_String_System_Threading_CancellationToken_System_IProgress_Hi_Common_Messages_IMessage__" data-uid="Hi.NcMech.Workpieces.WorkpieceService.WriteMeshedGeom(System.String,System.Threading.CancellationToken,System.IProgress{Hi.Common.Messages.IMessage})">
WriteMeshedGeom(string, CancellationToken, IProgress&lt;IMessage&gt;)
</h3>
<div class="markdown level1 summary"><p>Writes the runtime geometry to a file.</p>
<div class="markdown level1 summary"><p>Writes the meshed geometry to a file, relative to <a class="xref" href="Hi.NcMech.Workpieces.WorkpieceService.html#Hi_NcMech_Workpieces_WorkpieceService_BaseDirectoryGetter">BaseDirectoryGetter</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void WriteRuntimeGeom(string file, CancellationToken token, IProgress&lt;object&gt; progress = null)</code></pre>
<pre><code class="lang-csharp hljs">public void WriteMeshedGeom(string relFile, CancellationToken token, IProgress&lt;IMessage&gt; messageProgress = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>file</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Target file path.</p>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>Target file path, relative to the injected base directory.</p>
</dd>
<dt><code>token</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd><p>Cancellation token.</p>
</dd>
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</dt>
<dd><p>Progress reporting interface.</p>
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a>&lt;<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>&gt;</dt>
<dd><p>IMessage-channel progress sink (null = silent).</p>
</dd>
</dl>