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,9 +192,9 @@ PlayNcFile("NC/file1.nc"); // pauses if a collision occurs
<hr>
<h2 id="3-geometry-defect-scanning">3. Geometry Defect Scanning</h2>
<p>Geometry defect scanning helps debug abnormal workpiece or tool geometry. This is typically used only when geometry construction problems are suspected.</p>
<h3 id="scanruntimegeominfdefect">ScanRuntimeGeomInfDefect</h3>
<p><a class="xref" href="../api/Hi.MachiningProcs.SessionShell.html#Hi_MachiningProcs_SessionShell_ScanRuntimeGeomInfDefect_">ScanRuntimeGeomInfDefect</a> scans for infinite edge cut defects in the runtime geometry. After scanning, defect areas are rendered with colored markers.</p>
<pre><code class="lang-csharp">ScanRuntimeGeomInfDefect();
<h3 id="scanmeshedgeominfdefect">ScanMeshedGeomInfDefect</h3>
<p><a class="xref" href="../api/Hi.MachiningProcs.SessionShell.html#Hi_MachiningProcs_SessionShell_ScanMeshedGeomInfDefect_">ScanMeshedGeomInfDefect</a> scans for infinite edge cut defects in the meshed geometry. After scanning, defect areas are rendered with colored markers.</p>
<pre><code class="lang-csharp">ScanMeshedGeomInfDefect();
</code></pre>
<p>Return values:</p>
<ul>
@@ -203,7 +203,7 @@ PlayNcFile(&quot;NC/file1.nc&quot;); // pauses if a collision occurs
<li><code>null</code> — unable to execute (e.g., workpiece does not exist)</li>
</ul>
<h3 id="workflow-scan-before-simulation">Workflow: Scan Before Simulation</h3>
<pre><code class="lang-csharp">ScanRuntimeGeomInfDefect();
<pre><code class="lang-csharp">ScanMeshedGeomInfDefect();
Pause(); // visually inspect defects
ClearDefectDisplayee(); // clear markers
PlayNcFile(&quot;NC/file1.nc&quot;);
@@ -214,7 +214,7 @@ PlayNcFile(&quot;NC/file1.nc&quot;);
</code></pre>
<div class="NOTE">
<h5>Note</h5>
<p>Defect markers are automatically cleared when the workpiece is reloaded or the runtime geometry is reset. During workpiece initialization, if construction defects are detected, markers are automatically displayed.</p>
<p>Defect markers are automatically cleared when the workpiece is reloaded or the meshed geometry is reset. During workpiece initialization, if construction defects are detected, markers are automatically displayed.</p>
</div>
<hr>
<h2 id="4-flying-piece-removal">4. Flying Piece Removal</h2>
@@ -224,7 +224,7 @@ PlayNcFile(&quot;NC/file1.nc&quot;);
</code></pre>
<div class="TIP">
<h5>Tip</h5>
<p>Run <code>RemoveFlyPiece</code> after simulation and before geometry export (<code>WriteRuntimeGeomToStl</code>) to produce a clean output.</p>
<p>Run <code>RemoveFlyPiece</code> after simulation and before geometry export (<code>ExportMeshedGeomToStl</code>) to produce a clean output.</p>
</div>
<hr>
<h2 id="combined-validation-script-example">Combined Validation Script Example</h2>
@@ -243,14 +243,14 @@ RemoveFlyPiece();
Diff(1);
// Scan for geometry defects
var hasDefects = ScanRuntimeGeomInfDefect();
var hasDefects = ScanMeshedGeomInfDefect();
if (hasDefects == true)
{
WarningMessage(&quot;Geometry defects detected&quot;);
}
// Export final geometry
WriteRuntimeGeomToStl(&quot;Output/final.stl&quot;);
ExportMeshedGeomToStl(&quot;Output/final.stl&quot;);
WriteStepFiles(&quot;Output/[NcName].step.csv&quot;);
</code></pre>
<h2 id="see-also">See Also</h2>