造型处理器接口 #9
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev_li"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
处理器类提交to 造型处理器接口造型处理器接口to WIP: 造型处理器接口@@ -0,0 +5,4 @@
/** 小板数据 */
block: ModelProcessPointsInputBlock,
/** 小板的最终的放置位置 */
targetPosition: PositionType
这个是做什么用的?
`
let blockInput: ModelProcessPointsInputBlock = {
id: block.blockNo,
x: block.placeX,
y: block.placeY,
length: block.length,
width: block.width,
models: models,
positionType: PositionType.FRONT, // 这里模拟刚优化完 里面的加工坐标没转换 都是 基于 正面的数据 所以 设为正面 实际情况 这里 根据需求传入 表示放置方式变化前 的放置方式
offsetInfo,
}
let input: ModelProcessPointsInput = {
block: blockInput,
targetPosition: block.placeStyle // 最终的放置方式
}
`
用来做 造型坐标转换的
http://gitea.cf/imes/imes-modelProcessPoints
示例地址
@@ -0,0 +86,4 @@
}
/** 点坐标类 */
export interface IPoint { x: number, y: number; }
已有公用类型
@@ -0,0 +117,4 @@
* 注:原放置方式 为 翻面 转换后 的数值
* 若要支持 翻转转换前 需对内容进一步填充
*/
export const transitions_PositionToAction: any = {
这个类型不需要公用
@@ -0,0 +169,4 @@
}
/** 放置方式 翻转后的转换关系 */
export const transitions_PositionTurnFace: any = {
这个也不需要在接口中
WIP: 造型处理器接口to 造型处理器接口