走刀添加板厚参数
This commit is contained in:
parent
979b280044
commit
79b58810d6
@ -15219,13 +15219,13 @@ exports.Production = void 0;
|
|||||||
}
|
}
|
||||||
Production.Get3DModeing = Get3DModeing;
|
Production.Get3DModeing = Get3DModeing;
|
||||||
function GetChaiDanFeedingPath(data) {
|
function GetChaiDanFeedingPath(data) {
|
||||||
const { thickness, boardContour, dir, addLen, addWidth, addDepth, knifeRadius } = data;
|
const { thickness, boardContour, dir, addLen, addWidth, addDepth, knifeRadius, brThickness } = data;
|
||||||
let brContour = Data2Polyline(boardContour);
|
let brContour = Data2Polyline(boardContour);
|
||||||
const tool = FeedingToolPath.GetInstance();
|
const tool = FeedingToolPath.GetInstance();
|
||||||
const outline = Contour.CreateContour(Data2Polyline(data.outline));
|
const outline = Contour.CreateContour(Data2Polyline(data.outline));
|
||||||
const holes = data.holes.map(h => Contour.CreateContour(Data2Polyline(h)));
|
const holes = data.holes.map(h => Contour.CreateContour(Data2Polyline(h)));
|
||||||
let shape = new Shape(outline, holes);
|
let shape = new Shape(outline, holes);
|
||||||
const paths = tool.GetModelFeedPath({ Thickness: thickness, ContourCurve: brContour }, {
|
const paths = tool.GetModelFeedPath({ Thickness: brThickness, ContourCurve: brContour }, {
|
||||||
shape,
|
shape,
|
||||||
thickness,
|
thickness,
|
||||||
dir, knifeRadius, addLen, addWidth, addDepth
|
dir, knifeRadius, addLen, addWidth, addDepth
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1049,7 +1049,7 @@ class UserConfig {
|
|||||||
this.Init();
|
this.Init();
|
||||||
}
|
}
|
||||||
Init() {
|
Init() {
|
||||||
|
|
||||||
}
|
}
|
||||||
set RenderType(t) {
|
set RenderType(t) {
|
||||||
if (t !== this._renderType) {
|
if (t !== this._renderType) {
|
||||||
@ -15214,13 +15214,13 @@ var Production;
|
|||||||
}
|
}
|
||||||
Production.Get3DModeing = Get3DModeing;
|
Production.Get3DModeing = Get3DModeing;
|
||||||
function GetChaiDanFeedingPath(data) {
|
function GetChaiDanFeedingPath(data) {
|
||||||
const { thickness, boardContour, dir, addLen, addWidth, addDepth, knifeRadius } = data;
|
const { thickness, boardContour, dir, addLen, addWidth, addDepth, knifeRadius, brThickness } = data;
|
||||||
let brContour = Data2Polyline(boardContour);
|
let brContour = Data2Polyline(boardContour);
|
||||||
const tool = FeedingToolPath.GetInstance();
|
const tool = FeedingToolPath.GetInstance();
|
||||||
const outline = Contour.CreateContour(Data2Polyline(data.outline));
|
const outline = Contour.CreateContour(Data2Polyline(data.outline));
|
||||||
const holes = data.holes.map(h => Contour.CreateContour(Data2Polyline(h)));
|
const holes = data.holes.map(h => Contour.CreateContour(Data2Polyline(h)));
|
||||||
let shape = new Shape(outline, holes);
|
let shape = new Shape(outline, holes);
|
||||||
const paths = tool.GetModelFeedPath({ Thickness: thickness, ContourCurve: brContour }, {
|
const paths = tool.GetModelFeedPath({ Thickness: brThickness, ContourCurve: brContour }, {
|
||||||
shape,
|
shape,
|
||||||
thickness,
|
thickness,
|
||||||
dir, knifeRadius, addLen, addWidth, addDepth
|
dir, knifeRadius, addLen, addWidth, addDepth
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
{"version":3,"file":"DXFLoad.d.ts","sourceRoot":"","sources":["../../../src/Add-on/DXFLoad.ts"],"names":[],"mappings":"AAmBA,qBAAa,iBAAiB;IAEpB,IAAI;IAuHV,OAAO,CAAC,cAAc;IA4CtB,OAAO,CAAC,aAAa;CAaxB"}
|
{"version":3,"file":"DXFLoad.d.ts","sourceRoot":"","sources":["../../../src/Add-on/DXFLoad.ts"],"names":[],"mappings":"AAoBA,qBAAa,iBAAiB;IAEpB,IAAI;IAuHV,OAAO,CAAC,cAAc;IA4CtB,OAAO,CAAC,aAAa;CAaxB"}
|
1
types/Production/Product.d.ts
vendored
1
types/Production/Product.d.ts
vendored
@ -121,6 +121,7 @@ export interface IOriginModelingData {
|
|||||||
}
|
}
|
||||||
interface IChaiDanFeedingData extends IOriginModelingData {
|
interface IChaiDanFeedingData extends IOriginModelingData {
|
||||||
boardContour: IContourData;
|
boardContour: IContourData;
|
||||||
|
brThickness: number;
|
||||||
}
|
}
|
||||||
export declare namespace Production {
|
export declare namespace Production {
|
||||||
/**获取板件拆单数据 */
|
/**获取板件拆单数据 */
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user