OCCTProxy

occtProxy内核文件接口文档


ReComputeTrace

<p><strong>函数名称</strong>:ReComputeTrace</p> <p><strong>接口形式</strong>:方法</p> <p><strong>请求方式</strong>:调用<code>OCCTProxy</code>的<code>ReComputeTrace</code>方法</p> <p><strong>接口描述</strong>: 该功能算是设置轨迹的全局参数,传入的数据包括更改圆弧段判断依据、更改竖直段判断依据等。使用该功能,新的数据会应用到已经生成或准备生成的轨迹中,所以会重新计算轮辐(轨迹)的不同段,根据传入的参数更新轨迹的特定工艺属性。</p> <p><strong>返回数据格式</strong>: <code>Dictionary&amp;lt;String, Object&amp;gt;</code></p> <pre><code class="language-json"> { &amp;quot;ResultFlag&amp;quot;: int, // 操作结果标志,1成功,非1表示出错 &amp;quot;ResultMsg&amp;quot;: String, // 操作结果信息或错误消息 &amp;quot;Data&amp;quot;: NULL // 本接口不返回具体数据,故Data字段为null }</code></pre> <p><strong>请求参数</strong>:</p> <ul> <li><code>data</code>:<code>Dictionary&amp;lt;String, Object&amp;gt;</code> 类型,包含要设置的工艺参数的键值对。</li> </ul> <p><strong>传入的参数列表</strong>:</p> <ul> <li><code>&amp;quot;ToolInOutMoveSpeed&amp;quot;</code></li> <li><code>&amp;quot;ApproachPointDistance&amp;quot;</code></li> <li><code>&amp;quot;FallbackPointDistance&amp;quot;</code></li> <li><code>&amp;quot;SharpCurvatureRadiusThreshold&amp;quot;</code> // 默认值为2</li> <li><code>&amp;quot;VerticalTangentAngleThreshold&amp;quot;</code></li> <li><code>&amp;quot;ToolSpinEnabled&amp;quot;</code></li> <li><code>&amp;quot;StraightTransitionLength&amp;quot;</code></li> <li><code>&amp;quot;InOutMotionType&amp;quot;</code></li> <li><code>&amp;quot;CutMotionType&amp;quot;</code></li> </ul> <p><strong>注意事项</strong>:</p> <ul> <li>在调用此接口之前,请确保<code>OCCTProxy</code>实例已经正确初始化,并且DLL已经加载。</li> <li>传入的参数值必须符合工艺参数的要求,否则可能会导致重新计算失败或轨迹加工出现问题。</li> <li>如果在重新计算轨迹段过程中发生错误,<code>ResultFlag</code> 将不为1,并且 <code>ResultMsg</code> 将包含错误信息,请根据这些信息进行排查和处理。</li> </ul>

页面列表

ITEM_HTML