This commit is contained in:
2026-09-17 10:22:49 +08:00
parent bfa3106a69
commit 8f2d00155b
41 changed files with 4244 additions and 698 deletions
@@ -239,7 +239,7 @@ Class Anchor
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>asmb</code> <a class="xref" href="Hi.Mech.Topo.Asmb.html">Asmb</a></dt>
<dd><p>add this to <code class="paramref">asmb</code>.<a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_ChildAncs">ChildAncs</a></p>
<dd><p>add this to <code class="paramref">asmb</code> by <a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_Add_Hi_Mech_Topo_Anchor_">Add(Anchor)</a></p>
</dd>
</dl>
@@ -272,7 +272,7 @@ Class Anchor
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>asmb</code> <a class="xref" href="Hi.Mech.Topo.Asmb.html">Asmb</a></dt>
<dd><p>add this to <code class="paramref">asmb</code>.<a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_ChildAncs">ChildAncs</a></p>
<dd><p>add this to <code class="paramref">asmb</code> by <a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_Add_Hi_Mech_Topo_Anchor_">Add(Anchor)</a></p>
</dd>
<dt><code>name</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p><a class="xref" href="Hi.Mech.Topo.Anchor.html#Hi_Mech_Topo_Anchor_Name">Name</a></p>
@@ -301,7 +301,8 @@ Class Anchor
</h3>
<div class="markdown level1 summary"><p>Gets the branch map. &lsquo;this&rsquo; anchor locates on <a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Fletch">Fletch</a> .</p>
<div class="markdown level1 summary"><p>Gets a snapshot of the branches departing from this anchor, keyed by their
<a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Arrow">Arrow</a>. &lsquo;this&rsquo; anchor locates on <a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Fletch">Fletch</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -316,8 +317,7 @@ Class Anchor
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>, <a class="xref" href="Hi.Mech.Topo.Branch.html">Branch</a>&gt;</dt>
<dd><p>The branch map.</p>
</dd>
<dd></dd>
</dl>
@@ -334,7 +334,8 @@ Class Anchor
</h3>
<div class="markdown level1 summary"><p>Gets the branch map. &lsquo;this&rsquo; anchor locates on <a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Arrow">Arrow</a> .</p>
<div class="markdown level1 summary"><p>Gets a snapshot of the branches arriving at this anchor, keyed by their
<a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Fletch">Fletch</a>. &lsquo;this&rsquo; anchor locates on <a class="xref" href="Hi.Mech.Topo.Branch.html#Hi_Mech_Topo_Branch_Arrow">Arrow</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -349,8 +350,7 @@ Class Anchor
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>, <a class="xref" href="Hi.Mech.Topo.Branch.html">Branch</a>&gt;</dt>
<dd><p>The branch map.</p>
</dd>
<dd></dd>
</dl>
@@ -490,10 +490,109 @@ Only the Guid takes effect when reading.</p>
<a id="Hi_Mech_Topo_Anchor_Parent_" data-uid="Hi.Mech.Topo.Anchor.Parent*"></a>
<h3 id="Hi_Mech_Topo_Anchor_Parent" data-uid="Hi.Mech.Topo.Anchor.Parent">
Parent
</h3>
<div class="markdown level1 summary"><p>The assembly this anchor belongs to; null while it belongs to none.
An anchor belongs to at most one assembly at a time.
Maintained by <a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_Add_Hi_Mech_Topo_Anchor_">Add(Anchor)</a> and <a class="xref" href="Hi.Mech.Topo.Asmb.html#Hi_Mech_Topo_Asmb_Remove_Hi_Mech_Topo_Anchor_">Remove(Anchor)</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Asmb Parent { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Mech.Topo.Asmb.html">Asmb</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_Mech_Topo_Anchor_Ancestors_" data-uid="Hi.Mech.Topo.Anchor.Ancestors*"></a>
<h3 id="Hi_Mech_Topo_Anchor_Ancestors" data-uid="Hi.Mech.Topo.Anchor.Ancestors">
Ancestors()
</h3>
<div class="markdown level1 summary"><p>The assemblies enclosing this anchor, nearest first.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Asmb&gt; Ancestors()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Mech.Topo.Asmb.html">Asmb</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_Mech_Topo_Anchor_ConnectedAnchors_" data-uid="Hi.Mech.Topo.Anchor.ConnectedAnchors*"></a>
<h3 id="Hi_Mech_Topo_Anchor_ConnectedAnchors" data-uid="Hi.Mech.Topo.Anchor.ConnectedAnchors">
ConnectedAnchors()
</h3>
<div class="markdown level1 summary"><p>Every anchor reachable from this one over branches, this one included,
regardless of which assemblies they belong to.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public HashSet&lt;Anchor&gt; ConnectedAnchors()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.hashset-1">HashSet</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_Mech_Topo_Anchor_Detach_" data-uid="Hi.Mech.Topo.Anchor.Detach*"></a>
<h3 id="Hi_Mech_Topo_Anchor_Detach" data-uid="Hi.Mech.Topo.Anchor.Detach">
@@ -663,38 +762,6 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_Mech_Topo_Anchor_GetClusterAnchors_" data-uid="Hi.Mech.Topo.Anchor.GetClusterAnchors*"></a>
<h3 id="Hi_Mech_Topo_Anchor_GetClusterAnchors" data-uid="Hi.Mech.Topo.Anchor.GetClusterAnchors">
GetClusterAnchors()
</h3>
<div class="markdown level1 summary"><p>Gets all the linked anchors by <a class="xref" href="Hi.Mech.Topo.Branch.html">Branch</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public HashSet&lt;Anchor&gt; GetClusterAnchors()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.hashset-1">HashSet</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_Mech_Topo_Anchor_GetMat4d_" data-uid="Hi.Mech.Topo.Anchor.GetMat4d*"></a>
<h3 id="Hi_Mech_Topo_Anchor_GetMat4d_Hi_Mech_Topo_IGetAnchor_" data-uid="Hi.Mech.Topo.Anchor.GetMat4d(Hi.Mech.Topo.IGetAnchor)">
@@ -720,7 +787,7 @@ This function is usually used to compute the bounding box of elements.</p>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>transform matrix</p>
<dd><p>transform matrix; null when no branch chain connects the two</p>
</dd>
</dl>
@@ -741,7 +808,8 @@ This function is usually used to compute the bounding box of elements.</p>
</h3>
<div class="markdown level1 summary"><p>Gets the mat4d map in <a class="xref" href="Hi.Mech.Topo.Anchor.html#Hi_Mech_Topo_Anchor_GetClusterAnchors">GetClusterAnchors()</a></p>
<div class="markdown level1 summary"><p>Gets the transform of every anchor in <a class="xref" href="Hi.Mech.Topo.Anchor.html#Hi_Mech_Topo_Anchor_ConnectedAnchors">ConnectedAnchors()</a>,
expressed in this anchor's coordinate.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -766,60 +834,26 @@ This function is usually used to compute the bounding box of elements.</p>
<a id="Hi_Mech_Topo_Anchor_GetNeighborAnchorList_" data-uid="Hi.Mech.Topo.Anchor.GetNeighborAnchorList*"></a>
<a id="Hi_Mech_Topo_Anchor_NeighborAnchors_" data-uid="Hi.Mech.Topo.Anchor.NeighborAnchors*"></a>
<h3 id="Hi_Mech_Topo_Anchor_GetNeighborAnchorList" data-uid="Hi.Mech.Topo.Anchor.GetNeighborAnchorList">
GetNeighborAnchorList()
<h3 id="Hi_Mech_Topo_Anchor_NeighborAnchors" data-uid="Hi.Mech.Topo.Anchor.NeighborAnchors">
NeighborAnchors()
</h3>
<div class="markdown level1 summary"><p>Get neighbor anchors.</p>
<div class="markdown level1 summary"><p>The anchors one branch away, in either direction; each once.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public List&lt;Anchor&gt; GetNeighborAnchorList()</code></pre>
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Anchor&gt; NeighborAnchors()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>&gt;</dt>
<dd><p>neighbor anchors</p>
</dd>
</dl>
<a id="Hi_Mech_Topo_Anchor_GetNeighborAnchorSet_" data-uid="Hi.Mech.Topo.Anchor.GetNeighborAnchorSet*"></a>
<h3 id="Hi_Mech_Topo_Anchor_GetNeighborAnchorSet" data-uid="Hi.Mech.Topo.Anchor.GetNeighborAnchorSet">
GetNeighborAnchorSet()
</h3>
<div class="markdown level1 summary"><p>Get neighbor anchors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public HashSet&lt;Anchor&gt; GetNeighborAnchorSet()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.hashset-1">HashSet</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>&gt;</dt>
<dd><p>neighbor anchors</p>
</dd>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Mech.Topo.Anchor.html">Anchor</a>&gt;</dt>
<dd></dd>
</dl>