This commit is contained in:
2026-09-09 17:35:23 +08:00
parent 2a98ae7556
commit 161af68fe3
1271 changed files with 58251 additions and 98639 deletions
@@ -306,6 +306,47 @@ Implements display, collision detection, and content update capabilities.</p>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick__ctor_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.#ctor*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick__ctor_Hi_Mech_Topo_Anchor_Hi_Geom_IGetStl_Hi_Geom_Resolution_PolarResolution2d_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.#ctor(Hi.Mech.Topo.Anchor,Hi.Geom.IGetStl,Hi.Geom.Resolution.PolarResolution2d)">
StlSourceTopoBrick(Anchor, IGetStl, PolarResolution2d)
</h3>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Hi.NcMech.Topo.StlSourceTopoBrick.html">StlSourceTopoBrick</a> class
whose solid is born with the given mesh resolution
(see <a class="xref" href="Hi.NcMech.Solids.Solid.html#Hi_NcMech_Solids_Solid_PolarResolution2d">PolarResolution2d</a>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public StlSourceTopoBrick(Anchor anchor, IGetStl geom, PolarResolution2d resolution)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>anchor</code> <a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a></dt>
<dd><p>The anchor point for this brick.</p>
</dd>
<dt><code>geom</code> <a class="xref" href="Hi.Geom.IGetStl.html">IGetStl</a></dt>
<dd><p>The STL geometry source.</p>
</dd>
<dt><code>resolution</code> <a class="xref" href="Hi.Geom.Resolution.PolarResolution2d.html">PolarResolution2d</a></dt>
<dd><p>Mesh resolution the solid is born with; null lets the geometry apply its own default.</p>
</dd>
</dl>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick__ctor_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.#ctor*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick__ctor_Hi_Mech_Topo_Anchor_Hi_NcMech_Solids_Solid_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.#ctor(Hi.Mech.Topo.Anchor,Hi.NcMech.Solids.Solid)">
@@ -414,38 +455,6 @@ entities displaying the same machine part).</p>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick_CollisionFlag_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.CollisionFlag*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick_CollisionFlag" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.CollisionFlag">
CollisionFlag
</h3>
<div class="markdown level1 summary"><p>Gets or sets the collision flag.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public CollisionFlag CollisionFlag { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Collision.CollisionFlag.html">CollisionFlag</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick_Geom_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.Geom*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick_Geom" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.Geom">
@@ -485,7 +494,9 @@ entities displaying the same machine part).</p>
</h3>
<div class="markdown level1 summary"><p>Gets the solid geometry instance.</p>
<div class="markdown level1 summary"><p>Gets the solid geometry instance. The instance is swapped — not mutated —
when the mesh resolution changes (see <a class="xref" href="Hi.NcMech.Topo.StlSourceTopoBrick.html#Hi_NcMech_Topo_StlSourceTopoBrick_RebuildSolid_Hi_Geom_Resolution_PolarResolution2d_">RebuildSolid(PolarResolution2d)</a>), so
consumers must re-read this property instead of caching the solid.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -833,6 +844,49 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick_RebuildSolid_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.RebuildSolid*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick_RebuildSolid_Hi_Geom_Resolution_PolarResolution2d_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.RebuildSolid(Hi.Geom.Resolution.PolarResolution2d)">
RebuildSolid(PolarResolution2d)
</h3>
<div class="markdown level1 summary"><p>Swaps the hosted <a class="xref" href="Hi.NcMech.Solids.Solid.html">Solid</a> for one born with
<code class="paramref">resolution</code>; the geometry and authored color carry over
and the replaced solid is disposed. The resolution is part of a solid's
identity, so a matching resolution keeps the current instance untouched.
Only a brick that owns its solid may rebuild it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool RebuildSolid(PolarResolution2d resolution)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>resolution</code> <a class="xref" href="Hi.Geom.Resolution.PolarResolution2d.html">PolarResolution2d</a></dt>
<dd><p>Target mesh resolution; null lets the geometry apply its own default.</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 solid was swapped; false if the resolution already matches.</p>
</dd>
</dl>
<a id="Hi_NcMech_Topo_StlSourceTopoBrick_UpdateByContent_" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.UpdateByContent*"></a>
<h3 id="Hi_NcMech_Topo_StlSourceTopoBrick_UpdateByContent" data-uid="Hi.NcMech.Topo.StlSourceTopoBrick.UpdateByContent">