OCCTProxy

occtProxy内核文件接口文档


SetBatchPoint

<p><strong>DLL接口文档</strong></p> <p><strong>接口名称</strong>:SetBatchPoint</p> <p><strong>接口形式</strong>:DLL</p> <p><strong>请求方式</strong>:通过调用<code>WireWrapper</code>实例的<code>SetBatchPoint</code>方法</p> <p><strong>接口描述</strong>:设置特定轨迹的指定区域内的点位置、旋转角、切削深度、刀头下沉深度。</p> <p><strong>返回数据格式</strong>:</p> <pre><code class="language-json"> { &amp;quot;ResultFlag&amp;quot;: int,// 返回标志,通常用于表示操作是否成功 &amp;quot;ResultMsg&amp;quot;: String, // 返回信息,包含操作成功或失败的原因 &amp;quot;Data&amp;quot;: NULL // 预留的数据字段,当前返回NULL }</code></pre> <p><strong>请求参数</strong>:<code>Dictionary&amp;lt;String, Object&amp;gt; data</code></p> <p><strong>参数说明</strong>:</p> <ul> <li><code>startNum</code>:起始点编号(整数类型),指定要操作的起始点位。</li> <li><code>endNum</code>:结束点编号(整数类型),指定要操作的结束点位。</li> <li><code>angleX</code>:X轴旋转角(浮点类型),指定点位的X轴旋转角度。</li> <li><code>angleY</code>:Y轴旋转角(浮点类型),指定点位的Y轴旋转角度。</li> <li><code>angleZ</code>:Z轴旋转角(浮点类型),指定点位的Z轴旋转角度。</li> <li><code>offsetX</code>:X轴偏移量(浮点类型),指定点位的X轴偏移量。</li> <li><code>offsetY</code>:Y轴偏移量(浮点类型),指定点位的Y轴偏移量。</li> <li><code>offsetZ</code>:Z轴偏移量(浮点类型),指定点位的Z轴偏移量。</li> <li><code>feedCutDepth</code>:每个点的向下入刀深度(浮点类型),此参数目前未做平滑处理。</li> <li><code>cutDepth</code>:每个点的切削深度(浮点类型),正数表示刀头深入轮毂边缘,负数表示刀头远离轮毂边缘,已做平滑处理。</li> </ul> <p><strong>调用示例</strong>(伪代码): ```c# // 假设已经有一个WireWrapper实例wireWrapper,以及一个包含所需参数的字典data Dictionary&lt;String, Object&gt; data = new Dictionary&lt;String, Object&gt; { { &quot;startNum&quot;, 1 }, { &quot;endNum&quot;, 10 }, { &quot;angleX&quot;, 0.5f }, { &quot;angleY&quot;, 0.1f }, { &quot;angleZ&quot;, 0.2f }, { &quot;offsetX&quot;, 1.0f }, { &quot;offsetY&quot;, 2.0f }, { &quot;offsetZ&quot;, 0.5f }, { &quot;feedCutDepth&quot;, 3.0f }, { &quot;cutDepth&quot;, 2.0f } }; try { // 调用SetBatchPoint方法设置点位 Dictionary&lt;String, Object&gt; result = wireWrapper.SetBatchPoint(data); // 检查操作结果 if ((int)result[&quot;ResultFlag&quot;] == 0) // 假设0代表成功 { Console.WriteLine(&quot;点位设置成功。&quot;); } else { Console.WriteLine(&quot;点位设置失败:&quot; + result[&quot;ResultMsg&quot;]); } } catch (Exception ex) { // 异常处理 Console.WriteLine(&quot;调用SetBatchPoint方法时发生异常:{0}&quot;, ex.Message); }</p> <pre><code> **注意**: * 调用此接口时,应确保传入的参数合法且符合接口要求。 * 在实际开发中,需要根据DLL接口文档和编程语言的API文档来正确设置和传递参数。 * `ResultFlag`的值可能因接口实现而有所不同,应根据具体的接口文档来判断操作是否成功。 * 如果轨迹不存在或传入的点位编号超出范围,接口可能会返回失败信息。 * 角度偏移和切削深度、刀头下沉深度的平滑效果都是由参数控制的,在内核代码中控制平滑的参数只有每毫米最大角度变化值可以修改,两个深度的平滑控制参数不可修改。</code></pre>

页面列表

ITEM_HTML