Archived
150 lines
8.3 KiB
HTML
150 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Geometry, rendering and native stability | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Geometry, rendering and native stability | 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="Release-Upgrading-GeometryRendering">
|
|
<h1 id="geometry-rendering-and-native-stability">Geometry, rendering and native stability</h1>
|
|
|
|
<ul>
|
|
<li><strong>Disposing a display or geometry object still in use no longer crashes the process.</strong> A client
|
|
disconnect, a meshed-geometry reset or an app shutdown could take the process down with an access
|
|
violation. <a class="xref" href="../../api/Hi.Disp.DispEngine.html">DispEngine</a> and <a class="xref" href="../../api/Hi.Cbtr.CubeTree.html">CubeTree</a> native calls are now gated against
|
|
a concurrent dispose, and disposals run serialized on a single background chain —
|
|
<a class="xref" href="../../api/Hi.Cbtr.CubeTree.html#Hi_Cbtr_CubeTree_IsDisposed">IsDisposed</a> reports the state and
|
|
<a class="xref" href="../../api/Hi.Cbtr.CubeTree.html#Hi_Cbtr_CubeTree_DisposeBackground_">DisposeBackground</a> enqueues a tree, or a collection of its attachments,
|
|
onto that chain.</li>
|
|
<li><strong>Large geometry no longer freezes the UI.</strong> <a class="xref" href="../../api/Hi.NcMech.Solids.Solid.html">Solid</a> builds its display
|
|
topology off-thread and draws a wire bounding box with a “Loading” mark until it is ready.</li>
|
|
<li><strong><a class="xref" href="../../api/Hi.CutterLocations.ClStrips.ClStrip.html">ClStrip</a> raises a <code>Cleared</code> event after <code>Clear</code></strong>, pairing with
|
|
the existing <code>PosAdded</code>.</li>
|
|
<li><strong>A P/Invoke correctness sweep</strong> reconciled the managed declarations against the real export table.
|
|
It fixed a non-existent export (<code>substraction_ExpandToBox3d</code>), two <code>void</code> natives declared as
|
|
struct returns (a garbage register read), two <code>ToString</code> marshals that made the CLR free foreign
|
|
memory, and a log-callback delegate nothing rooted against GC — native could call a dead thunk long
|
|
after the P/Invoke returned. These are the crashes a user reports as “it crashes randomly”.</li>
|
|
<li><strong>Milled step colours no longer go stale at random.</strong> Step colours are baked into the native cube-tree
|
|
attachment, but the refresh only flagged the strip while the display cache was freed immediately, so a
|
|
frame landing in that window rebuilt the cache from stale colours and nothing cleaned it again. The
|
|
service now cleans the cache once more after the re-stamp. A paired fix stops an empty strip display
|
|
window swallowing a pending recolor indefinitely.</li>
|
|
<li><strong>The dimension bar reads on any background.</strong> It was a single hard-coded near-black stroke left over
|
|
from the light-host era, invisible once the front end went dark. It is now drawn as a wider dark halo
|
|
under a white main stroke, with the halo pushed back whole depth steps rather than the white pass
|
|
nudged forward by half a depth LSB — which intermittently lost the depth test.</li>
|
|
<li><strong>New geometry API.</strong> <a class="xref" href="../../api/Hi.Geom.Topo.CarveStl.html">CarveStl</a> is the managed face of the native exact
|
|
triangle-CSG container. <a class="xref" href="../../api/Hi.Cbtr.CubeTree.html#Hi_Cbtr_CubeTree_Add_">Add</a> is the boolean-union counterpart of <code>Substract</code>,
|
|
returning <a class="xref" href="../../api/Hi.Cbtr.UnmanagedAddition.html">UnmanagedAddition</a>, and <a class="xref" href="../../api/Hi.Machining.SweptableUtil.html#Hi_Machining_SweptableUtil_AddBySweepingVolume_">AddBySweepingVolume</a>
|
|
mirrors <code>RemoveBySweepingVolume</code> — the geometry-layer symmetric point for additive processes. There is
|
|
no deposition step in the machining runner yet, so this is a geometry-level API only.</li>
|
|
<li><strong><a class="xref" href="../../api/Hi.Milling.FluteContours.FreeformBottomContour.html">FreeformBottomContour</a></strong> is the user-editable point-list bottom
|
|
contour, mirroring the side contour with the key axis switched to radius.</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>
|