OCCTProxy

occtProxy内核文件接口文档


GetPointInfo

<p><strong>DLL接口文档</strong></p> <p><strong>接口名称</strong>:GetPointInfo</p> <p><strong>接口形式</strong>:DLL</p> <p><strong>请求方式</strong>:调用<code>WireWrapper</code>的<code>GetPointInfo()</code>方法</p> <p><strong>接口描述</strong>:传入点位编号(pointNum),返回轨迹上对应编号所在下标的点位数据。</p> <p><strong>返回数据格式</strong>:<code>Dictionary&amp;lt;String, Object&amp;gt;</code></p> <ul> <li><strong>ResultFlag</strong> (int):结果标志,用于指示操作是否成功。</li> <li><strong>ResultMsg</strong> (String):结果消息,包含操作结果的详细描述或错误信息。</li> <li><strong>Data</strong> (Dictionary&lt;String, Object&gt;):点位数据字典,包含以下键值对: <ul> <li><strong>XCoord</strong> (double):X坐标值。</li> <li><strong>YCoord</strong> (double):Y坐标值。</li> <li><strong>ZCoord</strong> (double):Z坐标值。</li> <li><strong>WCoord</strong> (double):W坐标值。</li> <li><strong>PCoord</strong> (double):P坐标值。</li> <li><strong>RCoord</strong> (double):R坐标值。</li> <li><strong>RX</strong> (double):点位在X轴的实际偏移角。</li> <li><strong>RY</strong> (double):点位在Y轴的实际偏移角。</li> <li><strong>RZ</strong> (double):点位在Z轴的实际偏移角。</li> <li><strong>feedCutDepth</strong> (double):进给切割深度。</li> <li><strong>needReversedY</strong> (bool):是否需要反转Y坐标的标志。</li> <li><strong>cutDepth</strong> (double):切割深度。</li> </ul></li> </ul> <p><strong>请求参数</strong>:</p> <ul> <li><strong>pointNum</strong> (int):要查询的点位编号。</li> </ul> <p><strong>调用示例</strong>(伪代码): ```c# // 假设已经有一个WireWrapper实例wireWrapper,该实例包含轨迹信息 int pointNum = 5; // 要查询的点位编号 // 调用GetPointInfo方法获取点位信息 Dictionary&lt;String, Object&gt; pointInfo = wireWrapper.GetPointInfo(pointNum); // 检查返回结果 if ((int)pointInfo[&quot;ResultFlag&quot;] == 1) { // 提取点位数据 Dictionary&lt;String, Object&gt; data = (Dictionary&lt;String, Object&gt;)pointInfo[&quot;Data&quot;]; double xCoord = (double)data[&quot;XCoord&quot;]; double yCoord = (double)data[&quot;YCoord&quot;]; // ... 处理其他坐标和参数 ... } else { // 处理错误情况 string errorMessage = (string)pointInfo[&quot;ResultMsg&quot;]; Console.WriteLine(&quot;获取点位信息失败: &quot; + errorMessage); }</p> <pre><code> **注意事项**: * 在调用`GetPointInfo()`方法时,需要传入要查询的点位编号(pointNum)。 * 确保`WireWrapper`实例已经被正确初始化和填充了轨迹数据。 * 返回的`ResultFlag`用于判断操作是否成功。</code></pre>

页面列表

ITEM_HTML