fix bug of G53.1 and remove NcEnv.SetToolHeightCompensationOnFeatureNormal property.

This commit is contained in:
2026-03-19 17:25:33 +08:00
parent 2c586333b6
commit 52a3412ecb
826 changed files with 41648 additions and 6499 deletions
@@ -102,7 +102,7 @@ Class XyzabcSolver
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class XyzabcSolver : ICoordinateConverter</code></pre>
<pre><code class="lang-csharp hljs">public class XyzabcSolver : IMachineKinematics</code></pre>
</div>
@@ -119,7 +119,7 @@ Class XyzabcSolver
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="Hi.Numerical.Xyzabc.ICoordinateConverter.html">ICoordinateConverter</a></div>
<div><a class="xref" href="Hi.Numerical.Xyzabc.IMachineKinematics.html">IMachineKinematics</a></div>
</dd>
</dl>
@@ -221,48 +221,6 @@ Class XyzabcSolver
</h2>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_AttacherNpToMc_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.AttacherNpToMc*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_AttacherNpToMc_Hi_Geom_DVec3d_Hi_Geom_DVec3d__" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.AttacherNpToMc(Hi.Geom.DVec3d,Hi.Geom.DVec3d@)">
AttacherNpToMc(DVec3d, out DVec3d)
</h3>
<div class="markdown level1 summary"><p>tool attacher NP (Normal and Point) to machine coordinate.
The NP is from table buckle to tool attacher.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool AttacherNpToMc(DVec3d np, out DVec3d mcXyzabc_rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>np</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
<dd></dd>
<dt><code>mcXyzabc_rad</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
<dd><p>machine coordinate (ABC in radian)</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>whether conversion succeeded</p>
</dd>
</dl>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_IsAxisAExisted_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.IsAxisAExisted*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_IsAxisAExisted" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.IsAxisAExisted">
@@ -362,10 +320,10 @@ The NP is from table buckle to tool attacher.</p>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McAbcToTiltMat_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McAbcToTiltMat*"></a>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McAbcToMat_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McAbcToMat*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McAbcToTiltMat_Hi_Geom_Vec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McAbcToTiltMat(Hi.Geom.Vec3d)">
McAbcToTiltMat(Vec3d)
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McAbcToMat_Hi_Geom_Vec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McAbcToMat(Hi.Geom.Vec3d)">
McAbcToMat(Vec3d)
</h3>
@@ -375,7 +333,7 @@ the tilt matrix is the transformation matrix from table to attacher.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Mat4d McAbcToTiltMat(Vec3d mcAbc_rad)</code></pre>
<pre><code class="lang-csharp hljs">public Mat4d McAbcToMat(Vec3d mcAbc_rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -402,10 +360,10 @@ the tilt matrix is the transformation matrix from table to attacher.</p>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McToAttacherMat_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToAttacherMat*"></a>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McToMat_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToMat*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McToAttacherMat_Hi_Geom_DVec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToAttacherMat(Hi.Geom.DVec3d)">
McToAttacherMat(DVec3d)
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McToMat_Hi_Geom_DVec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToMat(Hi.Geom.DVec3d)">
McToMat(DVec3d)
</h3>
@@ -414,7 +372,7 @@ the tilt matrix is the transformation matrix from table to attacher.</p>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Mat4d McToAttacherMat(DVec3d mc)</code></pre>
<pre><code class="lang-csharp hljs">public Mat4d McToMat(DVec3d mc)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -440,20 +398,20 @@ the tilt matrix is the transformation matrix from table to attacher.</p>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McToAttacherNp_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToAttacherNp*"></a>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_McToPn_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToPn*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McToAttacherNp_Hi_Geom_DVec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToAttacherNp(Hi.Geom.DVec3d)">
McToAttacherNp(DVec3d)
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_McToPn_Hi_Geom_DVec3d_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.McToPn(Hi.Geom.DVec3d)">
McToPn(DVec3d)
</h3>
<div class="markdown level1 summary"><p>Machine coordinate to tool attacher NP (Normal and Point).
The NP is from table buckle to tool attacher.</p>
<div class="markdown level1 summary"><p>Machine coordinate to tool attacher Pn (Point and Normal).
The Pn is from table buckle to tool attacher.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public DVec3d McToAttacherNp(DVec3d mc)</code></pre>
<pre><code class="lang-csharp hljs">public DVec3d McToPn(DVec3d mc)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -465,7 +423,93 @@ The NP is from table buckle to tool attacher.</p>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
<dd><p>tool attacher Np (Normal and Point)</p>
<dd><p>tool attacher Pn (Point and Normal)</p>
</dd>
</dl>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_OrientationToMcAbc_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.OrientationToMcAbc*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_OrientationToMcAbc_Hi_Geom_Mat4d_Hi_Geom_Vec3d__" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.OrientationToMcAbc(Hi.Geom.Mat4d,Hi.Geom.Vec3d@)">
OrientationToMcAbc(Mat4d, out Vec3d)
</h3>
<div class="markdown level1 summary"><p>Converts a tilt matrix to machine ABC coordinates.
the tilt matrix is the transformation matrix from table to attacher.
the solution only fit the orientation part of the <code class="paramref">tiltMat</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool OrientationToMcAbc(Mat4d tiltMat, out Vec3d mcAbc_rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>tiltMat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The tilt matrix to convert</p>
</dd>
<dt><code>mcAbc_rad</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Output parameter that will contain the machine ABC coordinates in radians</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>Whether the conversion was successful</p>
</dd>
</dl>
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_PnToMc_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.PnToMc*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_PnToMc_Hi_Geom_DVec3d_Hi_Geom_DVec3d__" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.PnToMc(Hi.Geom.DVec3d,Hi.Geom.DVec3d@)">
PnToMc(DVec3d, out DVec3d)
</h3>
<div class="markdown level1 summary"><p>Tool attacher Pn (Point and Normal) to machine coordinate.
The Pn is from table buckle to tool attacher.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool PnToMc(DVec3d np, out DVec3d mcXyzabc_rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>np</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
<dd></dd>
<dt><code>mcXyzabc_rad</code> <a class="xref" href="Hi.Geom.DVec3d.html">DVec3d</a></dt>
<dd><p>machine coordinate (ABC in radian)</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>whether conversion succeeded</p>
</dd>
</dl>
@@ -548,49 +592,6 @@ It should be called after the kinematic chain of <span class="xref">Hi.Numerical
<a id="Hi_Numerical_Xyzabc_XyzabcSolver_TiltMatToMcAbc_" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.TiltMatToMcAbc*"></a>
<h3 id="Hi_Numerical_Xyzabc_XyzabcSolver_TiltMatToMcAbc_Hi_Geom_Mat4d_Hi_Geom_Vec3d__" data-uid="Hi.Numerical.Xyzabc.XyzabcSolver.TiltMatToMcAbc(Hi.Geom.Mat4d,Hi.Geom.Vec3d@)">
TiltMatToMcAbc(Mat4d, out Vec3d)
</h3>
<div class="markdown level1 summary"><p>Converts a tilt matrix to machine ABC coordinates.
the tilt matrix is the transformation matrix from table to attacher.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool TiltMatToMcAbc(Mat4d tiltMat, out Vec3d mcAbc_rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>tiltMat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The tilt matrix to convert</p>
</dd>
<dt><code>mcAbc_rad</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Output parameter that will contain the machine ABC coordinates in radians</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>Whether the conversion was successful</p>
</dd>
</dl>
</article>