This commit is contained in:
2025-07-25 16:27:29 +08:00
parent 38b27cd481
commit b5cad3c171
1114 changed files with 68009 additions and 23981 deletions
@@ -103,7 +103,7 @@ This class combines a transformer with a target geometry to produce transformed
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class TransformationGeom : IStlSource, IGetStl, IMakeXmlSource, IGeomProperty, IExpandToBox3d, IDuplicate</code></pre>
<pre><code class="lang-csharp hljs">public class TransformationGeom : IStlSource, IGetStl, IMakeXmlSource, IGeomProperty, IGenStl, IExpandToBox3d, IDuplicate</code></pre>
</div>
@@ -124,6 +124,7 @@ This class combines a transformer with a target geometry to produce transformed
<div><a class="xref" href="Hi.Geom.IGetStl.html">IGetStl</a></div>
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
<div><a class="xref" href="Hi.Geom.IGeomProperty.html">IGeomProperty</a></div>
<div><a class="xref" href="Hi.Geom.IGenStl.html">IGenStl</a></div>
<div><a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a></div>
<div><a class="xref" href="Hi.Common.IDuplicate.html">IDuplicate</a></div>
</dd>
@@ -151,9 +152,6 @@ This class combines a transformer with a target geometry to produce transformed
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
</div>
</dd></dl>
<dl class="typelist extensionMethods">
@@ -426,7 +424,7 @@ with the target geometry being on the left side.</p>
</h3>
<div class="markdown level1 summary"><p>Creates a deep copy of the current TransformationGeom instance.</p>
<div class="markdown level1 summary"><p>Creates a deep copy of the object, excluding any source file references.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -437,14 +435,14 @@ with the target geometry being on the left side.</p>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
<dd><p>Additional resources for duplication (not used in current implementation).</p>
<dd><p>Optional parameters that may be needed during the duplication process</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
<dd><p>A new TransformationGeom instance with copied transformer and geometry data.</p>
<dd><p>A new instance that is a deep copy of the original object</p>
</dd>
</dl>
@@ -499,6 +497,44 @@ If the geometry or its STL representation is null, no expansion occurs.</p>
<a id="Hi_Geom_TransformationGeom_GenStl_" data-uid="Hi.Geom.TransformationGeom.GenStl*"></a>
<h3 id="Hi_Geom_TransformationGeom_GenStl_Hi_Geom_Resolution_IPolarResolution2d_" data-uid="Hi.Geom.TransformationGeom.GenStl(Hi.Geom.Resolution.IPolarResolution2d)">
GenStl(IPolarResolution2d)
</h3>
<div class="markdown level1 summary"><p>Generate a new Stl.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Stl GenStl(IPolarResolution2d resolution)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>resolution</code> <a class="xref" href="Hi.Geom.Resolution.IPolarResolution2d.html">IPolarResolution2d</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Stl.html">Stl</a></dt>
<dd><p>newly created Stl</p>
</dd>
</dl>
<a id="Hi_Geom_TransformationGeom_GetStl_" data-uid="Hi.Geom.TransformationGeom.GetStl*"></a>
<h3 id="Hi_Geom_TransformationGeom_GetStl" data-uid="Hi.Geom.TransformationGeom.GetStl">
@@ -540,33 +576,37 @@ If the geometry is null or produces a null STL, the method returns null.</p>
<a id="Hi_Geom_TransformationGeom_MakeXmlSource_" data-uid="Hi.Geom.TransformationGeom.MakeXmlSource*"></a>
<h3 id="Hi_Geom_TransformationGeom_MakeXmlSource_System_String_System_String_" data-uid="Hi.Geom.TransformationGeom.MakeXmlSource(System.String,System.String)">
MakeXmlSource(string, string)
<h3 id="Hi_Geom_TransformationGeom_MakeXmlSource_System_String_System_String_System_Boolean_" data-uid="Hi.Geom.TransformationGeom.MakeXmlSource(System.String,System.String,System.Boolean)">
MakeXmlSource(string, string, bool)
</h3>
<div class="markdown level1 summary"><p>Creates an XML representation of the current TransformationGeom instance.</p>
<div class="markdown level1 summary"><p>Creates an XML representation of the object.
This method may also generate additional resources such as related files.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XElement MakeXmlSource(string baseDirectory, string relFile)</code></pre>
<pre><code class="lang-csharp hljs">public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The base directory for resolving relative paths.</p>
<dd><p>The base directory for resolving relative paths</p>
</dd>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The relative file path (not used in current implementation).</p>
<dd><p>The relative file path for the XML source</p>
</dd>
<dt><code>exhibitionOnly</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>if true, the extended file creation is suppressed.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>An XElement containing the serialized data of this instance.</p>
<dd><p>An XML element representing the object's state</p>
</dd>
</dl>
@@ -576,14 +616,48 @@ If the geometry is null or produces a null STL, the method returns null.</p>
<h4 class="section" id="Hi_Geom_TransformationGeom_MakeXmlSource_System_String_System_String__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>The generated XML includes both the transformer and geometry data if they are available.
Null properties are handled gracefully and will not cause errors in the XML generation.</p>
<h4 class="section" id="Hi_Geom_TransformationGeom_MakeXmlSource_System_String_System_String_System_Boolean__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The <code class="paramref">baseDirectory</code> is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.</p>
</div>
<a id="Hi_Geom_TransformationGeom_ToString_" data-uid="Hi.Geom.TransformationGeom.ToString*"></a>
<h3 id="Hi_Geom_TransformationGeom_ToString" data-uid="Hi.Geom.TransformationGeom.ToString">
ToString()
</h3>
<div class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>A string that represents the current object.</p>
</dd>
</dl>
</article>