1. sectioning
方法描述:模型剖切
1.1. 传参说明
参数名 | 参数说明 | 类型 | 是否必填 |
---|---|---|---|
sectioning | 模型剖切 | string | 是 |
sectionState | 剖切状态 | string | 是 |
close | 退出剖切编辑状态 | string | 是 |
freeSectioning | 自由剖切类型 | string | 是 |
1.2. 返回值
"sectioning"
字符串:{"startPoint":"215,234","endPoint":"654,221"} //起点与终点
1.3. 调用示例
// 格式:
string sReturn = javaCall3D(funcName,sectionState);
// 示例:
//参数一为功能的函数名
//参数二为剖切状态
string sectioning = javaCall3D("sectioning","sectionState");
//参数一为功能的函数名
//参数二为退出剖切编辑状态
string sectioning = javaCall3D("sectioning","close");
//参数一为功能的函数名
//参数二为自由剖切类型
string sectioning = javaCall3D("sectioning",{"type":"freeSectioning" , //自由剖切类型
"operation":"create", //创建
"axis":"X"/"-X"/"Y"/"-Y"/"Z"/"-Z"}
);
1.4. 接口说明
- 退出剖切状态
{ "type":"close"//退出状态 }
- 创建自由剖切
{ "type":"freeSectioning", //自由剖切` "axis":"X/Y/Z",//轴 "operation":"create" //创建 }
- 自由剖切 移动
{ "type":"freeSectioning",//自由剖切 "axis":"X/Y/Z",//轴 "operation":"translation",//移动 "beginPos":"1,2",//起始点 "endPos":"3,4"//结束点 }
自由剖切 旋转
{ "type":"freeSectioning", //自由剖切 "axis":"X/Y/Z",//轴 "operation":"rotation",//旋转 "beginPos":"1,2",//起始点 "endPos":"3,4" //终点 }
模型剖切
{ "type":"modelSectioning" //模型剖切 }